mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-03 10:17:21 +00:00
davinci: omapl138_lcdk: switch to using common mmc args
Now that we have common MMC/SD boot environment variables that can be used across TI platforms, switch OMAP-L138 LCDK to use them. As a nice side-effect, we get support for using uEnv.txt on this platform. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
88fdfcd21d
commit
1120dda8cc
1 changed files with 10 additions and 13 deletions
|
@ -260,30 +260,27 @@
|
||||||
#define CONFIG_CMDLINE_TAG
|
#define CONFIG_CMDLINE_TAG
|
||||||
#define CONFIG_REVISION_TAG
|
#define CONFIG_REVISION_TAG
|
||||||
#define CONFIG_SETUP_MEMORY_TAGS
|
#define CONFIG_SETUP_MEMORY_TAGS
|
||||||
#define CONFIG_BOOTARGS "console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off"
|
|
||||||
#define CONFIG_BOOTCOMMAND \
|
#define CONFIG_BOOTCOMMAND \
|
||||||
"if mmc rescan; then " \
|
"run envboot; " \
|
||||||
"run mmcboot; "
|
"run mmcboot; "
|
||||||
"fi"
|
|
||||||
|
|
||||||
#define DEFAULT_LINUX_BOOT_ENV \
|
#define DEFAULT_LINUX_BOOT_ENV \
|
||||||
"loadaddr=0xc0700000\0" \
|
"loadaddr=0xc0700000\0" \
|
||||||
"fdtaddr=0xc0600000\0" \
|
"fdtaddr=0xc0600000\0" \
|
||||||
"scriptaddr=0xc0600000\0"
|
"scriptaddr=0xc0600000\0"
|
||||||
|
|
||||||
|
#include <environment/ti/mmc.h>
|
||||||
|
|
||||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
DEFAULT_LINUX_BOOT_ENV \
|
DEFAULT_LINUX_BOOT_ENV \
|
||||||
|
DEFAULT_MMC_TI_ARGS \
|
||||||
|
"bootpart=0:2\0" \
|
||||||
|
"bootdir=/boot\0" \
|
||||||
|
"bootfile=zImage\0" \
|
||||||
"fdtfile=da850-lcdk.dtb\0" \
|
"fdtfile=da850-lcdk.dtb\0" \
|
||||||
"fdtboot=bootz ${loadaddr} - ${fdtaddr};\0" \
|
"boot_fdt=yes\0" \
|
||||||
"mmcboot=" \
|
"boot_fit=0\0" \
|
||||||
"if fatload mmc 0 ${scriptaddr} boot.scr; then " \
|
"console=ttyS2,115200n8\0"
|
||||||
"source ${scriptaddr}; " \
|
|
||||||
"else " \
|
|
||||||
"fatload mmc 0 ${loadaddr} " \
|
|
||||||
__stringify(CONFIG_BOOTFILE) "; " \
|
|
||||||
"fatload mmc 0 ${fdtaddr} ${fdtfile}; " \
|
|
||||||
"run fdtboot; " \
|
|
||||||
"fi;\0"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* U-Boot commands
|
* U-Boot commands
|
||||||
|
|
Loading…
Add table
Reference in a new issue