Commit 573668a24e3e4ed5667332ea656e35021767ea6d

Authored by Stephen Warren
Committed by Tom Warren
1 parent 300feff324

tegra: put eMMC environment into the boot sectors

When I set up Tegra's config files to put the environment into eMMC, I
assumed that CONFIG_ENV_OFFSET was a linearized address relative to the
start of the eMMC device, and spanning HW partitions boot0, boot1,
general* and the user area in order. However, it turns out that the
offset is actually relative to the beginning of the user area. Hence,
the environment block ended up in a different location to expected and
documented.

Set CONFIG_SYS_MMC_ENV_PART=2 (boot1) to solve this, and adjust
CONFIG_ENV_OFFSET to be relative to the start of boot1, not the entire
eMMC.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>

Showing 4 changed files with 8 additions and 4 deletions Inline Diff

include/configs/paz00.h
1 /* 1 /*
2 * Copyright (c) 2010-2012 NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2010-2012 NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * See file CREDITS for list of people who contributed to this 4 * See file CREDITS for list of people who contributed to this
5 * project. 5 * project.
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify it 7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License, 8 * under the terms and conditions of the GNU General Public License,
9 * version 2, as published by the Free Software Foundation. 9 * version 2, as published by the Free Software Foundation.
10 * 10 *
11 * This program is distributed in the hope it will be useful, but WITHOUT 11 * This program is distributed in the hope it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details. 14 * more details.
15 */ 15 */
16 16
17 #ifndef __CONFIG_H 17 #ifndef __CONFIG_H
18 #define __CONFIG_H 18 #define __CONFIG_H
19 19
20 #include <asm/sizes.h> 20 #include <asm/sizes.h>
21 #include "tegra20-common.h" 21 #include "tegra20-common.h"
22 22
23 /* Enable fdt support for Paz00. Flash the image in u-boot-dtb.bin */ 23 /* Enable fdt support for Paz00. Flash the image in u-boot-dtb.bin */
24 #define CONFIG_DEFAULT_DEVICE_TREE tegra20-paz00 24 #define CONFIG_DEFAULT_DEVICE_TREE tegra20-paz00
25 #define CONFIG_OF_CONTROL 25 #define CONFIG_OF_CONTROL
26 #define CONFIG_OF_SEPARATE 26 #define CONFIG_OF_SEPARATE
27 27
28 /* High-level configuration options */ 28 /* High-level configuration options */
29 #define V_PROMPT "Tegra20 (Paz00) MOD # " 29 #define V_PROMPT "Tegra20 (Paz00) MOD # "
30 #define CONFIG_TEGRA20_BOARD_STRING "Compal Paz00" 30 #define CONFIG_TEGRA20_BOARD_STRING "Compal Paz00"
31 31
32 /* Board-specific serial config */ 32 /* Board-specific serial config */
33 #define CONFIG_SERIAL_MULTI 33 #define CONFIG_SERIAL_MULTI
34 #define CONFIG_TEGRA20_ENABLE_UARTA 34 #define CONFIG_TEGRA20_ENABLE_UARTA
35 #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE 35 #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE
36 36
37 #define CONFIG_MACH_TYPE MACH_TYPE_PAZ00 37 #define CONFIG_MACH_TYPE MACH_TYPE_PAZ00
38 38
39 #define CONFIG_BOARD_EARLY_INIT_F 39 #define CONFIG_BOARD_EARLY_INIT_F
40 40
41 /* SD/MMC */ 41 /* SD/MMC */
42 #define CONFIG_MMC 42 #define CONFIG_MMC
43 #define CONFIG_GENERIC_MMC 43 #define CONFIG_GENERIC_MMC
44 #define CONFIG_TEGRA_MMC 44 #define CONFIG_TEGRA_MMC
45 #define CONFIG_CMD_MMC 45 #define CONFIG_CMD_MMC
46 46
47 #define CONFIG_DOS_PARTITION 47 #define CONFIG_DOS_PARTITION
48 #define CONFIG_EFI_PARTITION 48 #define CONFIG_EFI_PARTITION
49 #define CONFIG_CMD_EXT2 49 #define CONFIG_CMD_EXT2
50 #define CONFIG_CMD_FAT 50 #define CONFIG_CMD_FAT
51 51
52 /* Environment in eMMC, at the end of 2nd "boot sector" */ 52 /* Environment in eMMC, at the end of 2nd "boot sector" */
53 #define CONFIG_ENV_IS_IN_MMC 53 #define CONFIG_ENV_IS_IN_MMC
54 #define CONFIG_ENV_OFFSET ((2 * 1024 * 1024) - CONFIG_ENV_SIZE) 54 #define CONFIG_ENV_OFFSET ((1024 * 1024) - CONFIG_ENV_SIZE)
55 #define CONFIG_SYS_MMC_ENV_DEV 0 55 #define CONFIG_SYS_MMC_ENV_DEV 0
56 #define CONFIG_SYS_MMC_ENV_PART 2
56 57
57 /* USB Host support */ 58 /* USB Host support */
58 #define CONFIG_USB_EHCI 59 #define CONFIG_USB_EHCI
59 #define CONFIG_USB_EHCI_TEGRA 60 #define CONFIG_USB_EHCI_TEGRA
60 #define CONFIG_USB_STORAGE 61 #define CONFIG_USB_STORAGE
61 #define CONFIG_CMD_USB 62 #define CONFIG_CMD_USB
62 63
63 /* USB networking support */ 64 /* USB networking support */
64 #define CONFIG_USB_HOST_ETHER 65 #define CONFIG_USB_HOST_ETHER
65 #define CONFIG_USB_ETHER_ASIX 66 #define CONFIG_USB_ETHER_ASIX
66 67
67 /* General networking support */ 68 /* General networking support */
68 #define CONFIG_CMD_NET 69 #define CONFIG_CMD_NET
69 #define CONFIG_CMD_DHCP 70 #define CONFIG_CMD_DHCP
70 71
71 #include "tegra20-common-post.h" 72 #include "tegra20-common-post.h"
72 73
73 #endif /* __CONFIG_H */ 74 #endif /* __CONFIG_H */
74 75
include/configs/seaboard.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 * 4 *
5 * See file CREDITS for list of people who contributed to this 5 * See file CREDITS for list of people who contributed to this
6 * project. 6 * project.
7 * 7 *
8 * This program is free software; you can redistribute it and/or 8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of 10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version. 11 * the License, or (at your option) any later version.
12 * 12 *
13 * This program is distributed in the hope that it will be useful, 13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details. 16 * GNU General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA 21 * MA 02111-1307 USA
22 */ 22 */
23 23
24 #ifndef __CONFIG_H 24 #ifndef __CONFIG_H
25 #define __CONFIG_H 25 #define __CONFIG_H
26 26
27 #include <asm/sizes.h> 27 #include <asm/sizes.h>
28 28
29 /* LP0 suspend / resume */ 29 /* LP0 suspend / resume */
30 #define CONFIG_TEGRA20_LP0 30 #define CONFIG_TEGRA20_LP0
31 #define CONFIG_AES 31 #define CONFIG_AES
32 #define CONFIG_TEGRA_PMU 32 #define CONFIG_TEGRA_PMU
33 #define CONFIG_TPS6586X_POWER 33 #define CONFIG_TPS6586X_POWER
34 #define CONFIG_TEGRA_CLOCK_SCALING 34 #define CONFIG_TEGRA_CLOCK_SCALING
35 35
36 #include "tegra20-common.h" 36 #include "tegra20-common.h"
37 37
38 /* Enable fdt support for Seaboard. Flash the image in u-boot-dtb.bin */ 38 /* Enable fdt support for Seaboard. Flash the image in u-boot-dtb.bin */
39 #define CONFIG_DEFAULT_DEVICE_TREE tegra20-seaboard 39 #define CONFIG_DEFAULT_DEVICE_TREE tegra20-seaboard
40 #define CONFIG_OF_CONTROL 40 #define CONFIG_OF_CONTROL
41 #define CONFIG_OF_SEPARATE 41 #define CONFIG_OF_SEPARATE
42 42
43 /* High-level configuration options */ 43 /* High-level configuration options */
44 #define V_PROMPT "Tegra20 (SeaBoard) # " 44 #define V_PROMPT "Tegra20 (SeaBoard) # "
45 #define CONFIG_TEGRA20_BOARD_STRING "NVIDIA Seaboard" 45 #define CONFIG_TEGRA20_BOARD_STRING "NVIDIA Seaboard"
46 46
47 /* Board-specific serial config */ 47 /* Board-specific serial config */
48 #define CONFIG_SERIAL_MULTI 48 #define CONFIG_SERIAL_MULTI
49 #define CONFIG_TEGRA20_ENABLE_UARTD 49 #define CONFIG_TEGRA20_ENABLE_UARTD
50 #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTD_BASE 50 #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTD_BASE
51 51
52 /* On Seaboard: GPIO_PI3 = Port I = 8, bit = 3 */ 52 /* On Seaboard: GPIO_PI3 = Port I = 8, bit = 3 */
53 #define CONFIG_UART_DISABLE_GPIO GPIO_PI3 53 #define CONFIG_UART_DISABLE_GPIO GPIO_PI3
54 54
55 #define CONFIG_MACH_TYPE MACH_TYPE_SEABOARD 55 #define CONFIG_MACH_TYPE MACH_TYPE_SEABOARD
56 56
57 #define CONFIG_BOARD_EARLY_INIT_F 57 #define CONFIG_BOARD_EARLY_INIT_F
58 58
59 /* I2C */ 59 /* I2C */
60 #define CONFIG_TEGRA_I2C 60 #define CONFIG_TEGRA_I2C
61 #define CONFIG_SYS_I2C_INIT_BOARD 61 #define CONFIG_SYS_I2C_INIT_BOARD
62 #define CONFIG_I2C_MULTI_BUS 62 #define CONFIG_I2C_MULTI_BUS
63 #define CONFIG_SYS_MAX_I2C_BUS 4 63 #define CONFIG_SYS_MAX_I2C_BUS 4
64 #define CONFIG_SYS_I2C_SPEED 100000 64 #define CONFIG_SYS_I2C_SPEED 100000
65 #define CONFIG_CMD_I2C 65 #define CONFIG_CMD_I2C
66 66
67 /* SD/MMC */ 67 /* SD/MMC */
68 #define CONFIG_MMC 68 #define CONFIG_MMC
69 #define CONFIG_GENERIC_MMC 69 #define CONFIG_GENERIC_MMC
70 #define CONFIG_TEGRA_MMC 70 #define CONFIG_TEGRA_MMC
71 #define CONFIG_CMD_MMC 71 #define CONFIG_CMD_MMC
72 72
73 #define CONFIG_DOS_PARTITION 73 #define CONFIG_DOS_PARTITION
74 #define CONFIG_EFI_PARTITION 74 #define CONFIG_EFI_PARTITION
75 #define CONFIG_CMD_EXT2 75 #define CONFIG_CMD_EXT2
76 #define CONFIG_CMD_FAT 76 #define CONFIG_CMD_FAT
77 77
78 /* Environment in eMMC, at the end of 2nd "boot sector" */ 78 /* Environment in eMMC, at the end of 2nd "boot sector" */
79 #define CONFIG_ENV_IS_IN_MMC 79 #define CONFIG_ENV_IS_IN_MMC
80 #define CONFIG_ENV_OFFSET ((2 * 512 * 1024) - CONFIG_ENV_SIZE) 80 #define CONFIG_ENV_OFFSET ((512 * 1024) - CONFIG_ENV_SIZE)
81 #define CONFIG_SYS_MMC_ENV_DEV 0 81 #define CONFIG_SYS_MMC_ENV_DEV 0
82 #define CONFIG_SYS_MMC_ENV_PART 2
82 83
83 /* USB Host support */ 84 /* USB Host support */
84 #define CONFIG_USB_EHCI 85 #define CONFIG_USB_EHCI
85 #define CONFIG_USB_EHCI_TEGRA 86 #define CONFIG_USB_EHCI_TEGRA
86 #define CONFIG_USB_STORAGE 87 #define CONFIG_USB_STORAGE
87 #define CONFIG_CMD_USB 88 #define CONFIG_CMD_USB
88 89
89 /* USB networking support */ 90 /* USB networking support */
90 #define CONFIG_USB_HOST_ETHER 91 #define CONFIG_USB_HOST_ETHER
91 #define CONFIG_USB_ETHER_ASIX 92 #define CONFIG_USB_ETHER_ASIX
92 93
93 /* General networking support */ 94 /* General networking support */
94 #define CONFIG_CMD_NET 95 #define CONFIG_CMD_NET
95 #define CONFIG_CMD_DHCP 96 #define CONFIG_CMD_DHCP
96 97
97 /* Enable keyboard */ 98 /* Enable keyboard */
98 #define CONFIG_TEGRA20_KEYBOARD 99 #define CONFIG_TEGRA20_KEYBOARD
99 #define CONFIG_KEYBOARD 100 #define CONFIG_KEYBOARD
100 101
101 #undef TEGRA20_DEVICE_SETTINGS 102 #undef TEGRA20_DEVICE_SETTINGS
102 #define TEGRA20_DEVICE_SETTINGS "stdin=serial,tegra-kbc\0" \ 103 #define TEGRA20_DEVICE_SETTINGS "stdin=serial,tegra-kbc\0" \
103 "stdout=serial\0" \ 104 "stdout=serial\0" \
104 "stderr=serial\0" 105 "stderr=serial\0"
105 106
106 #include "tegra20-common-post.h" 107 #include "tegra20-common-post.h"
107 108
108 /* NAND support */ 109 /* NAND support */
109 #define CONFIG_CMD_NAND 110 #define CONFIG_CMD_NAND
110 #define CONFIG_TEGRA_NAND 111 #define CONFIG_TEGRA_NAND
111 112
112 /* Max number of NAND devices */ 113 /* Max number of NAND devices */
113 #define CONFIG_SYS_MAX_NAND_DEVICE 1 114 #define CONFIG_SYS_MAX_NAND_DEVICE 1
114 115
115 /* Somewhat oddly, the NAND base address must be a config option */ 116 /* Somewhat oddly, the NAND base address must be a config option */
116 #define CONFIG_SYS_NAND_BASE TEGRA20_NAND_BASE 117 #define CONFIG_SYS_NAND_BASE TEGRA20_NAND_BASE
117 #endif /* __CONFIG_H */ 118 #endif /* __CONFIG_H */
118 119
include/configs/ventana.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 * 4 *
5 * See file CREDITS for list of people who contributed to this 5 * See file CREDITS for list of people who contributed to this
6 * project. 6 * project.
7 * 7 *
8 * This program is free software; you can redistribute it and/or 8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of 10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version. 11 * the License, or (at your option) any later version.
12 * 12 *
13 * This program is distributed in the hope that it will be useful, 13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details. 16 * GNU General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA 21 * MA 02111-1307 USA
22 */ 22 */
23 23
24 #ifndef __CONFIG_H 24 #ifndef __CONFIG_H
25 #define __CONFIG_H 25 #define __CONFIG_H
26 26
27 #include <asm/sizes.h> 27 #include <asm/sizes.h>
28 #include "tegra20-common.h" 28 #include "tegra20-common.h"
29 29
30 /* Enable fdt support for Ventana. Flash the image in u-boot-dtb.bin */ 30 /* Enable fdt support for Ventana. Flash the image in u-boot-dtb.bin */
31 #define CONFIG_DEFAULT_DEVICE_TREE tegra20-ventana 31 #define CONFIG_DEFAULT_DEVICE_TREE tegra20-ventana
32 #define CONFIG_OF_CONTROL 32 #define CONFIG_OF_CONTROL
33 #define CONFIG_OF_SEPARATE 33 #define CONFIG_OF_SEPARATE
34 34
35 /* High-level configuration options */ 35 /* High-level configuration options */
36 #define V_PROMPT "Tegra20 (Ventana) # " 36 #define V_PROMPT "Tegra20 (Ventana) # "
37 #define CONFIG_TEGRA20_BOARD_STRING "NVIDIA Ventana" 37 #define CONFIG_TEGRA20_BOARD_STRING "NVIDIA Ventana"
38 38
39 /* Board-specific serial config */ 39 /* Board-specific serial config */
40 #define CONFIG_SERIAL_MULTI 40 #define CONFIG_SERIAL_MULTI
41 #define CONFIG_TEGRA20_ENABLE_UARTD 41 #define CONFIG_TEGRA20_ENABLE_UARTD
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_MACH_TYPE MACH_TYPE_VENTANA 44 #define CONFIG_MACH_TYPE MACH_TYPE_VENTANA
45 45
46 #define CONFIG_BOARD_EARLY_INIT_F 46 #define CONFIG_BOARD_EARLY_INIT_F
47 47
48 /* SD/MMC */ 48 /* SD/MMC */
49 #define CONFIG_MMC 49 #define CONFIG_MMC
50 #define CONFIG_GENERIC_MMC 50 #define CONFIG_GENERIC_MMC
51 #define CONFIG_TEGRA_MMC 51 #define CONFIG_TEGRA_MMC
52 #define CONFIG_CMD_MMC 52 #define CONFIG_CMD_MMC
53 53
54 #define CONFIG_DOS_PARTITION 54 #define CONFIG_DOS_PARTITION
55 #define CONFIG_EFI_PARTITION 55 #define CONFIG_EFI_PARTITION
56 #define CONFIG_CMD_EXT2 56 #define CONFIG_CMD_EXT2
57 #define CONFIG_CMD_FAT 57 #define CONFIG_CMD_FAT
58 58
59 /* Environment in eMMC, at the end of 2nd "boot sector" */ 59 /* Environment in eMMC, at the end of 2nd "boot sector" */
60 #define CONFIG_ENV_IS_IN_MMC 60 #define CONFIG_ENV_IS_IN_MMC
61 #define CONFIG_ENV_OFFSET ((2 * 1024 * 1024) - CONFIG_ENV_SIZE) 61 #define CONFIG_ENV_OFFSET ((1024 * 1024) - CONFIG_ENV_SIZE)
62 #define CONFIG_SYS_MMC_ENV_DEV 0 62 #define CONFIG_SYS_MMC_ENV_DEV 0
63 #define CONFIG_SYS_MMC_ENV_PART 2
63 64
64 /* USB Host support */ 65 /* USB Host support */
65 #define CONFIG_USB_EHCI 66 #define CONFIG_USB_EHCI
66 #define CONFIG_USB_EHCI_TEGRA 67 #define CONFIG_USB_EHCI_TEGRA
67 #define CONFIG_USB_STORAGE 68 #define CONFIG_USB_STORAGE
68 #define CONFIG_CMD_USB 69 #define CONFIG_CMD_USB
69 70
70 /* USB networking support */ 71 /* USB networking support */
71 #define CONFIG_USB_HOST_ETHER 72 #define CONFIG_USB_HOST_ETHER
72 #define CONFIG_USB_ETHER_ASIX 73 #define CONFIG_USB_ETHER_ASIX
73 74
74 /* General networking support */ 75 /* General networking support */
75 #define CONFIG_CMD_NET 76 #define CONFIG_CMD_NET
76 #define CONFIG_CMD_DHCP 77 #define CONFIG_CMD_DHCP
77 78
78 #include "tegra20-common-post.h" 79 #include "tegra20-common-post.h"
79 80
80 #endif /* __CONFIG_H */ 81 #endif /* __CONFIG_H */
81 82
include/configs/whistler.h
1 /* 1 /*
2 * (C) Copyright 2010-2012 2 * (C) Copyright 2010-2012
3 * NVIDIA Corporation <www.nvidia.com> 3 * NVIDIA Corporation <www.nvidia.com>
4 * 4 *
5 * See file CREDITS for list of people who contributed to this 5 * See file CREDITS for list of people who contributed to this
6 * project. 6 * project.
7 * 7 *
8 * This program is free software; you can redistribute it and/or 8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of 10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version. 11 * the License, or (at your option) any later version.
12 * 12 *
13 * This program is distributed in the hope that it will be useful, 13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details. 16 * GNU General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA 21 * MA 02111-1307 USA
22 */ 22 */
23 23
24 #ifndef __CONFIG_H 24 #ifndef __CONFIG_H
25 #define __CONFIG_H 25 #define __CONFIG_H
26 26
27 #include <asm/sizes.h> 27 #include <asm/sizes.h>
28 #include "tegra20-common.h" 28 #include "tegra20-common.h"
29 29
30 /* Enable fdt support for Whistler. Flash the image in u-boot-dtb.bin */ 30 /* Enable fdt support for Whistler. Flash the image in u-boot-dtb.bin */
31 #define CONFIG_DEFAULT_DEVICE_TREE tegra20-whistler 31 #define CONFIG_DEFAULT_DEVICE_TREE tegra20-whistler
32 #define CONFIG_OF_CONTROL 32 #define CONFIG_OF_CONTROL
33 #define CONFIG_OF_SEPARATE 33 #define CONFIG_OF_SEPARATE
34 34
35 /* High-level configuration options */ 35 /* High-level configuration options */
36 #define V_PROMPT "Tegra20 (Whistler) # " 36 #define V_PROMPT "Tegra20 (Whistler) # "
37 #define CONFIG_TEGRA20_BOARD_STRING "NVIDIA Whistler" 37 #define CONFIG_TEGRA20_BOARD_STRING "NVIDIA Whistler"
38 38
39 /* Board-specific serial config */ 39 /* Board-specific serial config */
40 #define CONFIG_SERIAL_MULTI 40 #define CONFIG_SERIAL_MULTI
41 #define CONFIG_TEGRA20_ENABLE_UARTA 41 #define CONFIG_TEGRA20_ENABLE_UARTA
42 #define CONFIG_TEGRA20_UARTA_UAA_UAB 42 #define CONFIG_TEGRA20_UARTA_UAA_UAB
43 #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE 43 #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE
44 44
45 #define CONFIG_MACH_TYPE MACH_TYPE_WHISTLER 45 #define CONFIG_MACH_TYPE MACH_TYPE_WHISTLER
46 46
47 #define CONFIG_BOARD_EARLY_INIT_F 47 #define CONFIG_BOARD_EARLY_INIT_F
48 48
49 /* I2C */ 49 /* I2C */
50 #define CONFIG_TEGRA_I2C 50 #define CONFIG_TEGRA_I2C
51 #define CONFIG_SYS_I2C_INIT_BOARD 51 #define CONFIG_SYS_I2C_INIT_BOARD
52 #define CONFIG_I2C_MULTI_BUS 52 #define CONFIG_I2C_MULTI_BUS
53 #define CONFIG_SYS_MAX_I2C_BUS 4 53 #define CONFIG_SYS_MAX_I2C_BUS 4
54 #define CONFIG_SYS_I2C_SPEED 100000 54 #define CONFIG_SYS_I2C_SPEED 100000
55 #define CONFIG_CMD_I2C 55 #define CONFIG_CMD_I2C
56 56
57 /* SD/MMC */ 57 /* SD/MMC */
58 #define CONFIG_MMC 58 #define CONFIG_MMC
59 #define CONFIG_GENERIC_MMC 59 #define CONFIG_GENERIC_MMC
60 #define CONFIG_TEGRA_MMC 60 #define CONFIG_TEGRA_MMC
61 #define CONFIG_CMD_MMC 61 #define CONFIG_CMD_MMC
62 62
63 #define CONFIG_DOS_PARTITION 63 #define CONFIG_DOS_PARTITION
64 #define CONFIG_EFI_PARTITION 64 #define CONFIG_EFI_PARTITION
65 #define CONFIG_CMD_EXT2 65 #define CONFIG_CMD_EXT2
66 #define CONFIG_CMD_FAT 66 #define CONFIG_CMD_FAT
67 67
68 /* 68 /*
69 * Environment in eMMC, at the end of 2nd "boot sector". Note: This assumes 69 * Environment in eMMC, at the end of 2nd "boot sector". Note: This assumes
70 * the user plugged the standard 8MB MoviNAND card into J29/HSMMC/POP. If 70 * the user plugged the standard 8MB MoviNAND card into J29/HSMMC/POP. If
71 * they didn't, the boot sector layout may be different. However, use of that 71 * they didn't, the boot sector layout may be different. However, use of that
72 * particular card is standard practice as far as I know. 72 * particular card is standard practice as far as I know.
73 */ 73 */
74 #define CONFIG_ENV_IS_IN_MMC 74 #define CONFIG_ENV_IS_IN_MMC
75 #define CONFIG_ENV_OFFSET ((2 * 512 * 1024) - CONFIG_ENV_SIZE) 75 #define CONFIG_ENV_OFFSET ((512 * 1024) - CONFIG_ENV_SIZE)
76 #define CONFIG_SYS_MMC_ENV_DEV 0 76 #define CONFIG_SYS_MMC_ENV_DEV 0
77 #define CONFIG_SYS_MMC_ENV_PART 2
77 78
78 /* USB Host support */ 79 /* USB Host support */
79 #define CONFIG_USB_EHCI 80 #define CONFIG_USB_EHCI
80 #define CONFIG_USB_EHCI_TEGRA 81 #define CONFIG_USB_EHCI_TEGRA
81 #define CONFIG_USB_STORAGE 82 #define CONFIG_USB_STORAGE
82 #define CONFIG_CMD_USB 83 #define CONFIG_CMD_USB
83 84
84 /* USB networking support */ 85 /* USB networking support */
85 #define CONFIG_USB_HOST_ETHER 86 #define CONFIG_USB_HOST_ETHER
86 #define CONFIG_USB_ETHER_ASIX 87 #define CONFIG_USB_ETHER_ASIX
87 88
88 /* General networking support */ 89 /* General networking support */
89 #define CONFIG_CMD_NET 90 #define CONFIG_CMD_NET
90 #define CONFIG_CMD_DHCP 91 #define CONFIG_CMD_DHCP
91 92
92 #include "tegra20-common-post.h" 93 #include "tegra20-common-post.h"
93 94
94 #endif /* __CONFIG_H */ 95 #endif /* __CONFIG_H */
95 96