Drop unused legacy DataFlash code
Subsystems (5)
cover Drop unused legacy DataFlash code
These patches remove:
CONFIG_ENV_IS_IN_DATAFLASH
CONFIG_ATMEL_DATAFLASH_SPI
CONFIG_HAS_DATAFLASH
Last user of these went away in July, in commit fdc77189994b2ac794862 ("board: usb_a9263: Update to support DT and DM"). AFAICT their replacements using DM + DT are:
CONFIG_ENV_IS_IN_SPI_FLASH
CONFIG_SPI_FLASH_DATAFLASH
Tuomas Tynkkynen (4):
env: Drop CONFIG_ENV_IS_IN_DATAFLASH
spi: Drop CONFIG_ATMEL_DATAFLASH_SPI
Drop CONFIG_HAS_DATAFLASH
common: Remove genimg_get_image()
README | 7 - arch/arm/mach-at91/arm926ejs/at91sam9260_devices.c | 2 +- arch/arm/mach-at91/arm926ejs/at91sam9261_devices.c | 2 +- arch/arm/mach-at91/arm926ejs/at91sam9263_devices.c | 2 +- .../mach-at91/arm926ejs/at91sam9m10g45_devices.c | 2 +- arch/arm/mach-at91/arm926ejs/at91sam9rl_devices.c | 2 +- board/atmel/at91sam9260ek/Makefile | 1 - board/atmel/at91sam9260ek/partition.c | 26 - board/atmel/at91sam9261ek/Makefile | 1 - board/atmel/at91sam9261ek/partition.c | 26 - board/atmel/at91sam9263ek/Makefile | 1 - board/atmel/at91sam9263ek/partition.c | 25 - board/atmel/at91sam9rlek/Makefile | 1 - board/atmel/at91sam9rlek/partition.c | 25 - board/esd/meesc/Makefile | 1 - board/esd/meesc/partition.c | 23 - board/mini-box/picosam9g45/picosam9g45.c | 3 - board/ronetix/pm9261/Makefile | 1 - board/ronetix/pm9261/partition.c | 33 -- board/ronetix/pm9263/Makefile | 1 - board/ronetix/pm9263/partition.c | 33 -- board/siemens/corvus/board.c | 3 - cmd/flash.c | 33 +- cmd/mem.c | 106 +--- cmd/nvedit.c | 3 +- common/board_r.c | 15 - common/bootm.c | 3 - common/image-fdt.c | 3 - common/image.c | 89 ---- drivers/mtd/Makefile | 2 - drivers/mtd/at45.c | 545 --------------------- drivers/mtd/dataflash.c | 448 ----------------- drivers/spi/Makefile | 1 - drivers/spi/atmel_dataflash_spi.c | 184 ------- env/Kconfig | 15 - env/Makefile | 1 - env/dataflash.c | 75 --- env/env.c | 4 +- include/dataflash.h | 205 -------- include/environment.h | 1 - include/image.h | 1 - scripts/config_whitelist.txt | 5 - tools/Makefile | 1 - 43 files changed, 18 insertions(+), 1943 deletions(-) delete mode 100644 board/atmel/at91sam9260ek/partition.c delete mode 100644 board/atmel/at91sam9261ek/partition.c delete mode 100644 board/atmel/at91sam9263ek/partition.c delete mode 100644 board/atmel/at91sam9rlek/partition.c delete mode 100644 board/esd/meesc/partition.c delete mode 100644 board/ronetix/pm9261/partition.c delete mode 100644 board/ronetix/pm9263/partition.c delete mode 100644 drivers/mtd/at45.c delete mode 100644 drivers/mtd/dataflash.c delete mode 100644 drivers/spi/atmel_dataflash_spi.c delete mode 100644 env/dataflash.c delete mode 100644 include/dataflash.h
Signature · 1 line
2.14.2
PATCH 1/4 env: Drop CONFIG_ENV_IS_IN_DATAFLASH
Last user of this option went away in commit:
fdc7718999 ("board: usb_a9263: Update to support DT and DM")
--- cmd/nvedit.c | 3 +-- env/Kconfig | 15 ----------- env/Makefile | 1 - env/dataflash.c | 75 --------------------------------------------------- env/env.c | 4 +-- include/environment.h | 1 - tools/Makefile | 1 - 7 files changed, 2 insertions(+), 98 deletions(-) delete mode 100644 env/dataflash.c
cmd/nvedit.c +1 -2
@@ -42,7 +42,6 @@ DECLARE_GLOBAL_DATA_PTR; #if !defined(CONFIG_ENV_IS_IN_EEPROM) && \ !defined(CONFIG_ENV_IS_IN_FLASH) && \ - !defined(CONFIG_ENV_IS_IN_DATAFLASH) && \ !defined(CONFIG_ENV_IS_IN_MMC) && \ !defined(CONFIG_ENV_IS_IN_FAT) && \ !defined(CONFIG_ENV_IS_IN_EXT4) && \
@@ -54,7 +53,7 @@ DECLARE_GLOBAL_DATA_PTR; !defined (CONFIG_ENV_IS_IN_REMOTE ) && \ !defined (CONFIG_ENV_IS_IN_UBI ) && \ !defined(CONFIG_ENV_IS_NOWHERE) -# error Define one of CONFIG_ENV_IS_IN_{EEPROM|FLASH|DATAFLASH|MMC|FAT|EXT4|\ +# error Define one of CONFIG_ENV_IS_IN_{EEPROM|FLASH|MMC|FAT|EXT4|\ NAND|NVRAM|ONENAND|SATA|SPI_FLASH|REMOTE|UBI} or CONFIG_ENV_IS_NOWHERE#endif
env/Kconfig +0 -15
@@ -40,21 +40,6 @@ config ENV_IS_NOWHERE stored. U-Boot will therefore always start up with a default environment. -config ENV_IS_IN_DATAFLASH - bool "Environment in dataflash" - depends on !CHAIN_OF_TRUST - help - Define this if you have a DataFlash memory device which you - want to use for the environment. - - - CONFIG_ENV_OFFSET: - - CONFIG_ENV_ADDR: - - CONFIG_ENV_SIZE: - - These three #defines specify the offset and size of the - environment area within the total memory of your DataFlash placed - at the specified address. - config ENV_IS_IN_EEPROM bool "Environment in EEPROM" depends on !CHAIN_OF_TRUST
env/Makefile +0 -1
@@ -11,7 +11,6 @@ ifndef CONFIG_SPL_BUILD obj-y += attr.o obj-y += callback.o obj-y += flags.o -obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += dataflash.o obj-$(CONFIG_ENV_IS_IN_EEPROM) += eeprom.o extra-$(CONFIG_ENV_IS_EMBEDDED) += embedded.o obj-$(CONFIG_ENV_IS_IN_EEPROM) += embedded.o
env/dataflash.c deleted +0 -75
75 lines not on this page · raw message
env/env.c +1 -3
@@ -28,9 +28,7 @@ static struct env_driver *env_driver_lookup(enum env_location loc)static enum env_location env_get_default_location (void ) { - if IS_ENABLED(CONFIG_ENV_IS_IN_DATAFLASH) - return ENVL_DATAFLASH; - else if IS_ENABLED(CONFIG_ENV_IS_IN_EEPROM) + if IS_ENABLED(CONFIG_ENV_IS_IN_EEPROM) return ENVL_EEPROM; else if IS_ENABLED(CONFIG_ENV_IS_IN_FAT) return ENVL_FAT;
include/environment.h +0 -1
@@ -198,7 +198,6 @@ enum env_valid { };enum env_location { -ENVL_DATAFLASH ,ENVL_EEPROM ,ENVL_EXT4 ,ENVL_FAT ,
tools/Makefile +0 -1
@@ -21,7 +21,6 @@ subdir-$(HOST_TOOLS_ALL) += gdb # Merge all the different vars for envcrc into one ENVCRC-$(CONFIG_ENV_IS_EMBEDDED) = y -ENVCRC-$(CONFIG_ENV_IS_IN_DATAFLASH) = y ENVCRC-$(CONFIG_ENV_IS_IN_EEPROM) = y ENVCRC-$(CONFIG_ENV_IS_IN_FLASH) = y ENVCRC-$(CONFIG_ENV_IS_IN_ONENAND) = y
Signature · 1 line
2.14.2
PATCH 1/4 env: Drop CONFIG_ENV_IS_IN_DATAFLASH
Quoted 5 lines · Tuomas Tynkkynen
Last user of this option went away in commit:
fdc7718999("board:usb_a9263: Update to support DT and DM")Signed-off-by Tuomas Tynkkynen <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171016/3c3dfeb0/attachment.sig>
PATCH 2/4 spi: Drop CONFIG_ATMEL_DATAFLASH_SPI
In reply to Tuomas TynkkynenLast user of this option went away in commit:
fdc7718999 ("board: usb_a9263: Update to support DT and DM")
--- drivers/spi/Makefile | 1 - drivers/spi/atmel_dataflash_spi.c | 184 -------------------------------------- 2 files changed, 185 deletions(-) delete mode 100644 drivers/spi/atmel_dataflash_spi.c
drivers/spi/Makefile +0 -1
@@ -17,7 +17,6 @@ endif obj-$(CONFIG_ALTERA_SPI) += altera_spi.o obj-$(CONFIG_ATH79_SPI) += ath79_spi.o -obj-$(CONFIG_ATMEL_DATAFLASH_SPI) += atmel_dataflash_spi.o obj-$(CONFIG_ATMEL_SPI) += atmel_spi.o obj-$(CONFIG_CADENCE_QSPI) += cadence_qspi.o cadence_qspi_apb.o obj-$(CONFIG_CF_SPI) += cf_spi.o
drivers/spi/atmel_dataflash_spi.c deleted +0 -184
184 lines not on this page · raw message
Signature · 1 line
2.14.2
Yang
PATCH 2/4 spi: Drop CONFIG_ATMEL_DATAFLASH_SPI
Hi Tuomas,
Quoted 3 lines · Tuomas Tynkkynen
Last user of this option went away in commit:
fdc7718999("board:usb_a9263: Update to support DT and DM")
It is okay for me.
Quoted 200 lines
Signed-off-by Tuomas Tynkkynen <[email protected]>--- drivers/spi/Makefile | 1 - drivers/spi/atmel_dataflash_spi.c | 184 -------------------------------------- 2 files changed, 185 deletions(-)delete mode 100644
drivers/spi/atmel_dataflash_spi.cdrivers/spi/Makefile +0
-1@@ -17,7 +17,6 @@ endif obj-$(CONFIG_ALTERA_SPI) += altera_spi.o obj-$(CONFIG_ATH79_SPI) += ath79_spi.o -obj-$(CONFIG_ATMEL_DATAFLASH_SPI) += atmel_dataflash_spi.o obj-$(CONFIG_ATMEL_SPI) += atmel_spi.o obj-$(CONFIG_CADENCE_QSPI) += cadence_qspi.o cadence_qspi_apb.o obj-$(CONFIG_CF_SPI) += cf_spi.odrivers/spi/atmel_dataflash_spi.c deleted +0
-174@@ -1,184 +0,0 @@ -/* -* Driver for ATMEL DataFlash support -* Author : Hamid Ikdoumi (Atmel) -* -* SPDX-License-Identifier: GPL-2.0+ -*/ - -/* -* This driver desperately needs rework: -* -* - use structure SoC access -* - get rid of including asm/arch/at91_spi.h -* - remove asm/arch/at91_spi.h -* - get rid of all CONFIG_ATMEL_LEGACY defines and uses -* -* 02-Aug-2010 Reinhard Meyer <[email protected]> -*/ - -#include <common.h> -#ifndef CONFIG_ATMEL_LEGACY -# define CONFIG_ATMEL_LEGACY -#endif -#include <spi.h> -#include <malloc.h> - -#include <asm/io.h> - -#include <asm/arch/clk.h> -#include <asm/arch/hardware.h> - -#include "atmel_spi.h" - -#include <asm/arch/gpio.h> -#include <asm/arch/at91_pio.h> -#include <asm/arch/at91_spi.h> - -#include <dataflash.h> - -#define AT91_SPI_PCS0_DATAFLASH_CARD 0xE/* Chip Select 0: NPCS0%1110 */ -#define AT91_SPI_PCS1_DATAFLASH_CARD 0xD/* Chip Select 1: NPCS1%1101 */ -#define AT91_SPI_PCS2_DATAFLASH_CARD 0xB/* Chip Select 2: NPCS2%1011 */ -#define AT91_SPI_PCS3_DATAFLASH_CARD 0x7/* Chip Select 3: NPCS3%0111 */ - -void AT91F_SpiInit (void ) -{ -/* Reset the SPI */ -writel (AT91_SPI_SWRST ,ATMEL_BASE_SPI0 +AT91_SPI_CR ); - -/* Configure SPI in Master Mode with No CS selected !!! */ -writel (AT91_SPI_MSTR |AT91_SPI_MODFDIS |AT91_SPI_PCS , -ATMEL_BASE_SPI0 +AT91_SPI_MR ); - -/* Configure CS0 */ -writel (AT91_SPI_NCPHA | - (AT91_SPI_DLYBS &DATAFLASH_TCSS ) | - (AT91_SPI_DLYBCT &DATAFLASH_TCHS ) | - ((get_mck_clk_rate () /AT91_SPI_CLK ) <<8 ), -ATMEL_BASE_SPI0 +AT91_SPI_CSR (0 )); - -#ifdef CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1 -/* Configure CS1 */ -writel (AT91_SPI_NCPHA | - (AT91_SPI_DLYBS &DATAFLASH_TCSS ) | - (AT91_SPI_DLYBCT &DATAFLASH_TCHS ) | - ((get_mck_clk_rate () /AT91_SPI_CLK ) <<8 ), -ATMEL_BASE_SPI0 +AT91_SPI_CSR (1 )); -#endif -#ifdef CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS2 -/* Configure CS2 */ -writel (AT91_SPI_NCPHA | - (AT91_SPI_DLYBS &DATAFLASH_TCSS ) | - (AT91_SPI_DLYBCT &DATAFLASH_TCHS ) | - ((get_mck_clk_rate () /AT91_SPI_CLK ) <<8 ), -ATMEL_BASE_SPI0 +AT91_SPI_CSR (2 )); -#endif -#ifdef CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3 -/* Configure CS3 */ -writel (AT91_SPI_NCPHA | - (AT91_SPI_DLYBS &DATAFLASH_TCSS ) | - (AT91_SPI_DLYBCT &DATAFLASH_TCHS ) | - ((get_mck_clk_rate () /AT91_SPI_CLK ) <<8 ), -ATMEL_BASE_SPI0 +AT91_SPI_CSR (3 )); -#endif - -/* SPI_Enable */ -writel (AT91_SPI_SPIEN ,ATMEL_BASE_SPI0 +AT91_SPI_CR ); - -while (!(readl (ATMEL_BASE_SPI0 +AT91_SPI_SR ) &AT91_SPI_SPIENS )) - ; - -/* -* Add tempo to get SPI in a safe state. -* Should not be needed for new silicon (Rev B) -*/ -udelay (500000 ); -readl (ATMEL_BASE_SPI0 +AT91_SPI_SR ); -readl (ATMEL_BASE_SPI0 +AT91_SPI_RDR ); - -} - -void AT91F_SpiEnable (int cs) -{ -unsigned long mode; - - mode =readl (ATMEL_BASE_SPI0 +AT91_SPI_MR ); - mode &= ~AT91_SPI_PCS ; - -switch (cs) { -case 0 : - mode |=AT91_SPI_PCS0_DATAFLASH_CARD <<16 ; -break ; -case 1 : - mode |=AT91_SPI_PCS1_DATAFLASH_CARD <<16 ; -break ; -case 2 : - mode |=AT91_SPI_PCS2_DATAFLASH_CARD <<16 ; -break ; -case 3 : - mode |=AT91_SPI_PCS3_DATAFLASH_CARD <<16 ; -break ; - } - -writel (mode,ATMEL_BASE_SPI0 +AT91_SPI_MR ); - -/* SPI_Enable */ -writel (AT91_SPI_SPIEN ,ATMEL_BASE_SPI0 +AT91_SPI_CR ); -} - -unsigned int AT91F_SpiWrite1 (AT91PS_DataflashDesc pDesc); - -unsigned int AT91F_SpiWrite (AT91PS_DataflashDesc pDesc) -{ -unsigned int timeout; -unsigned int timebase; - - pDesc->state =BUSY ; - -writel (AT91_SPI_TXTDIS +AT91_SPI_RXTDIS , -ATMEL_BASE_SPI0 +AT91_SPI_PTCR ); - -/* Initialize the Transmit and Receive Pointer */ -writel ((unsigned int )pDesc->rx_cmd_pt, -ATMEL_BASE_SPI0 +AT91_SPI_RPR ); -writel ((unsigned int )pDesc->tx_cmd_pt, -ATMEL_BASE_SPI0 +AT91_SPI_TPR ); - -/* Intialize the Transmit and Receive Counters */ -writel (pDesc->rx_cmd_size,ATMEL_BASE_SPI0 +AT91_SPI_RCR ); -writel (pDesc->tx_cmd_size,ATMEL_BASE_SPI0 +AT91_SPI_TCR ); - -if (pDesc->tx_data_size !=0 ) { -/* Initialize the Next Transmit and Next Receive Pointer */ -writel ((unsigned int )pDesc->rx_data_pt, -ATMEL_BASE_SPI0 +AT91_SPI_RNPR ); -writel ((unsigned int )pDesc->tx_data_pt, -ATMEL_BASE_SPI0 +AT91_SPI_TNPR ); - -/* Intialize the Next Transmit and Next Receive Counters */ -writel (pDesc->rx_data_size, -ATMEL_BASE_SPI0 +AT91_SPI_RNCR ); -writel (pDesc->tx_data_size, -ATMEL_BASE_SPI0 +AT91_SPI_TNCR ); - } - -/* arm simple, non interrupt dependent timer */ - timebase =get_timer (0 ); - timeout =0 ; - -writel (AT91_SPI_TXTEN +AT91_SPI_RXTEN , -ATMEL_BASE_SPI0 +AT91_SPI_PTCR ); -while (!(readl (ATMEL_BASE_SPI0 +AT91_SPI_SR ) &AT91_SPI_RXBUFF ) && - ((timeout =get_timer (timebase)) <CONFIG_SYS_SPI_WRITE_TOUT )) - ; - writel(AT91_SPI_TXTDIS + AT91_SPI_RXTDIS,
drivers/spi/atmel_dataflash_spi.c line 184
Quoted 10 lines
drivers/spi/atmel_dataflash_spi.c deleted +0
-10- ATMEL_BASE_SPI0 + AT91_SPI_PTCR); - pDesc->state =IDLE ; - -if (timeout >=CONFIG_SYS_SPI_WRITE_TOUT ) { -printf ("Error Timeout\n\r" ); -return DATAFLASH_ERROR ; - } - -return DATAFLASH_OK ; -}
Best Regards,
Wenyou Yang
PATCH 2/4 spi: Drop CONFIG_ATMEL_DATAFLASH_SPI
In reply to Tuomas TynkkynenQuoted 6 lines · Tuomas Tynkkynen
Last user of this option went away in commit:
fdc7718999("board:usb_a9263: Update to support DT and DM")Signed-off-by Tuomas Tynkkynen <[email protected]>Acked-by Wenyou Yang <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171016/458572af/attachment.sig>
PATCH 3/4 Drop CONFIG_HAS_DATAFLASH
In reply to Tuomas TynkkynenLast user of this option went away in commit:
fdc7718999 ("board: usb_a9263: Update to support DT and DM")
--- README | 7 - arch/arm/mach-at91/arm926ejs/at91sam9260_devices.c | 2 +- arch/arm/mach-at91/arm926ejs/at91sam9261_devices.c | 2 +- arch/arm/mach-at91/arm926ejs/at91sam9263_devices.c | 2 +- .../mach-at91/arm926ejs/at91sam9m10g45_devices.c | 2 +- arch/arm/mach-at91/arm926ejs/at91sam9rl_devices.c | 2 +- board/atmel/at91sam9260ek/Makefile | 1 - board/atmel/at91sam9260ek/partition.c | 26 - board/atmel/at91sam9261ek/Makefile | 1 - board/atmel/at91sam9261ek/partition.c | 26 - board/atmel/at91sam9263ek/Makefile | 1 - board/atmel/at91sam9263ek/partition.c | 25 - board/atmel/at91sam9rlek/Makefile | 1 - board/atmel/at91sam9rlek/partition.c | 25 - board/esd/meesc/Makefile | 1 - board/esd/meesc/partition.c | 23 - board/mini-box/picosam9g45/picosam9g45.c | 3 - board/ronetix/pm9261/Makefile | 1 - board/ronetix/pm9261/partition.c | 33 -- board/ronetix/pm9263/Makefile | 1 - board/ronetix/pm9263/partition.c | 33 -- board/siemens/corvus/board.c | 3 - cmd/flash.c | 33 +- cmd/mem.c | 106 +--- common/board_r.c | 15 - common/image.c | 62 --- drivers/mtd/Makefile | 2 - drivers/mtd/at45.c | 545 --------------------- drivers/mtd/dataflash.c | 448 ----------------- include/dataflash.h | 205 -------- scripts/config_whitelist.txt | 5 - 31 files changed, 16 insertions(+), 1626 deletions(-) delete mode 100644 board/atmel/at91sam9260ek/partition.c delete mode 100644 board/atmel/at91sam9261ek/partition.c delete mode 100644 board/atmel/at91sam9263ek/partition.c delete mode 100644 board/atmel/at91sam9rlek/partition.c delete mode 100644 board/esd/meesc/partition.c delete mode 100644 board/ronetix/pm9261/partition.c delete mode 100644 board/ronetix/pm9263/partition.c delete mode 100644 drivers/mtd/at45.c delete mode 100644 drivers/mtd/dataflash.c delete mode 100644 include/dataflash.h
README +0 -7
@@ -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
arch/arm/mach-at91/arm926ejs/at91sam9260_devices.c +1 -1
@@ -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 */
arch/arm/mach-at91/arm926ejs/at91sam9261_devices.c +1 -1
@@ -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 */
arch/arm/mach-at91/arm926ejs/at91sam9263_devices.c +1 -1
@@ -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 */
arch/arm/mach-at91/arm926ejs/at91sam9m10g45_devices.c +1 -1
@@ -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 */
arch/arm/mach-at91/arm926ejs/at91sam9rl_devices.c +1 -1
@@ -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 */
board/atmel/at91sam9260ek/Makefile +0 -1
@@ -11,4 +11,3 @@ obj-y += at91sam9260ek.o obj-$(CONFIG_AT91_LED) += led.o -obj-$(CONFIG_HAS_DATAFLASH) += partition.o
board/atmel/at91sam9260ek/partition.c deleted +0 -26
@@ -1,26 +0,0 @@ -/* -* (C) Copyright 2008 -* Ulf Samuelsson <[email protected]> -* -* SPDX-License-Identifier: GPL-2.0+ -*/ -#include <common.h> -#include <config.h> -#include <asm/hardware.h> -#include <dataflash.h> - -AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS ]; - -struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS ] = { - {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 ,0 },/* Logical adress, CS */ - {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1 ,1 } -}; - -/*define the area offsets*/ -dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { - {0x00000000 ,0x000041FF ,FLAG_PROTECT_SET ,0 ,"Bootstrap" }, - {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, - {0x00008400 ,0x00083FFF ,FLAG_PROTECT_SET ,0 ,"U-Boot" }, - {0x00084000 ,0x00293FFF ,FLAG_PROTECT_CLEAR ,0 ,"Kernel" }, - {0x00294000 ,0xFFFFFFFF ,FLAG_PROTECT_CLEAR ,0 ,"FS" }, -};
board/atmel/at91sam9261ek/Makefile +0 -1
@@ -11,4 +11,3 @@ obj-y += at91sam9261ek.o obj-$(CONFIG_AT91_LED) += led.o -obj-$(CONFIG_HAS_DATAFLASH) += partition.o
board/atmel/at91sam9261ek/partition.c deleted +0 -26
@@ -1,26 +0,0 @@ -/* -* (C) Copyright 2008 -* Ulf Samuelsson <[email protected]> -* -* SPDX-License-Identifier: GPL-2.0+ -*/ -#include <common.h> -#include <config.h> -#include <asm/hardware.h> -#include <dataflash.h> - -AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS ]; - -struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS ] = { - {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 ,0 },/* Logical adress, CS */ - {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3 ,3 } -}; - -/*define the area offsets*/ -dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { - {0x00000000 ,0x000041FF ,FLAG_PROTECT_SET ,0 ,"Bootstrap" }, - {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, - {0x00008400 ,0x00083FFF ,FLAG_PROTECT_SET ,0 ,"U-Boot" }, - {0x00084000 ,0x00293FFF ,FLAG_PROTECT_CLEAR ,0 ,"Kernel" }, - {0x00294000 ,0xFFFFFFFF ,FLAG_PROTECT_CLEAR ,0 ,"FS" }, -};
board/atmel/at91sam9263ek/Makefile +0 -1
@@ -11,4 +11,3 @@ obj-y += at91sam9263ek.o obj-$(CONFIG_AT91_LED) += led.o -obj-$(CONFIG_HAS_DATAFLASH) += partition.o
board/atmel/at91sam9263ek/partition.c deleted +0 -25
@@ -1,25 +0,0 @@ -/* -* (C) Copyright 2008 -* Ulf Samuelsson <[email protected]> -* -* SPDX-License-Identifier: GPL-2.0+ -*/ -#include <common.h> -#include <config.h> -#include <asm/hardware.h> -#include <dataflash.h> - -AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS ]; - -struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS ] = { - {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 ,0 },/* Logical adress, CS */ -}; - -/*define the area offsets*/ -dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { - {0x00000000 ,0x000041FF ,FLAG_PROTECT_SET ,0 ,"Bootstrap" }, - {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, - {0x00008400 ,0x00083FFF ,FLAG_PROTECT_SET ,0 ,"U-Boot" }, - {0x00084000 ,0x00293FFF ,FLAG_PROTECT_CLEAR ,0 ,"Kernel" }, - {0x00294000 ,0xFFFFFFFF ,FLAG_PROTECT_CLEAR ,0 ,"FS" }, -};
board/atmel/at91sam9rlek/Makefile +0 -1
@@ -11,4 +11,3 @@ obj-y += at91sam9rlek.o obj-$(CONFIG_AT91_LED) += led.o -obj-$(CONFIG_HAS_DATAFLASH) += partition.o
board/atmel/at91sam9rlek/partition.c deleted +0 -25
@@ -1,25 +0,0 @@ -/* -* (C) Copyright 2008 -* Ulf Samuelsson <[email protected]> -* -* SPDX-License-Identifier: GPL-2.0+ -*/ -#include <common.h> -#include <config.h> -#include <asm/hardware.h> -#include <dataflash.h> - -AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS ]; - -struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS ] = { - {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 ,0 },/* Logical adress, CS */ -}; - -/*define the area offsets*/ -dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { - {0x00000000 ,0x000041FF ,FLAG_PROTECT_SET ,0 ,"Bootstrap" }, - {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, - {0x00008400 ,0x00083FFF ,FLAG_PROTECT_SET ,0 ,"U-Boot" }, - {0x00084000 ,0x00293FFF ,FLAG_PROTECT_CLEAR ,0 ,"Kernel" }, - {0x00294000 ,0xFFFFFFFF ,FLAG_PROTECT_CLEAR ,0 ,"FS" }, -};
board/esd/meesc/Makefile +0 -1
@@ -10,4 +10,3 @@ # obj-y += meesc.o -obj-$(CONFIG_HAS_DATAFLASH) += partition.o
board/esd/meesc/partition.c deleted +0 -23
@@ -1,23 +0,0 @@ -/* -* (C) Copyright 2008 -* Ulf Samuelsson <[email protected]> -* -* SPDX-License-Identifier: GPL-2.0+ -*/ -#include <common.h> -#include <config.h> -#include <asm/hardware.h> -#include <dataflash.h> - -AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS ]; - -struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS ] = { - {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 ,0 },/* Logical adress, CS */ -}; - -/* define the area offsets */ -dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { - {0x00000000 ,0x000041FF ,FLAG_PROTECT_SET ,0 ,"Bootstrap" }, - {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, - {0x00008400 ,0x00041FFF ,FLAG_PROTECT_SET ,0 ,"U-Boot" }, -};
board/mini-box/picosam9g45/picosam9g45.c +0 -3
@@ -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
board/ronetix/pm9261/Makefile +0 -1
@@ -12,4 +12,3 @@ obj-y += pm9261.o obj-$(CONFIG_RED_LED) += led.o -obj-$(CONFIG_HAS_DATAFLASH) += partition.o
board/ronetix/pm9261/partition.c deleted +0 -33
@@ -1,33 +0,0 @@ -/* -* (C) Copyright 2008 -* Ulf Samuelsson <[email protected]> -* Ilko Iliev <www.ronetix.at> -* -* SPDX-License-Identifier: GPL-2.0+ -*/ -#include <common.h> -#include <config.h> -#include <asm/hardware.h> -#include <dataflash.h> - -AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS ]; - -struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS ] = { - {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 ,0 },/* Logical adress, CS */ -}; - -/*define the area offsets*/ -#ifdef CONFIG_SYS_USE_DATAFLASH -dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { - {0x00000000 ,0x000041FF ,FLAG_PROTECT_SET ,0 ,"Bootstrap" }, - {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, - {0x00008400 ,0x00041FFF ,FLAG_PROTECT_SET ,0 ,"U-Boot" }, - {0x00042000 ,0x00251FFF ,FLAG_PROTECT_CLEAR ,0 ,"Kernel" }, - {0x00252000 ,0xFFFFFFFF ,FLAG_PROTECT_CLEAR ,0 ,"FS" }, -}; -#else -dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { - {0x00000000 ,0xFFFFFFFF ,FLAG_PROTECT_CLEAR ,0 ,"" }, -}; - -#endif
board/ronetix/pm9263/Makefile +0 -1
@@ -12,4 +12,3 @@ obj-y += pm9263.o obj-$(CONFIG_AT91_LED) += led.o -obj-$(CONFIG_HAS_DATAFLASH) += partition.o
board/ronetix/pm9263/partition.c deleted +0 -33
@@ -1,33 +0,0 @@ -/* -* (C) Copyright 2008 -* Ulf Samuelsson <[email protected]> -* Ilko Iliev <www.ronetix.at> -* -* SPDX-License-Identifier: GPL-2.0+ -*/ -#include <common.h> -#include <config.h> -#include <asm/hardware.h> -#include <dataflash.h> - -AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS ]; - -struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS ] = { - {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 ,0 },/* Logical adress, CS */ -}; - -/*define the area offsets*/ -#ifdef CONFIG_SYS_USE_DATAFLASH -dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { - {0x00000000 ,0x000041FF ,FLAG_PROTECT_SET ,0 ,"Bootstrap" }, - {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, - {0x00008400 ,0x00041FFF ,FLAG_PROTECT_SET ,0 ,"U-Boot" }, - {0x00042000 ,0x00251FFF ,FLAG_PROTECT_CLEAR ,0 ,"Kernel" }, - {0x00252000 ,0xFFFFFFFF ,FLAG_PROTECT_CLEAR ,0 ,"FS" }, -}; -#else -dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { - {0x00000000 ,0xFFFFFFFF ,FLAG_PROTECT_CLEAR ,0 ,"" }, -}; - -#endif
board/siemens/corvus/board.c +0 -3
@@ -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
cmd/flash.c +2 -31
@@ -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>
@@ -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) {
@@ -451,10 +443,7 @@ 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
@@ -462,7 +451,7 @@ static int do_protect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])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 )
@@ -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) {
cmd/mem.c +9 -97
149 lines not on this page · raw message
common/board_r.c +0 -15
@@ -18,9 +18,6 @@#endif #include <command.h> #include <console.h> -#ifdef CONFIG_HAS_DATAFLASH -#include <dataflash.h> -#endif #include <dm.h> #include <environment.h> #include <fdtdec.h>
@@ -447,15 +444,6 @@ static int initr_mmc(void) }#endif -#ifdef CONFIG_HAS_DATAFLASH -static int initr_dataflash (void ) -{ -AT91F_DataflashInit (); -dataflash_print_info (); -return 0 ; -} -#endif -/* * Tell if it's OK to load the environment early in boot. *
@@ -802,9 +790,6 @@ static init_fnc_t init_sequence_r[] = {#endif #ifdef CONFIG_MMC initr_mmc, -#endif -#ifdef CONFIG_HAS_DATAFLASH - initr_dataflash, #endif initr_env, #ifdef CONFIG_SYS_BOOTPARAMS_LEN
common/image.c +0 -62
74 lines not on this page · raw message
drivers/mtd/Makefile +0 -2
@@ -12,10 +12,8 @@ obj-$(CONFIG_MTD) += mtd-uclass.o obj-$(CONFIG_MTD_PARTITIONS) += mtdpart.o obj-$(CONFIG_MTD_CONCAT) += mtdconcat.o obj-$(CONFIG_ALTERA_QSPI) += altera_qspi.o -obj-$(CONFIG_HAS_DATAFLASH) += at45.o obj-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o obj-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o -obj-$(CONFIG_HAS_DATAFLASH) += dataflash.o obj-$(CONFIG_FTSMC020) += ftsmc020.o obj-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o obj-$(CONFIG_MW_EEPROM) += mw_eeprom.o
drivers/mtd/at45.c deleted +0 -545
545 lines not on this page · raw message
drivers/mtd/dataflash.c deleted +0 -448
448 lines not on this page · raw message
include/dataflash.h deleted +0 -205
205 lines not on this page · raw message
scripts/config_whitelist.txt +0 -5
@@ -876,7 +876,6 @@ CONFIG_G_DNL_UMS_VENDOR_NUM CONFIG_H264_FREQ CONFIG_H8300 CONFIG_HARD_SPI -CONFIG_HAS_DATAFLASH CONFIG_HAS_ETH0 CONFIG_HAS_ETH1 CONFIG_HAS_ETH2
@@ -2610,9 +2609,6 @@ CONFIG_SYS_DA850_PLL1_PLLDIV3 CONFIG_SYS_DA850_PLL1_PLLM CONFIG_SYS_DA850_PLL1_POSTDIV CONFIG_SYS_DA850_SYSCFG_SUSPSRC -CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1 -CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS2 -CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3 CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT CONFIG_SYS_DAVINCI_I2C_SLAVE CONFIG_SYS_DAVINCI_I2C_SLAVE1
@@ -3722,7 +3718,6 @@ CONFIG_SYS_MATRIX_EBI0CSA_VAL CONFIG_SYS_MATRIX_EBICSA_VAL CONFIG_SYS_MATRIX_MCFG_REMAP CONFIG_SYS_MAXARGS -CONFIG_SYS_MAX_DATAFLASH_BANKS CONFIG_SYS_MAX_DDR_BAT_SIZE CONFIG_SYS_MAX_FLASH_BANKS CONFIG_SYS_MAX_FLASH_BANKS_DETECT
Signature · 1 line
2.14.2
PATCH 3/4 Drop CONFIG_HAS_DATAFLASH
Quoted 5 lines · Tuomas Tynkkynen
Last user of this option went away in commit:
fdc7718999("board:usb_a9263: Update to support DT and DM")Signed-off-by Tuomas Tynkkynen <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171016/a896b6e0/attachment.sig>
PATCH 4/4 common: Remove genimg_get_image()
In reply to Tuomas TynkkynenRemoval of the legacy DataFlash code turned genimg_get_image() into a no-op. Drop all calls to it and the function itself.
--- common/bootm.c | 3 --- common/image-fdt.c | 3 --- common/image.c | 27 --------------------------- include/image.h | 1 - 4 files changed, 34 deletions(-)
common/bootm.c +0 -3
@@ -810,9 +810,6 @@ static const void *boot_get_kernel(cmd_tbl_t *cmdtp, int flag, int argc,bootstage_mark (BOOTSTAGE_ID_CHECK_MAGIC ); -/* copy from dataflash if needed */ - img_addr =genimg_get_image (img_addr); -/* check image type, for FIT images get FIT kernel node */ *os_data = *os_len =0 ; buf =map_sysmem (img_addr,0 );
common/image-fdt.c +0 -3
@@ -294,9 +294,6 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch,debug ("## Checking for 'FDT'/'FDT Image' at %08lx\n" , fdt_addr); -/* copy from dataflash if needed */ - fdt_addr =genimg_get_image (fdt_addr); -/* * Check if there is an FDT image at the * address provided in the second bootm argument
common/image.c +0 -27
@@ -385,9 +385,6 @@ void image_print_contents(const void *ptr)* flag. Verification done covers data and header integrity and os/type/arch * fields checking. * -* If dataflash support is enabled routine checks for dataflash addresses -* and handles required dataflash reads. -* * returns: * pointer to a ramdisk image header, if image was found and valid * otherwise, return NULL
@@ -885,23 +882,6 @@ int genimg_get_format(const void *img_addr)return IMAGE_FORMAT_INVALID ; } -/** -* genimg_get_image - get image from special storage (if necessary) -* @img_addr: image start address -* -* genimg_get_image() checks if provided image start address is located -* in a dataflash storage. If so, image is moved to a system RAM memory. -* -* returns: -* image start address after possible relocation from special storage -*/ -ulong genimg_get_image (ulong img_addr) -{ -ulong ram_addr = img_addr; - -return ram_addr; -} -/** * fit_has_config - check if there is a valid FIT configuration * @images: pointer to the bootm command headers structure
@@ -1034,9 +1014,6 @@ int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images, }#endif -/* copy from dataflash if needed */ - rd_addr =genimg_get_image (rd_addr); -/* * Check if there is an initrd image at the * address provided in the second bootm argument
@@ -1268,10 +1245,8 @@ int boot_get_fpga(int argc, char * const argv[], bootm_headers_t *images,/* * Obtain the os FIT header from the images struct -* copy from dataflash if needed */ tmp_img_addr =map_to_sysmem (images->fit_hdr_os); - tmp_img_addr =genimg_get_image (tmp_img_addr); buf =map_sysmem (tmp_img_addr,0 );/* * Check image type. For FIT images get FIT node
@@ -1380,10 +1355,8 @@ int boot_get_loadable(int argc, char * const argv[], bootm_headers_t *images,/* * Obtain the os FIT header from the images struct -* copy from dataflash if needed */ tmp_img_addr =map_to_sysmem (images->fit_hdr_os); - tmp_img_addr =genimg_get_image (tmp_img_addr); buf =map_sysmem (tmp_img_addr,0 );/* * Check image type. For FIT images get FIT node
include/image.h +0 -1
@@ -558,7 +558,6 @@ ulong genimg_get_kernel_addr_fit(char * const img_addr,ulong genimg_get_kernel_addr (char *const img_addr);int genimg_get_format (const void *img_addr);int genimg_has_config (bootm_headers_t *images); -ulong genimg_get_image (ulong img_addr);int boot_get_fpga (int argc,char *const argv[],bootm_headers_t *images,uint8_t arch,const ulong *ld_start,ulong *const ld_len);
Signature · 1 line
2.14.2
PATCH 4/4 common: Remove genimg_get_image()
Quoted 4 lines · Tuomas Tynkkynen
Removal of the legacy DataFlash code turned
genimg_get_image()into a no-op. Drop all calls to it and the function itself.Signed-off-by Tuomas Tynkkynen <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171016/c4cd52f0/attachment.sig>