Stefan Agner | 31b1e17 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 1 | if TARGET_COLIBRI_IMX6ULL |
| 2 | |
Max Krummenacher | 80ef692 | 2021-10-06 18:55:36 +0200 | [diff] [blame] | 3 | choice |
| 4 | prompt "Colibri iMX6ULL variant" |
| 5 | optional |
| 6 | |
| 7 | config 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 | |
| 14 | config 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 | |
| 20 | endchoice |
| 21 | |
Stefan Agner | 31b1e17 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 22 | config SYS_BOARD |
| 23 | default "colibri-imx6ull" |
| 24 | |
| 25 | config SYS_VENDOR |
| 26 | default "toradex" |
| 27 | |
| 28 | config SYS_CONFIG_NAME |
Max Krummenacher | 80ef692 | 2021-10-06 18:55:36 +0200 | [diff] [blame] | 29 | default "colibri-imx6ull-tezi-recovery" if (!TARGET_COLIBRI_IMX6ULL_NAND && !TARGET_COLIBRI_IMX6ULL_EMMC) |
Stefan Agner | 31b1e17 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 30 | |
| 31 | config TDX_CFG_BLOCK |
| 32 | default y |
| 33 | |
Max Krummenacher | 80ef692 | 2021-10-06 18:55:36 +0200 | [diff] [blame] | 34 | if TARGET_COLIBRI_IMX6ULL_NAND |
| 35 | |
| 36 | config SYS_CONFIG_NAME |
| 37 | default "colibri-imx6ull" |
| 38 | |
Stefan Agner | 31b1e17 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 39 | config TDX_HAVE_NAND |
| 40 | default y |
| 41 | |
| 42 | config TDX_CFG_BLOCK_OFFSET |
| 43 | default "2048" |
| 44 | |
| 45 | config TDX_CFG_BLOCK_OFFSET2 |
| 46 | default "133120" |
| 47 | |
Max Krummenacher | 80ef692 | 2021-10-06 18:55:36 +0200 | [diff] [blame] | 48 | endif |
| 49 | |
| 50 | if TARGET_COLIBRI_IMX6ULL_EMMC |
| 51 | |
| 52 | config SYS_CONFIG_NAME |
| 53 | default "colibri-imx6ull" |
| 54 | |
| 55 | config TDX_HAVE_MMC |
| 56 | default y |
| 57 | |
| 58 | config TDX_CFG_BLOCK_DEV |
| 59 | default "0" |
| 60 | |
| 61 | config TDX_CFG_BLOCK_PART |
| 62 | default "1" |
| 63 | |
| 64 | # Toradex config block in eMMC, at the end of 1st "boot sector" |
| 65 | config TDX_CFG_BLOCK_OFFSET |
| 66 | default "-512" |
| 67 | |
| 68 | endif |
| 69 | |
Stefan Agner | 31b1e17 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 70 | config TDX_CFG_BLOCK_2ND_ETHADDR |
| 71 | default y |
| 72 | |
Tom Rini | 148b8bb | 2021-08-24 20:41:00 -0400 | [diff] [blame] | 73 | config IMX_CONFIG |
| 74 | default "board/toradex/colibri-imx6ull/imximage.cfg" |
| 75 | |
Stefan Agner | 31b1e17 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 76 | source "board/toradex/common/Kconfig" |
| 77 | |
| 78 | endif |