]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/tx6/Kconfig
karo: tx6: introduce generic TARGET_EMMC/TARGET_NAND to simplify Kconfig
[karo-tx-uboot.git] / board / karo / tx6 / Kconfig
1 if TARGET_TX6
2
3 config SYS_BOARD
4         default "tx6"
5
6 config SYS_VENDOR
7         default "karo"
8
9 config SYS_SOC
10         default "mx6"
11
12 config SYS_CONFIG_NAME
13         default "tx6"
14
15 config TX6
16         bool
17         default y
18         select APBH_DMA
19         select APBH_DMA_BURST
20         select APBH_DMA_BURST8
21         select CC_OPTIMIZE_LIBS_FOR_SPEED
22         select DM
23         select DM_GPIO
24         select DM_THERMAL
25         select FSL_ESDHC if MMC
26         select FSL_USDHC if MMC
27         select IMX6_THERMAL
28         select LIB_RAND
29         select PHYLIB
30         select GET_FEC_MAC_ADDR_FROM_IIM if FEC_MXC
31         select MXC_OCOTP if CMD_FUSE
32         select OF_BOARD_SETUP
33         select OF_LIBFDT
34
35 config TX6_NAND
36         bool
37         default ! TX6_EMMC
38         select CMD_NAND_TRIMFFS if CMD_NAND
39         select CMD_ROMUPDATE
40         select FDT_FIXUP_PARTITIONS
41         select MTD_DEVICE
42         select MTD_PARTITIONS
43         select NAND
44         select NAND_MXS
45         select NAND_MXS_NO_BBM_SWAP
46         select SYS_NAND_USE_FLASH_BBT
47
48 config TX6_EMMC
49         bool
50         select CMD_MMC
51         select MMC
52         select SUPPORT_EMMC_BOOT
53
54 config TX6UL
55         bool
56         select SOC_MX6UL
57         select SYS_SDRAM_BUS_WIDTH_16
58
59 config TX6QP
60         bool
61
62 #
63 # variables selected depending on module variant
64 #
65 config SYS_LVDS_IF
66         bool
67
68 config SYS_SDRAM_BUS_WIDTH_16
69         bool
70
71 config SYS_SDRAM_BUS_WIDTH_32
72         bool
73
74 config SYS_SDRAM_CHIP_SIZE
75         int "SDRAM chip size in MiB"
76
77 choice
78         prompt "TX6 module variant"
79
80 config TARGET_TX6Q_NAND
81         bool "TX6Q modules with NAND flash (TX6Q-1030/TX6Q-1130)"
82         select SOC_MX6Q
83         select SYS_I2C
84         select SYS_I2C_MXC
85
86 config TARGET_TX6Q_EMMC
87         bool "TX6Q modules with eMMC (TX6Q-1020/TX6Q-1036)"
88         select SOC_MX6Q
89         select SYS_I2C
90         select SYS_I2C_MXC
91         select TX6_EMMC
92
93 config TARGET_TX6S_NAND
94         bool "TX6S modules with NAND flash (TX6S-8034/TX6S-8134)"
95         select SOC_MX6S
96         select SYS_I2C
97         select SYS_I2C_MXC
98
99 config TARGET_TX6S_EMMC
100         bool "TX6S modules with eMMC (TX6S-8035/TX6S-8135)"
101         select SOC_MX6S
102         select SYS_I2C
103         select SYS_I2C_MXC
104         select TX6_EMMC
105
106 config TARGET_TX6U_NAND
107         bool "TX6U (i.MX6DL) modules with NAND flash (TX6U-8030/TX6U-8032)"
108         select SOC_MX6DL
109         select SYS_I2C
110         select SYS_I2C_MXC
111
112 config TARGET_TX6U_EMMC
113         bool "TX6U (i.MX6DL) modules with eMMC (TX6U-8033/TX6U-8133)"
114         select SOC_MX6DL
115         select SYS_I2C
116         select SYS_I2C_MXC
117         select TX6_EMMC
118
119 config TARGET_TX6UL_NAND
120         bool "TXUL (i.MX6UL) modules with NAND flash (TXUL-5010)"
121         select TX6UL
122
123 config TARGET_TX6UL_EMMC
124         bool "TXUL (i.MX6UL) modules with eMMC (TXUL-5011)"
125         select TX6UL
126         select TX6_EMMC
127
128 config TARGET_TX6QP_EMMC
129         bool "TX6Q modules with i.MX6Q+ and eMMC (TX6QP-8037)"
130         select SOC_MX6Q
131         select SYS_I2C
132         select SYS_I2C_MXC
133         select TX6_EMMC
134         select TX6QP
135
136 endchoice
137
138 choice
139         prompt "U-Boot image variant"
140         default TX6_UBOOT
141
142 config TX6_UBOOT
143         bool "Standard U-Boot image"
144
145 config TX6_UBOOT_MFG
146         bool "U-Boot image for use with Freescale's MfGTool"
147
148 config TX6_UBOOT_NOENV
149         bool "U-Boot using only built-in environment"
150         select UBOOT_IGNORE_ENV
151
152 endchoice
153
154 endif