Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 1 | if TARGET_COLIBRI_IMX7 |
| 2 | |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 3 | choice |
| 4 | prompt "Colibri iMX7S/D variant" |
| 5 | |
| 6 | config TARGET_COLIBRI_IMX7_NAND |
| 7 | bool "Support Colibri iMX7 Solo 256MB/Dual 512MB (raw NAND) modules" |
| 8 | imply NAND_MXS |
| 9 | help |
| 10 | Choose this option if you build for a Toradex Colibri iMX7S |
| 11 | 256MB or Colibri iMX7D 512MB module which do have raw NAND |
| 12 | on-module. |
| 13 | |
| 14 | config TARGET_COLIBRI_IMX7_EMMC |
| 15 | bool "Support Colibri iMX7 Dual 1GB (eMMC) modules" |
| 16 | help |
| 17 | Choose this option if you build for a Toradex Colibri iMX7D |
| 18 | 1GB module which does have eMMC on-module. |
| 19 | |
| 20 | endchoice |
| 21 | |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 22 | config SYS_BOARD |
| 23 | default "colibri_imx7" |
| 24 | |
| 25 | config SYS_VENDOR |
| 26 | default "toradex" |
| 27 | |
| 28 | config SYS_CONFIG_NAME |
| 29 | default "colibri_imx7" |
| 30 | |
| 31 | config COLIBRI_IMX7_EXT_PHYCLK |
| 32 | bool "External oscillator for Ethernet PHY clock provided" |
| 33 | help |
| 34 | Select this if your module provides a external Ethernet PHY |
| 35 | clock source. |
| 36 | default y |
| 37 | |
Marcel Ziswiler | d92dee5 | 2016-11-16 17:49:23 +0100 | [diff] [blame] | 38 | config TDX_CFG_BLOCK |
| 39 | default y |
| 40 | |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 41 | config TDX_CFG_BLOCK_2ND_ETHADDR |
| 42 | default y |
| 43 | |
| 44 | if TARGET_COLIBRI_IMX7_NAND |
| 45 | |
Marcel Ziswiler | d92dee5 | 2016-11-16 17:49:23 +0100 | [diff] [blame] | 46 | config TDX_HAVE_NAND |
| 47 | default y |
| 48 | |
| 49 | config TDX_CFG_BLOCK_OFFSET |
| 50 | default "2048" |
| 51 | |
| 52 | config TDX_CFG_BLOCK_OFFSET2 |
| 53 | default "133120" |
| 54 | |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 55 | endif |
| 56 | |
| 57 | if TARGET_COLIBRI_IMX7_EMMC |
| 58 | |
| 59 | config TDX_HAVE_MMC |
Marcel Ziswiler | d92dee5 | 2016-11-16 17:49:23 +0100 | [diff] [blame] | 60 | default y |
| 61 | |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 62 | config TDX_CFG_BLOCK_DEV |
| 63 | default "0" |
| 64 | |
| 65 | config TDX_CFG_BLOCK_PART |
| 66 | default "1" |
| 67 | |
| 68 | # Toradex config block in eMMC, at the end of 1st "boot sector" |
| 69 | config TDX_CFG_BLOCK_OFFSET |
| 70 | default "-512" |
| 71 | |
| 72 | endif |
| 73 | |
Tom Rini | 57b9381 | 2021-08-24 20:41:00 -0400 | [diff] [blame] | 74 | config IMX_CONFIG |
| 75 | default "board/toradex/colibri_imx7/imximage.cfg" |
| 76 | |
Marcel Ziswiler | d92dee5 | 2016-11-16 17:49:23 +0100 | [diff] [blame] | 77 | source "board/toradex/common/Kconfig" |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 78 | |
| 79 | endif |