diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-06 09:59:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-09 17:41:41 +0200 |
commit | d238e3ace5273422fb63a236d1957ef7e48d46b4 (patch) | |
tree | 3f69371a1c7623eac3046d7bdd6ec55032b1c19f /arch/arm/boards/tqma6x | |
parent | 2ab8b7513dfcc69e865aa5a4f7001bf44e22d20f (diff) | |
download | barebox-d238e3ace5273422fb63a236d1957ef7e48d46b4.tar.gz barebox-d238e3ace5273422fb63a236d1957ef7e48d46b4.tar.xz |
ARM: i.MX: bbu: remove dcd arguments from bbu registration
The i.MX barebox update handlers take an optional dcd table as argument.
This can be used to add the correct dcd data to the image before flashing
it.
This mechanism is quite complicated and largely unused, so remove it. With
this it is only possible to flash the exact image passed to barebox_update,
which is what is mostly done anyway.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/tqma6x')
-rw-r--r-- | arch/arm/boards/tqma6x/board.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/arch/arm/boards/tqma6x/board.c b/arch/arm/boards/tqma6x/board.c index 30ebf34bd2..6c574eaf2c 100644 --- a/arch/arm/boards/tqma6x/board.c +++ b/arch/arm/boards/tqma6x/board.c @@ -98,34 +98,16 @@ static int tqma6x_enet_init(void) } fs_initcall(tqma6x_enet_init); -extern char flash_header_tqma6dl_start[]; -extern char flash_header_tqma6dl_end[]; - -extern char flash_header_tqma6q_start[]; -extern char flash_header_tqma6q_end[]; - static int tqma6x_env_init(void) { - void *flash_header_start; - void *flash_header_end; - - if (of_machine_is_compatible("tq,tqma6s")) { - flash_header_start = (void *)flash_header_tqma6dl_start; - flash_header_end = (void *)flash_header_tqma6dl_end; - } else if (of_machine_is_compatible("tq,tqma6q")) { - flash_header_start = (void *)flash_header_tqma6q_start; - flash_header_end = (void *)flash_header_tqma6q_end; - } else { + if (!of_machine_is_compatible("tq,mba6x")) return 0; - } devfs_add_partition("m25p0", 0, SZ_512K, DEVFS_PARTITION_FIXED, "m25p0.barebox"); imx6_bbu_internal_spi_i2c_register_handler("spiflash", "/dev/m25p0.barebox", - BBU_HANDLER_FLAG_DEFAULT, (void *)flash_header_start, - flash_header_end - flash_header_start, 0); - imx6_bbu_internal_mmc_register_handler("emmc", "/dev/mmc2.boot0", - 0, (void *)flash_header_start, flash_header_end - flash_header_start, 0); + BBU_HANDLER_FLAG_DEFAULT); + imx6_bbu_internal_mmc_register_handler("emmc", "/dev/mmc2.boot0", 0); device_detect_by_name("mmc2"); |