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 Inline Diff
include/configs/medcom-wide.h
1 | /* | 1 | /* |
2 | * (C) Copyright 2010,2011 | 2 | * (C) Copyright 2010,2011 |
3 | * NVIDIA Corporation <www.nvidia.com> | 3 | * NVIDIA Corporation <www.nvidia.com> |
4 | * (C) Copyright 2011-2012 | 4 | * (C) Copyright 2011-2012 |
5 | * Avionic Design GmbH <www.avionic-design.de> | 5 | * Avionic Design GmbH <www.avionic-design.de> |
6 | * | 6 | * |
7 | * See file CREDITS for list of people who contributed to this | 7 | * See file CREDITS for list of people who contributed to this |
8 | * project. | 8 | * project. |
9 | * | 9 | * |
10 | * This program is free software; you can redistribute it and/or | 10 | * This program is free software; you can redistribute it and/or |
11 | * modify it under the terms of the GNU General Public License as | 11 | * modify it under the terms of the GNU General Public License as |
12 | * published by the Free Software Foundation; either version 2 of | 12 | * published by the Free Software Foundation; either version 2 of |
13 | * the License, or (at your option) any later version. | 13 | * the License, or (at your option) any later version. |
14 | * | 14 | * |
15 | * This program is distributed in the hope that it will be useful, | 15 | * This program is distributed in the hope that it will be useful, |
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 | * GNU General Public License for more details. | 18 | * GNU General Public License for more details. |
19 | * | 19 | * |
20 | * You should have received a copy of the GNU General Public License | 20 | * You should have received a copy of the GNU General Public License |
21 | * along with this program; if not, write to the Free Software | 21 | * along with this program; if not, write to the Free Software |
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, | 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
23 | * MA 02111-1307 USA | 23 | * MA 02111-1307 USA |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #ifndef __CONFIG_H | 26 | #ifndef __CONFIG_H |
27 | #define __CONFIG_H | 27 | #define __CONFIG_H |
28 | 28 | ||
29 | #include "tegra20-common.h" | 29 | #include "tegra20-common.h" |
30 | 30 | ||
31 | /* Enable fdt support for Medcom-Wide. Flash the image in u-boot-dtb.bin */ | 31 | /* Enable fdt support for Medcom-Wide. Flash the image in u-boot-dtb.bin */ |
32 | #define CONFIG_DEFAULT_DEVICE_TREE tegra20-medcom-wide | 32 | #define CONFIG_DEFAULT_DEVICE_TREE tegra20-medcom-wide |
33 | #define CONFIG_OF_CONTROL | 33 | #define CONFIG_OF_CONTROL |
34 | #define CONFIG_OF_SEPARATE | 34 | #define CONFIG_OF_SEPARATE |
35 | 35 | ||
36 | /* High-level configuration options */ | 36 | /* High-level configuration options */ |
37 | #define V_PROMPT "Tegra20 (Medcom-Wide) # " | 37 | #define V_PROMPT "Tegra20 (Medcom-Wide) # " |
38 | #define CONFIG_TEGRA_BOARD_STRING "Avionic Design Medcom-Wide" | 38 | #define CONFIG_TEGRA_BOARD_STRING "Avionic Design Medcom-Wide" |
39 | 39 | ||
40 | /* Board-specific serial config */ | 40 | /* Board-specific serial config */ |
41 | #define CONFIG_TEGRA_ENABLE_UARTD /* UARTD: debug UART */ | 41 | #define CONFIG_TEGRA_ENABLE_UARTD /* UARTD: debug UART */ |
42 | #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTD_BASE | 42 | #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTD_BASE |
43 | 43 | ||
44 | #define CONFIG_BOARD_EARLY_INIT_F | 44 | #define CONFIG_BOARD_EARLY_INIT_F |
45 | #define CONFIG_BOARD_LATE_INIT | 45 | #define CONFIG_BOARD_LATE_INIT |
46 | 46 | ||
47 | #define CONFIG_ENV_IS_NOWHERE | ||
48 | |||
49 | /* SD/MMC */ | 47 | /* SD/MMC */ |
50 | #define CONFIG_MMC | 48 | #define CONFIG_MMC |
51 | #define CONFIG_GENERIC_MMC | 49 | #define CONFIG_GENERIC_MMC |
52 | #define CONFIG_TEGRA_MMC | 50 | #define CONFIG_TEGRA_MMC |
53 | #define CONFIG_CMD_MMC | 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 | /* USB host support */ | 62 | /* USB host support */ |
56 | #define CONFIG_USB_EHCI | 63 | #define CONFIG_USB_EHCI |
57 | #define CONFIG_USB_EHCI_TEGRA | 64 | #define CONFIG_USB_EHCI_TEGRA |
58 | #define CONFIG_USB_STORAGE | 65 | #define CONFIG_USB_STORAGE |
59 | #define CONFIG_CMD_USB | 66 | #define CONFIG_CMD_USB |
60 | 67 | ||
61 | /* USB networking support */ | 68 | /* USB networking support */ |
62 | #define CONFIG_USB_HOST_ETHER | 69 | #define CONFIG_USB_HOST_ETHER |
63 | #define CONFIG_USB_ETHER_SMSC95XX | 70 | #define CONFIG_USB_ETHER_SMSC95XX |
64 | 71 | ||
65 | /* General networking support */ | 72 | /* General networking support */ |
66 | #define CONFIG_CMD_NET | 73 | #define CONFIG_CMD_NET |
67 | #define CONFIG_CMD_DHCP | 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 | /* LCD support */ | 76 | /* LCD support */ |
77 | #define CONFIG_LCD | 77 | #define CONFIG_LCD |
78 | #define CONFIG_PWM_TEGRA | 78 | #define CONFIG_PWM_TEGRA |
79 | #define CONFIG_VIDEO_TEGRA | 79 | #define CONFIG_VIDEO_TEGRA |
80 | #define LCD_BPP LCD_COLOR16 | 80 | #define LCD_BPP LCD_COLOR16 |