diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-11-27 00:00:38 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-12-03 01:53:12 +0800 |
commit | 322b9af8755472bdec13515dd61196d768f0b02b (patch) | |
tree | ed4ec611aaff16ed4d82bb0548d272f9730b57b0 /drivers/nor/cfi_flash_amd.c | |
parent | 4a7f56056d6aa12a0449f03eb038e4d2bf7fdd49 (diff) | |
download | barebox-322b9af8755472bdec13515dd61196d768f0b02b.tar.gz barebox-322b9af8755472bdec13515dd61196d768f0b02b.tar.xz |
cfi_flash: move intel real protect flash support to cfi_flash_intel.c
let an empty function for amd as we will add later atmel real protect flash
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/nor/cfi_flash_amd.c')
-rw-r--r-- | drivers/nor/cfi_flash_amd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/nor/cfi_flash_amd.c b/drivers/nor/cfi_flash_amd.c index 45b7e5ce99..b10f7b267d 100644 --- a/drivers/nor/cfi_flash_amd.c +++ b/drivers/nor/cfi_flash_amd.c @@ -133,6 +133,11 @@ static int amd_flash_write_cfibuffer (struct flash_info *info, ulong dest, const #define amd_flash_write_cfibuffer NULL #endif /* CONFIG_CFI_BUFFER_WRITE */ +static int amd_flash_real_protect (struct flash_info *info, long sector, int prot) +{ + return 0; +} + struct cfi_cmd_set cfi_cmd_set_amd = { .flash_write_cfibuffer = amd_flash_write_cfibuffer, .flash_erase_one = amd_flash_erase_one, @@ -140,5 +145,6 @@ struct cfi_cmd_set cfi_cmd_set_amd = { .flash_read_jedec_ids = amd_read_jedec_ids, .flash_prepare_write = amd_flash_prepare_write, .flash_status_check = flash_generic_status_check, + .flash_real_protect = amd_flash_real_protect, }; |