blob: 9fbc30f6b356d0f47ec36e042a8c7a868cd02019 [file] [log] [blame]
Stefan Agner31b1e172018-05-30 19:01:48 +02001if TARGET_COLIBRI_IMX6ULL
2
Max Krummenacher80ef6922021-10-06 18:55:36 +02003choice
4 prompt "Colibri iMX6ULL variant"
5 optional
6
7config TARGET_COLIBRI_IMX6ULL_NAND
8 bool "Support Colibri iMX6ULL 256MB / 512MB (raw NAND) modules"
9 imply NAND_MXS
10 help
11 Choose this option if you build for a Toradex Colibri iMX6ULL
12 256MB or 512MB module which do have raw NAND on-module.
13
14config TARGET_COLIBRI_IMX6ULL_EMMC
15 bool "Support Colibri iMX6ULL 1GB (eMMC) modules"
16 help
17 Choose this option if you build for a Toradex Colibri iMX6ULL
18 1GB module which does have eMMC on-module.
19
20endchoice
21
Stefan Agner31b1e172018-05-30 19:01:48 +020022config SYS_BOARD
23 default "colibri-imx6ull"
24
25config SYS_VENDOR
26 default "toradex"
27
28config SYS_CONFIG_NAME
Max Krummenacher80ef6922021-10-06 18:55:36 +020029 default "colibri-imx6ull-tezi-recovery" if (!TARGET_COLIBRI_IMX6ULL_NAND && !TARGET_COLIBRI_IMX6ULL_EMMC)
Stefan Agner31b1e172018-05-30 19:01:48 +020030
31config TDX_CFG_BLOCK
32 default y
33
Max Krummenacher80ef6922021-10-06 18:55:36 +020034if TARGET_COLIBRI_IMX6ULL_NAND
35
36config SYS_CONFIG_NAME
37 default "colibri-imx6ull"
38
Stefan Agner31b1e172018-05-30 19:01:48 +020039config TDX_HAVE_NAND
40 default y
41
42config TDX_CFG_BLOCK_OFFSET
43 default "2048"
44
45config TDX_CFG_BLOCK_OFFSET2
46 default "133120"
47
Max Krummenacher80ef6922021-10-06 18:55:36 +020048endif
49
50if TARGET_COLIBRI_IMX6ULL_EMMC
51
52config SYS_CONFIG_NAME
53 default "colibri-imx6ull"
54
55config TDX_HAVE_MMC
56 default y
57
58config TDX_CFG_BLOCK_DEV
59 default "0"
60
61config TDX_CFG_BLOCK_PART
62 default "1"
63
64# Toradex config block in eMMC, at the end of 1st "boot sector"
65config TDX_CFG_BLOCK_OFFSET
66 default "-512"
67
68endif
69
Stefan Agner31b1e172018-05-30 19:01:48 +020070config TDX_CFG_BLOCK_2ND_ETHADDR
71 default y
72
Tom Rini148b8bb2021-08-24 20:41:00 -040073config IMX_CONFIG
74 default "board/toradex/colibri-imx6ull/imximage.cfg"
75
Stefan Agner31b1e172018-05-30 19:01:48 +020076source "board/toradex/common/Kconfig"
77
78endif