Commit 9dc9caf45d7a5e22a9bd36268ea2f44db25349f3
Committed by
Tom Warren
1 parent
3408a34823
Exists in
master
and in
53 other branches
Tegra: Medcom-Wide: Enable NAND and boot script support
Boot script support brings Medcom-Wide in line with other Tegra boards. In order to enable booting a Linux kernel with initial ramdisk, also add support for the new FIT image type. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Tom Warren <twarren@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
Showing 1 changed file with 12 additions and 9 deletions Side-by-side Diff
include/configs/medcom-wide.h
... | ... | @@ -44,14 +44,21 @@ |
44 | 44 | #define CONFIG_BOARD_EARLY_INIT_F |
45 | 45 | #define CONFIG_BOARD_LATE_INIT |
46 | 46 | |
47 | -#define CONFIG_ENV_IS_NOWHERE | |
48 | - | |
49 | 47 | /* SD/MMC */ |
50 | 48 | #define CONFIG_MMC |
51 | 49 | #define CONFIG_GENERIC_MMC |
52 | 50 | #define CONFIG_TEGRA_MMC |
53 | 51 | #define CONFIG_CMD_MMC |
54 | 52 | |
53 | +/* NAND support */ | |
54 | +#define CONFIG_CMD_NAND | |
55 | +#define CONFIG_TEGRA_NAND | |
56 | +#define CONFIG_SYS_MAX_NAND_DEVICE 1 | |
57 | + | |
58 | +/* Environment in NAND, aligned to start of last sector */ | |
59 | +#define CONFIG_ENV_IS_IN_NAND | |
60 | +#define CONFIG_ENV_OFFSET (SZ_512M - SZ_128K) /* 128K sectors */ | |
61 | + | |
55 | 62 | /* USB host support */ |
56 | 63 | #define CONFIG_USB_EHCI |
57 | 64 | #define CONFIG_USB_EHCI_TEGRA |
58 | 65 | |
... | ... | @@ -66,19 +73,15 @@ |
66 | 73 | #define CONFIG_CMD_NET |
67 | 74 | #define CONFIG_CMD_DHCP |
68 | 75 | |
69 | -#define CONFIG_FIT | |
70 | - | |
71 | -#define CONFIG_BOOTCOMMAND \ | |
72 | - "mmc rescan;" \ | |
73 | - "ext2load mmc 0 0x17000000 /boot/uImage;" \ | |
74 | - "bootm" | |
75 | - | |
76 | 76 | /* LCD support */ |
77 | 77 | #define CONFIG_LCD |
78 | 78 | #define CONFIG_PWM_TEGRA |
79 | 79 | #define CONFIG_VIDEO_TEGRA |
80 | 80 | #define LCD_BPP LCD_COLOR16 |
81 | 81 | #define CONFIG_SYS_WHITE_ON_BLACK |
82 | + | |
83 | +/* support the new (FDT-based) image format */ | |
84 | +#define CONFIG_FIT | |
82 | 85 | |
83 | 86 | #include "tegra-common-post.h" |
84 | 87 |