c9f2380f4d9b2954df5dedc491216e1dba5abc7e
[platform/kernel/u-boot.git] / arch / arm / mach-tegra / Kconfig
1 if TEGRA
2
3 config SPL_GPIO_SUPPORT
4         default y
5
6 config SPL_LIBCOMMON_SUPPORT
7         default y
8
9 config SPL_LIBGENERIC_SUPPORT
10         default y
11
12 config SPL_SERIAL_SUPPORT
13         default y
14
15 config TEGRA_IVC
16         bool "Tegra IVC protocol"
17         help
18           IVC (Inter-VM Communication) protocol is a Tegra-specific IPC
19           (Inter Processor Communication) framework. Within the context of
20           U-Boot, it is typically used for communication between the main CPU
21           and various auxiliary processors.
22
23 config TEGRA_COMMON
24         bool "Tegra common options"
25         select CLK
26         select DM
27         select DM_ETH
28         select DM_GPIO
29         select DM_I2C
30         select DM_KEYBOARD
31         select DM_MMC
32         select DM_PWM
33         select DM_RESET
34         select DM_SERIAL
35         select DM_SPI
36         select DM_SPI_FLASH
37         select MISC
38         select OF_CONTROL
39         select VIDCONSOLE_AS_LCD if DM_VIDEO
40         select BOARD_EARLY_INIT_F
41
42 config TEGRA_NO_BPMP
43         bool "Tegra common options for SoCs without BPMP"
44         select TEGRA_CAR
45         select TEGRA_CAR_CLOCK
46         select TEGRA_CAR_RESET
47
48 config TEGRA_ARMV7_COMMON
49         bool "Tegra 32-bit common options"
50         select CPU_V7
51         select SPL
52         select SUPPORT_SPL
53         select TEGRA_COMMON
54         select TEGRA_GPIO
55         select TEGRA_NO_BPMP
56
57 config TEGRA_ARMV8_COMMON
58         bool "Tegra 64-bit common options"
59         select ARM64
60         select TEGRA_COMMON
61
62 choice
63         prompt "Tegra SoC select"
64         optional
65
66 config TEGRA20
67         bool "Tegra20 family"
68         select TEGRA_ARMV7_COMMON
69
70 config TEGRA30
71         bool "Tegra30 family"
72         select TEGRA_ARMV7_COMMON
73
74 config TEGRA114
75         bool "Tegra114 family"
76         select TEGRA_ARMV7_COMMON
77
78 config TEGRA124
79         bool "Tegra124 family"
80         select TEGRA_ARMV7_COMMON
81
82 config TEGRA210
83         bool "Tegra210 family"
84         select TEGRA_GPIO
85         select TEGRA_ARMV8_COMMON
86         select TEGRA_NO_BPMP
87
88 config TEGRA186
89         bool "Tegra186 family"
90         select DM_MAILBOX
91         select TEGRA186_BPMP
92         select TEGRA186_CLOCK
93         select TEGRA186_GPIO
94         select TEGRA186_RESET
95         select TEGRA_ARMV8_COMMON
96         select TEGRA_HSP
97         select TEGRA_IVC
98
99 endchoice
100
101 config TEGRA_DISCONNECT_UDC_ON_BOOT
102         bool "Disconnect USB device mode controller on boot"
103         default y
104         help
105           When loading U-Boot into RAM over USB protocols using tools such as
106           tegrarcm or L4T's exec-uboot.sh/tegraflash.py, Tegra's USB device
107           mode controller is initialized and enumerated by the host PC running
108           the tool. Unfortunately, these tools do not shut down the USB
109           controller before executing the downloaded code, and so the host PC
110           does not "de-enumerate" the USB device. This option shuts down the
111           USB controller when U-Boot boots to avoid leaving a stale USB device
112           present.
113
114 config SYS_MALLOC_F_LEN
115         default 0x1800
116
117 source "arch/arm/mach-tegra/tegra20/Kconfig"
118 source "arch/arm/mach-tegra/tegra30/Kconfig"
119 source "arch/arm/mach-tegra/tegra114/Kconfig"
120 source "arch/arm/mach-tegra/tegra124/Kconfig"
121 source "arch/arm/mach-tegra/tegra210/Kconfig"
122 source "arch/arm/mach-tegra/tegra186/Kconfig"
123
124 endif