mx6: Support SKS-Kinkel sksimx6 Board
Subsystems (3)
PATCH 1/1 mx6: Support SKS-Kinkel sksimx6 Board
Board has 1GB RAM and boots from SD Card
U-Boot SPL 2018.01-rc3-00005-ga1898b8 (Jan 02 2018 - 13:48:54) BT_FUSE_SEL already fused, will do nothing
Trying to boot from MMC1
U-Boot 2018.01-rc3-00005-ga1898b8 (Jan 02 2018 - 13:48:54 +0100)
CPU: Freescale i.MX6DL rev1.2 996 MHz (running at 792 MHz) CPU: Commercial temperature grade (0C to 95C) at 40C Reset cause: POR I2C: ready DRAM: 1 GiB MMC: FSL_SDHC: 0 In: serial Out: serial Err: serial Net: FEC [PRIME]
--- arch/arm/mach-imx/mx6/Kconfig | 5 + board/sks-kinkel/sksimx6/Kconfig | 11 + board/sks-kinkel/sksimx6/MAINTAINERS | 6 + board/sks-kinkel/sksimx6/Makefile | 3 + board/sks-kinkel/sksimx6/sksimx6.c | 429 +++++++++++++++++++++++++++++++++++ configs/sksimx6_defconfig | 47 ++++ include/configs/sksimx6.h | 103 +++++++++ 7 files changed, 604 insertions(+) create mode 100644 board/sks-kinkel/sksimx6/Kconfig create mode 100644 board/sks-kinkel/sksimx6/MAINTAINERS create mode 100644 board/sks-kinkel/sksimx6/Makefile create mode 100644 board/sks-kinkel/sksimx6/sksimx6.c create mode 100644 configs/sksimx6_defconfig create mode 100644 include/configs/sksimx6.h
arch/arm/mach-imx/mx6/Kconfig +5 -0
@@ -366,6 +366,10 @@ config TARGET_PFLA02 config TARGET_SECOMX6 bool "secomx6 boards" +config TARGET_SKSIMX6 + bool "sks-imx6" + select SUPPORT_SPL + config TARGET_TBS2910 bool "TBS2910 Matrix ARM mini PC"
@@ -470,6 +474,7 @@ source "board/liebherr/display5/Kconfig" source "board/liebherr/mccmon6/Kconfig" source "board/logicpd/imx6/Kconfig" source "board/seco/Kconfig" +source "board/sks-kinkel/sksimx6/Kconfig" source "board/solidrun/mx6cuboxi/Kconfig" source "board/technexion/pico-imx6ul/Kconfig" source "board/tbs/tbs2910/Kconfig"
board/sks-kinkel/sksimx6/Kconfig new file +11 -0
@@ -0,0 +1,11 @@ +if TARGET_SKSIMX6 + +config SYS_BOARD + default "sksimx6" + +config SYS_VENDOR + default "sks-kinkel" + +config SYS_CONFIG_NAME + default "sksimx6" +endif
board/sks-kinkel/sksimx6/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +SKS-Kinkel sksimx6 +M: Stefano Babic <[email protected]> +S: Maintained +F: board/sks-kinkel/sksimx6/ +F: include/configs/sksimx6.h +F: configs/sksimx6_defconfig
board/sks-kinkel/sksimx6/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +obj-y := sksimx6.o
board/sks-kinkel/sksimx6/sksimx6.c new file +429 -0
429 lines not on this page · raw message
configs/sksimx6_defconfig new file +47 -0
47 lines not on this page · raw message
include/configs/sksimx6.h new file +103 -0
103 lines not on this page · raw message
Signature · 1 line
2.7.4
Fabio Estevam
reviewerPATCH 1/1 mx6: Support SKS-Kinkel sksimx6 Board
Hi Stefano,
Looks good. Only two minor nits:
board/sks-kinkel/sksimx6/sksimx6.c line 211
Quoted 10 lines · Stefano Babic
board/sks-kinkel/sksimx6/sksimx6.c new file +10
-0+int board_mmc_getcd (struct mmc *mmc) +{ +struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; +int ret =0 ; + +switch (cfg->esdhc_base) { +case USDHC2_BASE_ADDR : + ret =1 ; +break ; + }
As this switch only handles a single case, this could be simply written with an if.
Quoted 16 lines
include/configs/sksimx6.h new file +13
-0@@ -0,0 +1,103 @@ +/* +* Copyright (C) Stefano Babic <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + + +#ifndef __SKSIMX6_CONFIG_H +#define __SKSIMX6_CONFIG_H + +#include <config_distro_defaults.h> + +#include "mx6_common.h"
include/configs/sksimx6.h line 23
Quoted 10 lines
include/configs/sksimx6.h new file +10
-0+#include "imx6_spl.h" + +/* Thermal */ +#define CONFIG_IMX_THERMAL + +/* Serial */ +#define CONFIG_MXC_UART +#define CONFIG_MXC_UART_BASE UART1_BASE + +#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
PHYS_SDRAM_SIZE is unused as you use imx_ddr_size() to get the RAM size.
PATCH 1/1 mx6: Support SKS-Kinkel sksimx6 Board
Quoted 6 lines · Fabio Estevam
Hi Stefano,
Looks good. Only two minor nits:
On Tue, Jan 2, 2018 at 12:41 PM, Stefano Babic <[email protected]> wrote:
Quoted 13 lines
board/sks-kinkel/sksimx6/sksimx6.c line 211
Quoted 10 lines
board/sks-kinkel/sksimx6/sksimx6.c new file +10
-0+int board_mmc_getcd (struct mmc *mmc) +{ +struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; +int ret =0 ; + +switch (cfg->esdhc_base) { +case USDHC2_BASE_ADDR : + ret =1 ; +break ; + }As this switch only handles a single case, this could be simply written with an if.
Right 1
Quoted 21 lines
Quoted 21 lines
include/configs/sksimx6.h new file +17
-0@@ -0,0 +1,103 @@ +/* +* Copyright (C) Stefano Babic <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + + +#ifndef __SKSIMX6_CONFIG_H +#define __SKSIMX6_CONFIG_H + +#include <config_distro_defaults.h> + +#include "mx6_common.h" +#include "imx6_spl.h" + +/* Thermal */ +#define CONFIG_IMX_THERMAL
Quoted 8 lines
include/configs/sksimx6.h line 23
Quoted 6 lines
include/configs/sksimx6.h new file +6
-0+ +/* Serial */ +#define CONFIG_MXC_UART +#define CONFIG_MXC_UART_BASE UART1_BASE + +#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
PHYS_SDRAM_SIZEis unused as you useimx_ddr_size()to get the RAM size.
I fix in V2.
Thanks,
Stefano
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================