imx6: aristainetos: move defines to Kconfig
authorHeiko Schocher <hs@denx.de>
Sun, 1 Dec 2019 10:23:06 +0000 (11:23 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 7 Jan 2020 09:26:55 +0000 (10:26 +0100)
move defines, which are already moved to Kconfig
out of board config.

Signed-off-by: Heiko Schocher <hs@denx.de>
arch/arm/mach-imx/mx6/Kconfig
board/aristainetos/Kconfig
board/aristainetos/common/Kconfig [new file with mode: 0644]
configs/aristainetos2_defconfig
configs/aristainetos2b_defconfig
include/configs/aristainetos-common.h
include/configs/aristainetos2.h
include/configs/aristainetos2b.h

index 05ca45d2d2df24fbd741fa343f9a7772d0c45d35..962409146b5f216e8ddb0a6e41be48f62a6f4374 100644 (file)
@@ -128,10 +128,19 @@ config TARGET_APALIS_IMX6
 config TARGET_ARISTAINETOS2
        bool "aristainetos2"
        select BOARD_LATE_INIT
+       select MX6DL
+       select SYS_I2C_MXC
+       select MXC_UART
+       select FEC_MXC
+       imply CMD_SATA
 
 config TARGET_ARISTAINETOS2B
        bool "Support aristainetos2-revB"
        select BOARD_LATE_INIT
+       select MX6DL
+       select SYS_I2C_MXC
+       select MXC_UART
+       select FEC_MXC
 
 config TARGET_CGTQMX6EVAL
        bool "cgtqmx6eval"
index 0341bdfb2838f67f75c0f792304d2e17383bf936..60ad69fa5bc569169f36f0932bf5a5253c366749 100644 (file)
@@ -1,19 +1,32 @@
 if TARGET_ARISTAINETOS2
 
+source "board/aristainetos/common/Kconfig"
+
 config SYS_BOARD
        default "aristainetos"
 
-config SYS_CONFIG_NAME
+config SYS_BOARD_VERSION
+       default 2
+
+config BOARDNAME
        default "aristainetos2"
 
 endif
 
 if TARGET_ARISTAINETOS2B
 
+source "board/aristainetos/common/Kconfig"
+
 config SYS_BOARD
        default "aristainetos"
 
 config SYS_CONFIG_NAME
        default "aristainetos2b"
 
+config SYS_BOARD_VERSION
+       default 3
+
+config BOARDNAME
+       default "aristainetos2-revB"
+
 endif
diff --git a/board/aristainetos/common/Kconfig b/board/aristainetos/common/Kconfig
new file mode 100644 (file)
index 0000000..53a3f4d
--- /dev/null
@@ -0,0 +1,38 @@
+config BOARDNAME
+       string "name of the board"
+       help
+         set the name of the board.
+
+config SYS_BOARD_VERSION
+       int "select version of aristainetos board"
+       help
+         version of aristainetos board version
+         2 version 2
+         3 version 2b
+
+config SYS_I2C_MXC_I2C1
+       default y
+
+config SYS_I2C_MXC_I2C2
+       default y
+
+config SYS_I2C_MXC_I2C3
+       default y
+
+config SYS_I2C_MXC_I2C4
+       default y
+
+config SYS_MALLOC_LEN
+       default 0x4000000
+
+config ENV_SIZE
+       default 0x3000
+
+config ENV_SECT_SIZE
+       default 0x10000
+
+config ENV_OFFSET
+       default 0xd0000
+
+config SYS_CONFIG_NAME
+       default "aristainetos2"
index c548c0e423f747d1e9f1dbec7f12a3f20bf421ca..bc18786993ebd04fc18e7e03a348d6c7de3ff88e 100644 (file)
@@ -7,7 +7,7 @@ CONFIG_ENV_OFFSET=0xD0000
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_ENV_SECT_SIZE=0x10000
 CONFIG_FIT=y
-CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/aristainetos/aristainetos2.cfg,MX6DL"
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/aristainetos/aristainetos2.cfg"
 CONFIG_BOOTDELAY=3
 # CONFIG_CONSOLE_MUX is not set
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
@@ -17,12 +17,16 @@ CONFIG_BOUNCE_BUFFER=y
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
+# CONFIG_BOOTM_NETBSD is not set
+# CONFIG_BOOTM_PLAN9 is not set
+# CONFIG_BOOTM_RTEMS is not set
+# CONFIG_BOOTM_VXWORKS is not set
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_NAND_TRIMFFS=y
-CONFIG_CMD_SF=y
+# CONFIG_CMD_SATA is not set
 CONFIG_CMD_USB=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
@@ -45,7 +49,6 @@ CONFIG_FSL_USDHC=y
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_MXS=y
-CONFIG_SPI_FLASH=y
 CONFIG_SF_DEFAULT_BUS=3
 CONFIG_SF_DEFAULT_CS=1
 CONFIG_SF_DEFAULT_MODE=0
@@ -67,4 +70,4 @@ CONFIG_VIDEO_IPUV3=y
 CONFIG_VIDEO=y
 # CONFIG_VIDEO_SW_CURSOR is not set
 CONFIG_IMX_WATCHDOG=y
-CONFIG_OF_LIBFDT=y
+# CONFIG_EFI_LOADER is not set
index 26082bf4040ec25895974af2dce1e23c5737d18c..28bf87eac753279ed7e307869d863b8ec1273533 100644 (file)
@@ -7,7 +7,7 @@ CONFIG_ENV_OFFSET=0xD0000
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_ENV_SECT_SIZE=0x10000
 CONFIG_FIT=y
-CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/aristainetos/aristainetos2.cfg,MX6DL"
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/aristainetos/aristainetos2.cfg"
 CONFIG_BOOTDELAY=3
 # CONFIG_CONSOLE_MUX is not set
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
index 1d84db5098348ea517dcce297cd4856fdf256f24..ab14a1a3920fea5ae001e056225790bae52a5b5c 100644 (file)
 #define CONFIG_MACH_TYPE       4501
 #define CONFIG_MMCROOT         "/dev/mmcblk0p1"
 
-/* Size of malloc() pool */
-#define CONFIG_SYS_MALLOC_LEN          (64 * SZ_1M)
-
-#define CONFIG_MXC_UART
-
 /* MMC Configs */
 #define CONFIG_SYS_FSL_ESDHC_ADDR      0
 
-#define CONFIG_FEC_MXC
 #define IMX_FEC_BASE                   ENET_BASE_ADDR
 #define CONFIG_ETHPRIME                        "FEC"
 #define CONFIG_FEC_MXC_PHYADDR         0
 
 /* I2C */
 #define CONFIG_SYS_I2C
-#define CONFIG_SYS_I2C_MXC
-#define CONFIG_SYS_I2C_MXC_I2C1                /* enable I2C bus 1 */
-#define CONFIG_SYS_I2C_MXC_I2C2                /* enable I2C bus 2 */
-#define CONFIG_SYS_I2C_MXC_I2C3                /* enable I2C bus 3 */
 #define CONFIG_SYS_I2C_SPEED           100000
 #define CONFIG_SYS_I2C_SLAVE           0x7f
 #define CONFIG_SYS_I2C_NOPROBES                { {0, 0x00} }
index d8858559d8a226d5eef0d95e55674b5c4faa3147..01998f029526363e58056f88f22ae3dc198d222d 100644 (file)
@@ -11,9 +11,7 @@
 #ifndef __ARISTAINETOS2_CONFIG_H
 #define __ARISTAINETOS2_CONFIG_H
 
-#define CONFIG_SYS_BOARD_VERSION       2
 #define CONFIG_HOSTNAME                "aristainetos2"
-#define CONFIG_BOARDNAME       "aristainetos2"
 
 #define CONFIG_MXC_UART_BASE   UART2_BASE
 #define CONSOLE_DEV    "ttymxc1"
@@ -33,8 +31,6 @@
                "ubifsload ${fit_addr_r} /boot/system.itb; " \
                "imi ${fit_addr_r}\0 "
 
-#define CONFIG_SYS_I2C_MXC_I2C4                /* enable I2C bus 4 */
-
 #define ARISTAINETOS_USB_OTG_PWR       IMX_GPIO_NR(4, 15)
 #define ARISTAINETOS_USB_H1_PWR        IMX_GPIO_NR(1, 0)
 #define CONFIG_GPIO_ENABLE_SPI_FLASH   IMX_GPIO_NR(2, 15)
index cdeb7a3b032f40e50a90979d7158f96cc6ad8520..a7ba48e31566c2d32c7158dd470f49fb482fb936 100644 (file)
@@ -11,9 +11,7 @@
 #ifndef __ARISTAINETOS2B_CONFIG_H
 #define __ARISTAINETOS2B_CONFIG_H
 
-#define CONFIG_SYS_BOARD_VERSION       3
 #define CONFIG_HOSTNAME                "aristainetos2"
-#define CONFIG_BOARDNAME       "aristainetos2-revB"
 
 #define CONFIG_MXC_UART_BASE   UART2_BASE
 #define CONSOLE_DEV    "ttymxc1"
@@ -33,8 +31,6 @@
                "ubifsload ${fit_addr_r} /boot/system.itb; " \
                "imi ${fit_addr_r}\0 " \
 
-#define CONFIG_SYS_I2C_MXC_I2C4                /* enable I2C bus 4 */
-
 #define ARISTAINETOS_USB_OTG_PWR       IMX_GPIO_NR(4, 15)
 #define ARISTAINETOS_USB_H1_PWR        IMX_GPIO_NR(1, 0)
 #define CONFIG_GPIO_ENABLE_SPI_FLASH   IMX_GPIO_NR(2, 15)