summaryrefslogtreecommitdiff
path: root/include/configs/usbarmory.h
diff options
context:
space:
mode:
authorAndrej Rosano <andrej@inversepath.com>2016-06-20 17:21:49 +0200
committerStefano Babic <sbabic@denx.de>2016-07-12 17:58:50 +0200
commita02ab5eaff966ecf746bc4e90696c84efb4b113b (patch)
tree54d9d8ccc8c12632d27bc6221f5c7b3675761d18 /include/configs/usbarmory.h
parent9a45ec3ea0858026d5715f16e3bdb596057f727e (diff)
downloadu-boot-imx-a02ab5eaff966ecf746bc4e90696c84efb4b113b.zip
u-boot-imx-a02ab5eaff966ecf746bc4e90696c84efb4b113b.tar.gz
u-boot-imx-a02ab5eaff966ecf746bc4e90696c84efb4b113b.tar.bz2
usbarmory: Add board_run_command() function
Define a default board_run_command() function. This function contains the commands needed to boot the board when CLI is disabled (CONFIG_CMDLINE=n). Signed-off-by: Andrej Rosano <andrej@inversepath.com>
Diffstat (limited to 'include/configs/usbarmory.h')
-rw-r--r--include/configs/usbarmory.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/configs/usbarmory.h b/include/configs/usbarmory.h
index c0e093f..5484204 100644
--- a/include/configs/usbarmory.h
+++ b/include/configs/usbarmory.h
@@ -17,16 +17,13 @@
#define CONFIG_SYS_FSL_CLK
#define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_MXC_GPIO
+#define CONFIG_SYS_NO_FLASH
#include <asm/arch/imx-regs.h>
#include <config_distro_defaults.h>
-/* U-Boot commands */
-
/* U-Boot environment */
-#define CONFIG_ENV_OVERWRITE
-#define CONFIG_SYS_NO_FLASH
#define CONFIG_ENV_OFFSET (6 * 64 * 1024)
#define CONFIG_ENV_SIZE (8 * 1024)
#define CONFIG_ENV_IS_IN_MMC
@@ -101,6 +98,12 @@
"console=ttymxc0,115200\0" \
BOOTENV
+#ifndef CONFIG_CMDLINE
+#define CONFIG_BOOTARGS "console=ttymxc0,115200 root=/dev/mmcblk0p1 rootwait rw"
+#define USBARMORY_FIT_PATH "/boot/usbarmory.itb"
+#define USBARMORY_FIT_ADDR "0x70800000"
+#endif
+
/* Physical Memory Map */
#define CONFIG_NR_DRAM_BANKS 1
#define PHYS_SDRAM CSD0_BASE_ADDR