[U-Boot] [PATCH v2 04/22] omap4: save parameters passed by ROM code to SPL

Wolfgang Denk wd at denx.de
Sun May 15 21:14:30 CEST 2011


Dear Aneesh V,

In message <1305472900-4004-5-git-send-email-aneesh at ti.com> you wrote:
> Save boot device information passed by OMAP4 rom code
> 
> ROM code in OMAP4 passes information such as the media from
> which it picked up the first boot image(SPL in our case),
> the mode(raw mode/FAT mode) etc.
> 
> Save this information in SPL so that we can use the same media
> and mode to bootload u-boot.
> 
> Signed-off-by: Aneesh V <aneesh at ti.com>
...
> +	/* Store the boot device in omap4_boot_device */
> +	ldr     r2, [r0, #BOOT_DEVICE_OFFSET]	@ r1 <- value of boot device
> +	and	r2, #BOOT_DEVICE_MASK
> +	ldr	r3, =omap4_boot_device
> +	str     r2, [r3]			@ omap4_boot_device <- r1

Why don't you use stadard global data here?


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I object to intellect without discipline;  I object to power without
constructive purpose.
	-- Spock, "The Squire of Gothos", stardate 2124.5


More information about the U-Boot mailing list