ARM: i.MX53 loco: add board name to flash header file
This is necessary because the C name for the flash header matches the filename. For multiple board support we have to make the name unique to prevent linker errors. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
7f900e0b60
commit
1701575418
|
@ -1,3 +1,3 @@
|
|||
obj-y += board.o flash-header.o
|
||||
extra-y += flash-header.S flash-header.dcd
|
||||
obj-y += board.o flash-header-imx53-loco.o
|
||||
extra-y += flash-header-imx53-loco.S flash-header-imx53-loco.dcd
|
||||
lwl-y += lowlevel.o
|
||||
|
|
|
@ -75,7 +75,8 @@ static void loco_fec_reset(void)
|
|||
|
||||
#define MX53_LOCO_USB_PWREN IMX_GPIO_NR(7, 8)
|
||||
|
||||
extern char flash_header_start[], flash_header_end[];
|
||||
extern char flash_header_imx53_loco_start[];
|
||||
extern char flash_header_imx53_loco_end[];
|
||||
|
||||
static int loco_late_init(void)
|
||||
{
|
||||
|
@ -112,8 +113,8 @@ static int loco_late_init(void)
|
|||
armlinux_set_architecture(MACH_TYPE_MX53_LOCO);
|
||||
|
||||
imx53_bbu_internal_mmc_register_handler("mmc", "/dev/mmc0",
|
||||
BBU_HANDLER_FLAG_DEFAULT, (void *)flash_header_start,
|
||||
flash_header_end - flash_header_start, 0);
|
||||
BBU_HANDLER_FLAG_DEFAULT, (void *)flash_header_imx53_loco_start,
|
||||
flash_header_imx53_loco_end - flash_header_imx53_loco_start, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ image-$(CONFIG_MACH_FREESCALE_MX51_PDK) += barebox-freescale-imx51-babbage.img
|
|||
|
||||
# ----------------------- i.MX53 based boards ---------------------------
|
||||
pblx-$(CONFIG_MACH_FREESCALE_MX53_LOCO) += start_imx53_loco
|
||||
CFG_start_imx53_loco.pblx.imximg = $(board)/freescale-mx53-loco/flash-header.imxcfg
|
||||
CFG_start_imx53_loco.pblx.imximg = $(board)/freescale-mx53-loco/flash-header-imx53-loco.imxcfg
|
||||
imximage-$(CONFIG_MACH_FREESCALE_MX53_LOCO) += start_imx53_loco.pblx.imximg
|
||||
FILE_barebox-freescale-imx53-loco.img = start_imx53_loco.pblx.imximg
|
||||
image-$(CONFIG_MACH_FREESCALE_MX53_LOCO) += barebox-freescale-imx53-loco.img
|
||||
|
|
Loading…
Reference in New Issue