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/karo-tx53/board.c | |
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/karo-tx53/board.c')
-rw-r--r-- | arch/arm/boards/karo-tx53/board.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/arch/arm/boards/karo-tx53/board.c b/arch/arm/boards/karo-tx53/board.c index b7e7f1cd9c..e5c27aac93 100644 --- a/arch/arm/boards/karo-tx53/board.c +++ b/arch/arm/boards/karo-tx53/board.c @@ -198,14 +198,6 @@ static inline void tx53_fec_init(void) ARRAY_SIZE(tx53_fec_pads)); } -#define DCD_NAME_1011 static struct imx_dcd_v2_entry dcd_entry_1011 - -#include "dcd-data-1011.h" - -#define DCD_NAME_XX30 static u32 dcd_entry_xx30 - -#include "dcd-data-xx30.h" - static int tx53_devices_init(void) { imx53_iim_register_fec_ethaddr(); @@ -218,12 +210,10 @@ static int tx53_devices_init(void) /* rev xx30 can boot from nand or USB */ imx53_bbu_internal_nand_register_handler("nand-xx30", - BBU_HANDLER_FLAG_DEFAULT, (void *)dcd_entry_xx30, - sizeof(dcd_entry_xx30), SZ_512K, 0); + BBU_HANDLER_FLAG_DEFAULT, SZ_512K); /* rev 1011 can boot from MMC/SD, other bootsource currently unknown */ - imx53_bbu_internal_mmc_register_handler("mmc-1011", "/dev/disk0", - 0, (void *)dcd_entry_1011, sizeof(dcd_entry_1011), 0); + imx53_bbu_internal_mmc_register_handler("mmc-1011", "/dev/disk0", 0); return 0; } |