diff options
author | Marek Vasut <marex@denx.de> | 2013-08-31 15:53:44 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2013-09-10 19:12:54 +0200 |
commit | 7b8657e2bd1ffc7a13793f18d0e069f3c9646356 (patch) | |
tree | b065e76fc545a336305446b98e750c7361f45ad6 /board/bluegiga/apx4devkit | |
parent | d4c9135c96b21b74f39021763907efe32b025cc1 (diff) | |
download | u-boot-imx-7b8657e2bd1ffc7a13793f18d0e069f3c9646356.zip u-boot-imx-7b8657e2bd1ffc7a13793f18d0e069f3c9646356.tar.gz u-boot-imx-7b8657e2bd1ffc7a13793f18d0e069f3c9646356.tar.bz2 |
ARM: mxs: Receive r0 and r1 passed from BootROM
Make sure value in register r0 and r1 is preserved and passed to
the board_init_ll() and mxs_common_spl_init() where it can be
processed further. The value in r0 can be configured during the
BootStream generation to arbitary value, r1 contains pointer to
return value from CALL'd function.
This patch also clears the value in r0 before returning to BootROM
to make sure the BootROM is not confused by this value.
Finally, this patch cleans up some comments in the start.S file.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board/bluegiga/apx4devkit')
-rw-r--r-- | board/bluegiga/apx4devkit/spl_boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/bluegiga/apx4devkit/spl_boot.c b/board/bluegiga/apx4devkit/spl_boot.c index 3b05baa..81419f9 100644 --- a/board/bluegiga/apx4devkit/spl_boot.c +++ b/board/bluegiga/apx4devkit/spl_boot.c @@ -132,9 +132,9 @@ const iomux_cfg_t iomux_setup[] = { MX28_PAD_EMI_CKE__EMI_CKE | MUX_CONFIG_EMI, }; -void board_init_ll(void) +void board_init_ll(const uint32_t arg, const uint32_t *resptr) { - mxs_common_spl_init(iomux_setup, ARRAY_SIZE(iomux_setup)); + mxs_common_spl_init(arg, resptr, iomux_setup, ARRAY_SIZE(iomux_setup)); /* switch LED on */ gpio_direction_output(MX28_PAD_PWM3__GPIO_3_28, 0); |