Skip to content

Commit

Permalink
Drop CONFIG_HAS_DATAFLASH
Browse files Browse the repository at this point in the history
Last user of this option went away in commit:

fdc7718 ("board: usb_a9263: Update to support DT and DM")

Signed-off-by: Tuomas Tynkkynen <[email protected]>
  • Loading branch information
dezgeg authored and trini committed Oct 16, 2017
1 parent 95688de commit c68c03f
Show file tree
Hide file tree
Showing 31 changed files with 16 additions and 1,626 deletions.
7 changes: 0 additions & 7 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -2312,13 +2312,6 @@ The following options need to be configured:
this is instead controlled by the value of
/config/load-environment.

- DataFlash Support:
CONFIG_HAS_DATAFLASH

Defining this option enables DataFlash features and
allows to read/write in Dataflash via the standard
commands cp, md...

- Serial Flash support
Usage requires an initial 'sf probe' to define the serial
flash parameters, followed by read/write/erase/update
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/arm926ejs/at91sam9260_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void at91_seriald_hw_init(void)
at91_periph_clk_enable(ATMEL_ID_SYS);
}

#if defined(CONFIG_HAS_DATAFLASH) || defined(CONFIG_ATMEL_SPI)
#ifdef CONFIG_ATMEL_SPI
void at91_spi0_hw_init(unsigned long cs_mask)
{
at91_set_a_periph(AT91_PIO_PORTA, 0, PUP); /* SPI0_MISO */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/arm926ejs/at91sam9261_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void at91_seriald_hw_init(void)
at91_periph_clk_enable(ATMEL_ID_SYS);
}

#if defined(CONFIG_HAS_DATAFLASH) || defined(CONFIG_ATMEL_SPI)
#ifdef CONFIG_ATMEL_SPI
void at91_spi0_hw_init(unsigned long cs_mask)
{
at91_set_a_periph(AT91_PIO_PORTA, 0, PUP); /* SPI0_MISO */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/arm926ejs/at91sam9263_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void at91_seriald_hw_init(void)
at91_periph_clk_enable(ATMEL_ID_SYS);
}

#if defined(CONFIG_HAS_DATAFLASH) || defined(CONFIG_ATMEL_SPI)
#ifdef CONFIG_ATMEL_SPI
void at91_spi0_hw_init(unsigned long cs_mask)
{
at91_set_b_periph(AT91_PIO_PORTA, 0, PUP); /* SPI0_MISO */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/arm926ejs/at91sam9m10g45_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void at91_seriald_hw_init(void)
at91_periph_clk_enable(ATMEL_ID_SYS);
}

#if defined(CONFIG_HAS_DATAFLASH) || defined(CONFIG_ATMEL_SPI)
#ifdef CONFIG_ATMEL_SPI
void at91_spi0_hw_init(unsigned long cs_mask)
{
at91_set_a_periph(AT91_PIO_PORTB, 0, PUP); /* SPI0_MISO */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/arm926ejs/at91sam9rl_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void at91_seriald_hw_init(void)
at91_periph_clk_enable(ATMEL_ID_SYS);
}

#if defined(CONFIG_HAS_DATAFLASH) || defined(CONFIG_ATMEL_SPI)
#ifdef CONFIG_ATMEL_SPI
void at91_spi0_hw_init(unsigned long cs_mask)
{
at91_set_a_periph(AT91_PIO_PORTA, 25, PUP); /* SPI0_MISO */
Expand Down
1 change: 0 additions & 1 deletion board/atmel/at91sam9260ek/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@

obj-y += at91sam9260ek.o
obj-$(CONFIG_AT91_LED) += led.o
obj-$(CONFIG_HAS_DATAFLASH) += partition.o
26 changes: 0 additions & 26 deletions board/atmel/at91sam9260ek/partition.c

This file was deleted.

1 change: 0 additions & 1 deletion board/atmel/at91sam9261ek/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@

obj-y += at91sam9261ek.o
obj-$(CONFIG_AT91_LED) += led.o
obj-$(CONFIG_HAS_DATAFLASH) += partition.o
26 changes: 0 additions & 26 deletions board/atmel/at91sam9261ek/partition.c

This file was deleted.

1 change: 0 additions & 1 deletion board/atmel/at91sam9263ek/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@

obj-y += at91sam9263ek.o
obj-$(CONFIG_AT91_LED) += led.o
obj-$(CONFIG_HAS_DATAFLASH) += partition.o
25 changes: 0 additions & 25 deletions board/atmel/at91sam9263ek/partition.c

This file was deleted.

1 change: 0 additions & 1 deletion board/atmel/at91sam9rlek/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@

obj-y += at91sam9rlek.o
obj-$(CONFIG_AT91_LED) += led.o
obj-$(CONFIG_HAS_DATAFLASH) += partition.o
25 changes: 0 additions & 25 deletions board/atmel/at91sam9rlek/partition.c

This file was deleted.

1 change: 0 additions & 1 deletion board/esd/meesc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@
#

obj-y += meesc.o
obj-$(CONFIG_HAS_DATAFLASH) += partition.o
23 changes: 0 additions & 23 deletions board/esd/meesc/partition.c

This file was deleted.

3 changes: 0 additions & 3 deletions board/mini-box/picosam9g45/picosam9g45.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,6 @@ int board_init(void)
#ifdef CONFIG_CMD_USB
picosam9g45_usb_hw_init();
#endif
#ifdef CONFIG_HAS_DATAFLASH
at91_spi0_hw_init(1 << 0);
#endif
#ifdef CONFIG_ATMEL_SPI
at91_spi0_hw_init(1 << 4);
#endif
Expand Down
1 change: 0 additions & 1 deletion board/ronetix/pm9261/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@

obj-y += pm9261.o
obj-$(CONFIG_RED_LED) += led.o
obj-$(CONFIG_HAS_DATAFLASH) += partition.o
33 changes: 0 additions & 33 deletions board/ronetix/pm9261/partition.c

This file was deleted.

1 change: 0 additions & 1 deletion board/ronetix/pm9263/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@

obj-y += pm9263.o
obj-$(CONFIG_AT91_LED) += led.o
obj-$(CONFIG_HAS_DATAFLASH) += partition.o
33 changes: 0 additions & 33 deletions board/ronetix/pm9263/partition.c

This file was deleted.

3 changes: 0 additions & 3 deletions board/siemens/corvus/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,6 @@ int board_init(void)
#ifdef CONFIG_ATMEL_SPI
at91_spi0_hw_init(1 << 4);
#endif
#ifdef CONFIG_HAS_DATAFLASH
at91_spi0_hw_init(1 << 0);
#endif
#ifdef CONFIG_MACB
corvus_macb_hw_init();
#endif
Expand Down
33 changes: 2 additions & 31 deletions cmd/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
#include <common.h>
#include <command.h>

#ifdef CONFIG_HAS_DATAFLASH
#include <dataflash.h>
#endif

#if defined(CONFIG_CMD_MTDPARTS)
#include <jffs2/jffs2.h>

Expand Down Expand Up @@ -279,10 +275,6 @@ static int do_flinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
ulong bank;
#endif

#ifdef CONFIG_HAS_DATAFLASH
dataflash_print_info();
#endif

#ifdef CONFIG_MTD_NOR_FLASH
if (argc == 1) { /* print info for all FLASH banks */
for (bank=0; bank <CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
Expand Down Expand Up @@ -451,18 +443,15 @@ static int do_protect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
u8 dev_type, dev_num, pnum;
#endif
#endif /* CONFIG_MTD_NOR_FLASH */
#ifdef CONFIG_HAS_DATAFLASH
int status;
#endif
#if defined(CONFIG_MTD_NOR_FLASH) || defined(CONFIG_HAS_DATAFLASH)
#if defined(CONFIG_MTD_NOR_FLASH)
int p;
ulong addr_first, addr_last;
#endif

if (argc < 3)
return CMD_RET_USAGE;

#if defined(CONFIG_MTD_NOR_FLASH) || defined(CONFIG_HAS_DATAFLASH)
#if defined(CONFIG_MTD_NOR_FLASH)
if (strcmp(argv[1], "off") == 0)
p = 0;
else if (strcmp(argv[1], "on") == 0)
Expand All @@ -471,24 +460,6 @@ static int do_protect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return CMD_RET_USAGE;
#endif

#ifdef CONFIG_HAS_DATAFLASH
if ((strcmp(argv[2], "all") != 0) && (strcmp(argv[2], "bank") != 0)) {
addr_first = simple_strtoul(argv[2], NULL, 16);
addr_last = simple_strtoul(argv[3], NULL, 16);

if (addr_dataflash(addr_first) && addr_dataflash(addr_last)) {
status = dataflash_real_protect(p,addr_first,addr_last);
if (status < 0){
puts ("Bad DataFlash sector specification\n");
return 1;
}
printf("%sProtect %d DataFlash Sectors\n",
p ? "" : "Un-", status);
return 0;
}
}
#endif

#ifdef CONFIG_MTD_NOR_FLASH
if (strcmp(argv[2], "all") == 0) {
for (bank=1; bank<=CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
Expand Down
Loading

0 comments on commit c68c03f

Please sign in to comment.