]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
force omap_bootmode to live in .data section to end up in internal RAM
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 1 Aug 2012 09:30:22 +0000 (11:30 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 1 Aug 2012 09:30:22 +0000 (11:30 +0200)
arch/arm/cpu/armv7/omap-common/boot-common.c

index f211f7670c6ab936fb72264f647b80c0254b8df1..44ca6829a8a1fea01e071011de01b2bcb43005e1 100644 (file)
@@ -35,11 +35,11 @@ struct omap_boot_parameters boot_params __attribute__ ((section(".data")));
  * We would not typically need to save these parameters in regular
  * U-Boot. This is needed only in SPL at the moment.
  */
-u32 omap_bootmode = MMCSD_MODE_FAT;
+u32 omap_bootmode __attribute__ ((section(".data"))) = MMCSD_MODE_UNDEFINED;
 
 u32 omap_boot_device(void)
 {
-       return (u32) (boot_params.omap_bootdevice);
+       return boot_params.omap_bootdevice;
 }
 
 u32 omap_boot_mode(void)