u-boot-compulab: update to U-Boot 2015.10
PATCH 1/5 u-boot-compulab: update to U-Boot 2015.10
Update to U-Boot 2015.10.
This U-Boot supports cl-som-imx6ul and cm-fx6 machines.
--- ...ul-add-support-for-Compulab-cl-som-imx6ul.patch | 1119 ++++++++++++++++++++ ...imx6ul-add-extraversion-for-cl-som-imx6ul.patch | 28 + ...add-u-boot-with-spl-cl.imx-target-for-cl-.patch | 32 + .../0004-arm-imx6ul-enable-USB-Networking.patch | 33 + ...-arm-imx6ul-enable-nand-for-cl-som-imx6ul.patch | 141 +++ ...add-memory-size-detection-for-cl-som-imx6.patch | 181 ++++ ...x6ul-tag-U-Boot-version-cl-som-imx6ul-1.0.patch | 28 + .../cl_som_imx6ul_defconfig | 22 + .../cl_som_imx6ul_nospl_defconfig | 21 + recipes-bsp/u-boot/u-boot-compulab_2015.10.bb | 33 + 10 files changed, 1638 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-compulab-2015.10/0001-arm-imx6ul-add-support-for-Compulab-cl-som-imx6ul.patch create mode 100644 recipes-bsp/u-boot/u-boot-compulab-2015.10/0002-arm-imx6ul-add-extraversion-for-cl-som-imx6ul.patch create mode 100644 recipes-bsp/u-boot/u-boot-compulab-2015.10/0003-arm-imx6ul-add-u-boot-with-spl-cl.imx-target-for-cl-.patch create mode 100644 recipes-bsp/u-boot/u-boot-compulab-2015.10/0004-arm-imx6ul-enable-USB-Networking.patch create mode 100644 recipes-bsp/u-boot/u-boot-compulab-2015.10/0005-arm-imx6ul-enable-nand-for-cl-som-imx6ul.patch create mode 100644 recipes-bsp/u-boot/u-boot-compulab-2015.10/0006-arm-imx6ul-add-memory-size-detection-for-cl-som-imx6.patch create mode 100644 recipes-bsp/u-boot/u-boot-compulab-2015.10/0007-arm-imx6ul-tag-U-Boot-version-cl-som-imx6ul-1.0.patch create mode 100644 recipes-bsp/u-boot/u-boot-compulab-2015.10/cl_som_imx6ul_defconfig create mode 100644 recipes-bsp/u-boot/u-boot-compulab-2015.10/cl_som_imx6ul_nospl_defconfig create mode 100644 recipes-bsp/u-boot/u-boot-compulab_2015.10.bb
recipes-bsp/u-boot/u-boot-compulab-2015.10/0001-arm-imx6ul-add-support-for-Compulab-cl-som-imx6ul.patch new file +1119 -0
@@ -0,0 +1,1119 @@ +From 1e1fb7d9d12dee2e1b0d982dd624a77825cf06a8 Mon Sep 17 00:00:00 2001 +From: Valentin Raevsky <[email protected]> +Date: Mon, 21 Dec 2015 09:55:55 +0200 +Subject: [PATCH 1/7] arm: imx6ul: add support for Compulab cl-som-imx6ul + +Add initial support for Compulab cl-som-imx6ul +The initial support includes: +MMC, eMMC, SPI flash, I2C, FEC, USB. +There are two options for the board U-Boot: +with or w/out SPL. + +Signed-off-by: Valentin Raevsky <[email protected]> +--- + arch/arm/cpu/armv7/mx6/Kconfig | 7 + + board/compulab/cl_som_imx6ul/Kconfig | 12 + + board/compulab/cl_som_imx6ul/MAINTAINERS | 7 + + board/compulab/cl_som_imx6ul/Makefile | 8 + + board/compulab/cl_som_imx6ul/cl_som_imx6ul.c | 598 +++++++++++++++++++++++++++ + board/compulab/cl_som_imx6ul/imximage.cfg | 108 +++++ + configs/cl_som_imx6ul_defconfig | 22 + + configs/cl_som_imx6ul_nospl_defconfig | 21 + + include/configs/cl_som_imx6ul.h | 235 +++++++++++ + 9 files changed, 1018 insertions(+) + create mode 100644 board/compulab/cl_som_imx6ul/Kconfig + create mode 100644 board/compulab/cl_som_imx6ul/MAINTAINERS + create mode 100644 board/compulab/cl_som_imx6ul/Makefile + create mode 100644 board/compulab/cl_som_imx6ul/cl_som_imx6ul.c + create mode 100644 board/compulab/cl_som_imx6ul/imximage.cfg + create mode 100644 configs/cl_som_imx6ul_defconfig + create mode 100644 configs/cl_som_imx6ul_nospl_defconfig + create mode 100644 include/configs/cl_som_imx6ul.h + +diff --git a/arch/arm/cpu/armv7/mx6/Kconfig b/arch/arm/cpu/armv7/mx6/Kconfig +index 0b02e9e..221a8ca 100644 +--- a/arch/arm/cpu/armv7/mx6/Kconfig ++++ b/arch/arm/cpu/armv7/mx6/Kconfig +@@ -45,6 +45,12 @@ config TARGET_ARISTAINETOS2B + config TARGET_CGTQMX6EVAL + bool "cgtqmx6eval" + ++config TARGET_CL_SOM_IMX6UL ++ bool "CL-SOM-IMX6UL" ++ select MX6UL ++ select DM ++ select SUPPORT_SPL ++ + config TARGET_CM_FX6 + bool "CM-FX6" + select SUPPORT_SPL +@@ -153,6 +159,7 @@ source "board/bachmann/ot1200/Kconfig" + source "board/barco/platinum/Kconfig" + source "board/barco/titanium/Kconfig" + source "board/boundary/nitrogen6x/Kconfig" ++source "board/compulab/cl_som_imx6ul/Kconfig" + source "board/compulab/cm_fx6/Kconfig" + source "board/congatec/cgtqmx6eval/Kconfig" + source "board/embest/mx6boards/Kconfig" +diff --git a/board/compulab/cl_som_imx6ul/Kconfig b/board/compulab/cl_som_imx6ul/Kconfig +new file mode 100644 +index 0000000..4e3a490 +--- /dev/null ++++ b/board/compulab/cl_som_imx6ul/Kconfig +@@ -0,0 +1,12 @@ ++if TARGET_CL_SOM_IMX6UL ++ ++config SYS_BOARD ++ default "cl_som_imx6ul" ++ ++config SYS_VENDOR ++ default "compulab" ++ ++config SYS_CONFIG_NAME ++ default "cl_som_imx6ul" ++ ++endif +diff --git a/board/compulab/cl_som_imx6ul/MAINTAINERS b/board/compulab/cl_som_imx6ul/MAINTAINERS +new file mode 100644 +index 0000000..222472b +--- /dev/null ++++ b/board/compulab/cl_som_imx6ul/MAINTAINERS +@@ -0,0 +1,7 @@ ++CL_SOM_IMX6UL BOARD ++M: Valentin Raevsky <[email protected]> ++S: Maintained ++F: board/compulab/cl_som_imx6ul/ ++F: include/configs/cl_som_imx6ul.h ++F: configs/cl_som_imx6ul_defconfig ++F: configs/cl_som_imx6ul_nospl_defconfig +diff --git a/board/compulab/cl_som_imx6ul/Makefile b/board/compulab/cl_som_imx6ul/Makefile +new file mode 100644 +index 0000000..b94560a +--- /dev/null ++++ b/board/compulab/cl_som_imx6ul/Makefile +@@ -0,0 +1,8 @@ ++# ++# (C) Copyright 2015 CompuLab, LTD. ++# ++# ++# SPDX-License-Identifier: GPL-2.0+ ++# ++ ++obj-y := cl_som_imx6ul.o +diff --git a/board/compulab/cl_som_imx6ul/cl_som_imx6ul.c b/board/compulab/cl_som_imx6ul/cl_som_imx6ul.c +new file mode 100644 +index 0000000..59df5b5 +--- /dev/null ++++ b/board/compulab/cl_som_imx6ul/cl_som_imx6ul.c +@@ -0,0 +1,598 @@ ++/* ++ * Copyright (C) 2015 CompuLab LTD. ++ * ++ * SPDX-License-Identifier: GPL-2.0+ ++ */ ++ ++#include <common.h> ++#include <fsl_esdhc.h> ++#include <i2c.h> ++#include <miiphy.h> ++#include <linux/sizes.h> ++#include <mmc.h> ++#include <netdev.h> ++#include <usb.h> ++#include <asm/arch/clock.h> ++#include <asm/arch/iomux.h> ++#include <asm/arch/imx-regs.h> ++#include <asm/arch/crm_regs.h> ++#include <asm/arch/mx6ul_pins.h> ++#include <asm/arch/sys_proto.h> ++#include <asm/gpio.h> ++#include <asm/imx-common/iomux-v3.h> ++#include <asm/imx-common/boot_mode.h> ++#include <asm/imx-common/mxc_i2c.h> ++#include <asm/io.h> ++#include <usb/ehci-fsl.h> ++#include "../common/eeprom.h" ++#include "../common/common.h" ++ ++DECLARE_GLOBAL_DATA_PTR; ++ ++#define UART_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ ++ PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | \ ++ PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST | PAD_CTL_HYS) ++ ++#define USDHC_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ ++ PAD_CTL_PUS_22K_UP | PAD_CTL_SPEED_LOW | \ ++ PAD_CTL_DSE_80ohm | PAD_CTL_SRE_FAST | PAD_CTL_HYS) ++ ++#define USDHC_DAT3_CD_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ ++ PAD_CTL_PUS_100K_DOWN | PAD_CTL_SPEED_LOW | \ ++ PAD_CTL_DSE_80ohm | PAD_CTL_SRE_FAST | PAD_CTL_HYS) ++ ++#define I2C_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ ++ PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | \ ++ PAD_CTL_DSE_40ohm | PAD_CTL_HYS | \ ++ PAD_CTL_ODE) ++ ++#define ENET_PAD_CTRL (PAD_CTL_PUS_100K_UP | PAD_CTL_PUE | \ ++ PAD_CTL_SPEED_HIGH | \ ++ PAD_CTL_DSE_48ohm | PAD_CTL_SRE_FAST) ++ ++#define MDIO_PAD_CTRL (PAD_CTL_PUS_100K_UP | PAD_CTL_PUE | \ ++ PAD_CTL_DSE_48ohm | PAD_CTL_SRE_FAST | PAD_CTL_ODE) ++ ++#define ENET_CLK_PAD_CTRL (PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST) ++ ++#define ENET_RX_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ ++ PAD_CTL_SPEED_HIGH | PAD_CTL_SRE_FAST) ++ ++#define SPI_PAD_CTRL (PAD_CTL_HYS | \ ++ PAD_CTL_SPEED_MED | \ ++ PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST) ++ ++int dram_init(void) ++{ ++ gd->ram_size = imx_ddr_size(); ++ ++ return 0; ++} ++ ++static iomux_v3_cfg_t const uart3_pads[] = { ++ MX6_PAD_UART3_TX_DATA__UART3_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL), ++ MX6_PAD_UART3_RX_DATA__UART3_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL), ++}; ++ ++static iomux_v3_cfg_t const usdhc1_pads[] = { ++ MX6_PAD_SD1_CLK__USDHC1_CLK | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_SD1_CMD__USDHC1_CMD | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_SD1_DATA0__USDHC1_DATA0 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_SD1_DATA1__USDHC1_DATA1 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_SD1_DATA2__USDHC1_DATA2 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_SD1_DATA3__USDHC1_DATA3 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ /* CD */ ++ MX6_PAD_UART1_RTS_B__GPIO1_IO19 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ /* WP */ ++ MX6_PAD_UART1_CTS_B__GPIO1_IO18 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++}; ++ ++static iomux_v3_cfg_t const usdhc2_emmc_pads[] = { ++ MX6_PAD_NAND_RE_B__USDHC2_CLK | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_NAND_WE_B__USDHC2_CMD | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_NAND_DATA00__USDHC2_DATA0 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_NAND_DATA01__USDHC2_DATA1 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_NAND_DATA02__USDHC2_DATA2 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_NAND_DATA03__USDHC2_DATA3 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_NAND_DATA04__USDHC2_DATA4 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_NAND_DATA05__USDHC2_DATA5 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_NAND_DATA06__USDHC2_DATA6 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++ MX6_PAD_NAND_DATA07__USDHC2_DATA7 | MUX_PAD_CTRL(USDHC_PAD_CTRL), ++}; ++ ++static void setup_iomux_uart(void) ++{ ++ imx_iomux_v3_setup_multiple_pads(uart3_pads, ARRAY_SIZE(uart3_pads)); ++#ifdef CONFIG_SPL_BUILD ++ enable_uart_clk(1); ++#endif ++} ++ ++#ifdef CONFIG_SPI ++static iomux_v3_cfg_t const spi_pads[] = { ++ MX6_PAD_ENET2_TX_DATA1__ECSPI4_SCLK | MUX_PAD_CTRL(SPI_PAD_CTRL), ++ MX6_PAD_ENET2_TX_EN__ECSPI4_MOSI | MUX_PAD_CTRL(SPI_PAD_CTRL), ++ MX6_PAD_ENET2_TX_CLK__ECSPI4_MISO | MUX_PAD_CTRL(SPI_PAD_CTRL), ++ MX6_PAD_ENET2_RX_ER__GPIO2_IO15 | MUX_PAD_CTRL(SPI_PAD_CTRL), ++}; ++ ++static void board_spi_init(void) ++{ ++ imx_iomux_v3_setup_multiple_pads(spi_pads, ARRAY_SIZE(spi_pads)); ++#ifdef CONFIG_SPL_BUILD ++ enable_spi_clk(1, 3); ++#endif ++} ++ ++int board_spi_cs_gpio(unsigned bus, unsigned cs) ++{ ++ if (bus == 3 && cs == 0) ++ return IMX_GPIO_NR(2, 15); ++ ++ return -1; ++} ++#else ++static void board_spi_init(void) { return; } ++#endif ++ ++#ifdef CONFIG_FSL_ESDHC ++static struct fsl_esdhc_cfg usdhc_cfg[2] = { ++ {USDHC1_BASE_ADDR, 0, 4}, ++ {USDHC2_BASE_ADDR, 0, 8}, ++}; ++ ++#define USDHC1_CD_GPIO IMX_GPIO_NR(1, 19) ++#define USDHC1_WP_GPIO IMX_GPIO_NR(1, 18) ++ ++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 USDHC1_BASE_ADDR: ++ ret = !gpio_get_value(USDHC1_CD_GPIO); ++ break; ++ case USDHC2_BASE_ADDR: ++ /* eMMC device is always on */ ++ ret = 1; ++ } ++ ++ return ret; ++} ++ ++int board_mmc_init(bd_t *bis) ++{ ++#ifdef CONFIG_SPL_BUILD ++ imx_iomux_v3_setup_multiple_pads(usdhc1_pads, ARRAY_SIZE(usdhc1_pads)); ++ usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC_CLK); ++ return fsl_esdhc_initialize(bis, &usdhc_cfg[0]); ++#else ++ int i, ret; ++ ++ /* ++ * According to the board_mmc_init() the following map is done: ++ * (U-boot device node) (Physical Port) ++ * mmc0 USDHC1 ++ * mmc1 USDHC2 ++ */ ++ for (i = 0; i < CONFIG_SYS_FSL_USDHC_NUM; i++) { ++ switch (i) { ++ case 0: ++ imx_iomux_v3_setup_multiple_pads( ++ usdhc1_pads, ARRAY_SIZE(usdhc1_pads)); ++ gpio_direction_input(USDHC1_CD_GPIO); ++ usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC_CLK); ++ break; ++ case 1: ++ imx_iomux_v3_setup_multiple_pads( ++ usdhc2_emmc_pads, ARRAY_SIZE(usdhc2_emmc_pads)); ++ usdhc_cfg[1].sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK); ++ break; ++ default: ++ printf("Warning: you configured more USDHC controllers (%d) than supported by the board\n", i + 1); ++ return -EINVAL; ++ } ++ ++ ret = fsl_esdhc_initialize(bis, &usdhc_cfg[i]); ++ if (ret) { ++ printf("Warning: failed to initialize mmc dev %d\n", i); ++ return ret; ++ } ++ } ++#endif ++ return 0; ++} ++#endif ++ ++#ifdef CONFIG_USB_EHCI_MX6 ++#define USB_OTHERREGS_OFFSET 0x800 ++#define UCTRL_PWR_POL (1 << 9) ++#define USB_OTG1_VBUS IMX_GPIO_NR(1, 4) ++ ++static iomux_v3_cfg_t const usb_otg_pads[] = { ++ MX6_PAD_GPIO1_IO04__GPIO1_IO04 | MUX_PAD_CTRL(NO_PAD_CTRL), ++ MX6_PAD_GPIO1_IO00__ANATOP_OTG1_ID | MUX_PAD_CTRL(NO_PAD_CTRL), ++}; ++ ++/* At default the 3v3 enables the MIC2026 for VBUS power */ ++static void setup_usb(void) ++{ ++ imx_iomux_v3_setup_multiple_pads(usb_otg_pads, ++ ARRAY_SIZE(usb_otg_pads)); ++ ++ if (gpio_request(USB_OTG1_VBUS, "usb_otg1_vbus")) { ++ printf("USB OTG1 vbus gpio request failed\n"); ++ return; ++ } ++ ++ gpio_direction_output(USB_OTG1_VBUS, 0); ++} ++ ++int board_usb_phy_mode(int port) ++{ ++ if (port == 1) ++ return USB_INIT_HOST; ++ else ++ return usb_phy_mode(port); ++} ++ ++int board_ehci_hcd_init(int port) ++{ ++ int ret; ++ u32 *usbnc_usb_ctrl; ++ ++ if (port > 1) ++ return -EINVAL; ++ ++ usbnc_usb_ctrl = (u32 *)(USB_BASE_ADDR + USB_OTHERREGS_OFFSET + ++ port * 4); ++ ++ /* Set Power polarity */ ++ setbits_le32(usbnc_usb_ctrl, UCTRL_PWR_POL); ++ ++ if (port == 1) ++ return 0; ++ ++ ret = gpio_direction_output(USB_OTG1_VBUS, 1); ++ if (ret) ++ return ret; ++ ++ mdelay(1); ++ ++ return 0; ++} ++#else ++static void setup_usb(void) { return; } ++#endif ++ ++#ifdef CONFIG_FEC_MXC ++static iomux_v3_cfg_t const fec1_pads[] = { ++ MX6_PAD_GPIO1_IO06__ENET1_MDIO | MUX_PAD_CTRL(MDIO_PAD_CTRL), ++ MX6_PAD_GPIO1_IO07__ENET1_MDC | MUX_PAD_CTRL(ENET_PAD_CTRL), ++ MX6_PAD_ENET1_TX_DATA0__ENET1_TDATA00 | MUX_PAD_CTRL(ENET_PAD_CTRL), ++ MX6_PAD_ENET1_TX_DATA1__ENET1_TDATA01 | MUX_PAD_CTRL(ENET_PAD_CTRL), ++ MX6_PAD_ENET1_TX_EN__ENET1_TX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL), ++ MX6_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 | MUX_PAD_CTRL(ENET_CLK_PAD_CTRL), ++ MX6_PAD_ENET1_RX_DATA0__ENET1_RDATA00 | MUX_PAD_CTRL(ENET_PAD_CTRL), ++ MX6_PAD_ENET1_RX_DATA1__ENET1_RDATA01 | MUX_PAD_CTRL(ENET_PAD_CTRL), ++ MX6_PAD_ENET1_RX_ER__ENET1_RX_ER | MUX_PAD_CTRL(ENET_PAD_CTRL), ++ MX6_PAD_ENET1_RX_EN__ENET1_RX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL), ++ MX6_PAD_SNVS_TAMPER8__GPIO5_IO08 | MUX_PAD_CTRL(NO_PAD_CTRL), ++}; ++ ++static void setup_iomux_fec(int fec_id) ++{ ++ if (fec_id == 0) ++ imx_iomux_v3_setup_multiple_pads(fec1_pads, ++ ARRAY_SIZE(fec1_pads)); ++} ++ ++static int handle_mac_address(char *env_var, uint eeprom_bus) ++{ ++ unsigned char enetaddr[6]; ++ int rc; ++ ++ rc = eth_getenv_enetaddr(env_var, enetaddr); ++ if (rc) ++ return 0; ++ ++ rc = cl_eeprom_read_mac_addr(enetaddr, eeprom_bus); ++ if (rc) ++ return rc; ++ ++ if (!is_valid_ethaddr(enetaddr)) ++ return -1; ++ ++ return eth_setenv_enetaddr(env_var, enetaddr); ++} ++ ++#define ENET1_PHY_nRST IMX_GPIO_NR(5, 8) ++#define NO_MAC_ADDR "No MAC address found for %s\n" ++ ++int board_eth_init(bd_t *bis) ++{ ++ if (handle_mac_address("ethaddr", CONFIG_SYS_I2C_EEPROM_BUS)) ++ printf(NO_MAC_ADDR, "primary NIC"); ++ ++ setup_iomux_fec(CONFIG_FEC_ENET_DEV); ++ ++ gpio_request(ENET1_PHY_nRST, "ENET1_PHY_nRST"); ++ gpio_direction_output(ENET1_PHY_nRST, 0); ++ mdelay(10); ++ gpio_direction_output(ENET1_PHY_nRST, 1); ++ ++ ++ return fecmxc_initialize_multi(bis, CONFIG_FEC_ENET_DEV, ++ CONFIG_FEC_MXC_PHYADDR, IMX_FEC_BASE); ++} ++ ++static int setup_fec(int fec_id) ++{ ++ struct iomuxc *const iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR; ++ int ret; ++ ++ if (fec_id > 0) ++ return -ENODEV; ++ ++ /* ++ * Use 50M ksz8041 REF_CLK for ENET1, ++ * set gpr1[13], clear gpr1[17]. ++ */ ++ ++ clrsetbits_le32(&iomuxc_regs->gpr[1], IOMUX_GPR1_FEC1_MASK, ++ IOMUX_GPR1_FEC1_CLOCK_MUX2_SEL_MASK); ++ ++ ret = enable_fec_anatop_clock(fec_id, ENET_50MHZ); ++ if (ret) ++ return ret; ++ ++ enable_enet_clk(1); ++ return 0; ++} ++#else ++static int setup_fec(int fec_id) { return 0; } ++#endif ++ ++#ifdef CONFIG_SYS_I2C_MXC ++/* I2C1 */ ++static struct i2c_pads_info i2c_pad_info1 = { ++ .scl = { ++ .i2c_mode = MX6_PAD_GPIO1_IO02__I2C1_SCL | ++ MUX_PAD_CTRL(I2C_PAD_CTRL), ++ .gpio_mode = MX6_PAD_GPIO1_IO02__GPIO1_IO02 | ++ MUX_PAD_CTRL(I2C_PAD_CTRL), ++ .gp = IMX_GPIO_NR(1, 2), ++ }, ++ .sda = { ++ .i2c_mode = MX6_PAD_GPIO1_IO03__I2C1_SDA | ++ MUX_PAD_CTRL(I2C_PAD_CTRL), ++ .gpio_mode = MX6_PAD_GPIO1_IO03__GPIO1_IO03 | ++ MUX_PAD_CTRL(I2C_PAD_CTRL), ++ .gp = IMX_GPIO_NR(1, 3), ++ }, ++}; ++ ++/* I2C3 */ ++static struct i2c_pads_info i2c_pad_info3 = { ++ .scl = { ++ .i2c_mode = MX6_PAD_UART1_TX_DATA__I2C3_SCL | ++ MUX_PAD_CTRL(I2C_PAD_CTRL), ++ .gpio_mode = MX6_PAD_UART1_TX_DATA__GPIO1_IO16 | ++ MUX_PAD_CTRL(I2C_PAD_CTRL), ++ .gp = IMX_GPIO_NR(1, 16), ++ }, ++ .sda = { ++ .i2c_mode = MX6_PAD_UART1_RX_DATA__I2C3_SDA | ++ MUX_PAD_CTRL(I2C_PAD_CTRL), ++ .gpio_mode = MX6_PAD_UART1_RX_DATA__GPIO1_IO17 | ++ MUX_PAD_CTRL(I2C_PAD_CTRL), ++ .gp = IMX_GPIO_NR(1, 17), ++ }, ++}; ++ ++static int setup_one_i2c(int busnum, struct i2c_pads_info *pads) ++{ ++ int ret; ++ ++ ret = setup_i2c(busnum, CONFIG_SYS_I2C_SPEED, 0x7f, pads); ++ if (ret) ++ printf("Warning: I2C%d setup failed: %d\n", busnum, ret); ++ ++ return ret; ++} ++ ++static int board_setup_i2c(void) ++{ ++ int ret = 0, err; ++ ++ /* i2c<x>_pads are wierd macro variables; we can't use an array */ ++ /* configures the logic bus #0 */ ++ err = setup_one_i2c(1, &i2c_pad_info1); ++ if (err) ++ ret = err; ++ ++ /* configures the logic bus #1 */ ++ /* this is the SOC eeprom bus */ ++ err = setup_one_i2c(3, &i2c_pad_info3); ++ if (err) ++ ret = err; ++ ++ return ret; ++} ++#else ++static int board_setup_i2c(void) { return 0; } ++#endif ++ ++int board_early_init_f(void) ++{ ++ setup_iomux_uart(); ++ ++ return 0; ++} ++ ++int board_init(void) ++{ ++ /* Address of boot parameters */ ++ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; ++ ++ setup_fec(CONFIG_FEC_ENET_DEV); ++ ++ setup_usb(); ++ ++ board_spi_init(); ++ ++ board_setup_i2c(); ++ ++ return 0; ++} ++ ++int board_late_init(void) ++{ ++ setenv("board_name", "CL-SOM-iMX6UL"); ++ return 0; ++} ++ ++int checkboard(void) ++{ ++ puts("Board: CL-SOM-iMX6UL\n"); ++ return 0; ++} ++ ++u32 get_board_rev(void) ++{ ++ return cl_eeprom_get_board_rev(CONFIG_SYS_I2C_EEPROM_BUS); ++} ++ ++int misc_init_r(void) ++{ ++ cl_print_pcb_info(); ++ ++ return 0; ++} ++ ++#ifdef CONFIG_SPL_BUILD ++#include <libfdt.h> ++#include <spl.h> ++#include <asm/arch/mx6-ddr.h> ++ ++static struct mx6ul_iomux_grp_regs mx6_grp_ioregs = { ++ .grp_addds = 0x00000030, ++ .grp_ddrmode_ctl = 0x00020000, ++ .grp_b0ds = 0x00000030, ++ .grp_ctlds = 0x00000030, ++ .grp_b1ds = 0x00000030, ++ .grp_ddrpke = 0x00000000, ++ .grp_ddrmode = 0x00020000, ++ .grp_ddr_type = 0x000c0000, ++}; ++ ++static struct mx6ul_iomux_ddr_regs mx6_ddr_ioregs = { ++ .dram_dqm0 = 0x00000030, ++ .dram_dqm1 = 0x00000030, ++ .dram_ras = 0x00000030, ++ .dram_cas = 0x00000030, ++ .dram_odt0 = 0x00000030, ++ .dram_odt1 = 0x00000030, ++ .dram_sdba2 = 0x00000000, ++ .dram_sdclk_0 = 0x00000008, ++ .dram_sdqs0 = 0x00000038, ++ .dram_sdqs1 = 0x00000030, ++ .dram_reset = 0x00000030, ++}; ++ ++static struct mx6_mmdc_calibration mx6_mmcd_calib = { ++ .p0_mpwldectrl0 = 0x001C0013, ++ .p0_mpdgctrl0 = 0x415C015C, ++ .p0_mprddlctl = 0x4040484C, ++ .p0_mpwrdlctl = 0x40404C42, ++}; ++ ++struct mx6_ddr_sysinfo ddr_sysinfo = { ++ .dsize = 0, ++ .cs_density = 20, ++ .ncs = 1, ++ .cs1_mirror = 0, ++ .rtt_wr = 2, ++ .rtt_nom = 1, /* RTT_Nom = RZQ/2 */ ++ .walat = 1, /* Write additional latency */ ++ .ralat = 5, /* Read additional latency */ ++ .mif3_mode = 3, /* Command prediction working mode */ ++ .bi_on = 1, /* Bank interleaving enabled */ ++ .sde_to_rst = 0x10, /* 14 cycles, 200us (JEDEC default) */ ++ .rst_to_cke = 0x23, /* 33 cycles, 500us (JEDEC default) */ ++ .ddr_type = DDR_TYPE_DDR3, ++}; ++ ++static struct mx6_ddr3_cfg mem_ddr = { ++ .mem_speed = 800, ++ .density = 4, ++ .width = 16, ++ .banks = 8, ++ .rowaddr = 15, ++ .coladdr = 10, ++ .pagesz = 2, ++ .trcd = 1375, ++ .trcmin = 4875, ++ .trasmin = 3500, ++}; ++ ++static void ccgr_init(void) ++{ ++ struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR; ++ ++ writel(0xFFFFFFFF, &ccm->CCGR0); ++ writel(0xFFFFFFFF, &ccm->CCGR1); ++ writel(0xFFFFFFFF, &ccm->CCGR2); ++ writel(0xFFFFFFFF, &ccm->CCGR3); ++ writel(0xFFFFFFFF, &ccm->CCGR4); ++ writel(0xFFFFFFFF, &ccm->CCGR5); ++ writel(0xFFFFFFFF, &ccm->CCGR6); ++ writel(0xFFFFFFFF, &ccm->CCGR7); ++} ++ ++static void spl_dram_init(void) ++{ ++ mx6ul_dram_iocfg(mem_ddr.width, &mx6_ddr_ioregs, &mx6_grp_ioregs); ++ mx6_dram_cfg(&ddr_sysinfo, &mx6_mmcd_calib, &mem_ddr); ++} ++ ++void board_init_f(ulong dummy) ++{ ++ /* setup AIPS and disable watchdog */ ++ arch_cpu_init(); ++ ++ ccgr_init(); ++ ++ /* setup GP timer */ ++ timer_init(); ++ ++#ifdef CONFIG_SPL_SPI_SUPPORT ++ board_spi_init(); ++#endif ++ ++ /* UART clocks enabled and gd valid - init serial console */ ++ preloader_console_init(); ++ ++ /* DDR initialization */ ++ spl_dram_init(); ++ ++ /* Clear the BSS. */ ++ memset(__bss_start, 0, __bss_end - __bss_start); ++ ++ /* load/boot image from boot device */ ++ board_init_r(NULL, 0); ++} ++ ++void spl_board_init(void) ++{ ++ u32 boot_device = spl_boot_device(); ++ ++ if (boot_device == BOOT_DEVICE_SPI) ++ puts("Booting from SPI flash\n"); ++ else if (boot_device == BOOT_DEVICE_MMC1) ++ puts("Booting from MMC\n"); ++ else ++ puts("Unknown boot device\n"); ++} ++#endif +diff --git a/board/compulab/cl_som_imx6ul/imximage.cfg b/board/compulab/cl_som_imx6ul/imximage.cfg +new file mode 100644 +index 0000000..3d5c5e5 +--- /dev/null ++++ b/board/compulab/cl_som_imx6ul/imximage.cfg +@@ -0,0 +1,108 @@ ++/* ++ * Copyright (C) 2015 CompuLab LTD. ++ * ++ * SPDX-License-Identifier: GPL-2.0+ ++ * ++ * Refer docs/README.imxmage for more details about how-to configure ++ * and create imximage boot image ++ * ++ * The syntax is taken as close as possible with the kwbimage ++ */ ++ ++#define __ASSEMBLY__ ++#include <config.h> ++ ++/* image version */ ++ ++IMAGE_VERSION 2 ++ ++/* ++ * Boot Device : one of ++ * spi/sd ++ */ ++ ++#ifdef CONFIG_SYS_BOOT_SPINOR ++BOOT_FROM spi ++#else ++BOOT_FROM sd ++#endif ++ ++#ifdef CONFIG_SECURE_BOOT ++CSF CONFIG_CSF_SIZE ++#endif ++ ++/* ++ * Device Configuration Data (DCD) ++ * ++ * Each entry must have the format: ++ * Addr-type Address Value ++ * ++ * where: ++ * Addr-type register length (1,2 or 4 bytes) ++ * Address absolute address of the register ++ * value value to be stored in the register ++ */ ++ ++/* Enable all clocks */ ++DATA 4 0x020c4068 0xffffffff ++DATA 4 0x020c406c 0xffffffff ++DATA 4 0x020c4070 0xffffffff ++DATA 4 0x020c4074 0xffffffff ++DATA 4 0x020c4078 0xffffffff ++DATA 4 0x020c407c 0xffffffff ++DATA 4 0x020c4080 0xffffffff ++DATA 4 0x020c4084 0xffffffff ++ ++DATA 4 0x020E04B4 0x000C0000 ++DATA 4 0x020E04AC 0x00000000 ++DATA 4 0x020E027C 0x00000008 ++DATA 4 0x020E0250 0x00000030 ++DATA 4 0x020E024C 0x00000030 ++DATA 4 0x020E0490 0x00000030 ++DATA 4 0x020E0288 0x00000030 ++DATA 4 0x020E0270 0x00000000 ++DATA 4 0x020E0260 0x00000030 ++DATA 4 0x020E0264 0x00000030 ++DATA 4 0x020E04A0 0x00000030 ++DATA 4 0x020E0494 0x00020000 ++DATA 4 0x020E0280 0x00000038 ++DATA 4 0x020E0284 0x00000030 ++DATA 4 0x020E04B0 0x00020000 ++DATA 4 0x020E0498 0x00000030 ++DATA 4 0x020E04A4 0x00000030 ++DATA 4 0x020E0244 0x00000030 ++DATA 4 0x020E0248 0x00000030 ++DATA 4 0x021B001C 0x00008000 ++DATA 4 0x021B0800 0xA1390003 ++DATA 4 0x021B080C 0x001C0013 ++DATA 4 0x021B083C 0x415C015C ++DATA 4 0x021B0848 0x4040484C ++DATA 4 0x021B0850 0x40404C42 ++DATA 4 0x021B081C 0x33333333 ++DATA 4 0x021B0820 0x33333333 ++DATA 4 0x021B082C 0xf3333333 ++DATA 4 0x021B0830 0xf3333333 ++DATA 4 0x021B08C0 0x00922012 ++DATA 4 0x021B0858 0x00000F00 ++DATA 4 0x021B08b8 0x00000800 ++DATA 4 0x021B0004 0x0002002D ++DATA 4 0x021B0008 0x1B333000 ++DATA 4 0x021B000C 0x676B54F3 ++DATA 4 0x021B0010 0xB68E0A83 ++DATA 4 0x021B0014 0x01FF00DB ++DATA 4 0x021B0018 0x00211740 ++DATA 4 0x021B001C 0x00008000 ++DATA 4 0x021B002C 0x000026D2 ++DATA 4 0x021B0030 0x006B1023 ++DATA 4 0x021B0040 0x0000004F ++DATA 4 0x021B0000 0x84180000 ++DATA 4 0x021B001C 0x02008032 ++DATA 4 0x021B001C 0x00008033 ++DATA 4 0x021B001C 0x00048031 ++DATA 4 0x021B001C 0x15208030 ++DATA 4 0x021B001C 0x04008040 ++DATA 4 0x021B0020 0x00000800 ++DATA 4 0x021B0818 0x00000227 ++DATA 4 0x021B0004 0x0002552D ++DATA 4 0x021B0404 0x00011006 ++DATA 4 0x021B001C 0x00000000 +diff --git a/configs/cl_som_imx6ul_defconfig b/configs/cl_som_imx6ul_defconfig +new file mode 100644 +index 0000000..936dbcd +--- /dev/null ++++ b/configs/cl_som_imx6ul_defconfig +@@ -0,0 +1,22 @@ ++CONFIG_ARM=y ++CONFIG_ARCH_MX6=y ++CONFIG_TARGET_CL_SOM_IMX6UL=y ++CONFIG_SPL=y ++CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6UL,SPL" ++CONFIG_SYS_PROMPT="CL-SOM-iMX6UL # " ++CONFIG_CMD_BOOTZ=y ++CONFIG_CMD_DHCP=y ++CONFIG_CMD_I2C=y ++CONFIG_CMD_NET=y ++CONFIG_CMD_PING=y ++CONFIG_CMD_SF=y ++CONFIG_CMD_USB=y ++CONFIG_SPI_FLASH=y ++CONFIG_SPI_FLASH_ATMEL=y ++CONFIG_SPI_FLASH_EON=y ++CONFIG_SPI_FLASH_GIGADEVICE=y ++CONFIG_SPI_FLASH_MACRONIX=y ++CONFIG_SPI_FLASH_SPANSION=y ++CONFIG_SPI_FLASH_STMICRO=y ++CONFIG_SPI_FLASH_SST=y ++CONFIG_SPI_FLASH_WINBOND=y +diff --git a/configs/cl_som_imx6ul_nospl_defconfig b/configs/cl_som_imx6ul_nospl_defconfig +new file mode 100644 +index 0000000..bc6bcbd +--- /dev/null ++++ b/configs/cl_som_imx6ul_nospl_defconfig +@@ -0,0 +1,21 @@ ++CONFIG_ARM=y ++CONFIG_ARCH_MX6=y ++CONFIG_TARGET_CL_SOM_IMX6UL=y ++CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/compulab/cl_som_imx6ul/imximage.cfg,MX6UL" ++CONFIG_SYS_PROMPT="CL-SOM-iMX6UL # " ++CONFIG_CMD_BOOTZ=y ++CONFIG_CMD_DHCP=y ++CONFIG_CMD_I2C=y ++CONFIG_CMD_NET=y ++CONFIG_CMD_PING=y ++CONFIG_CMD_SF=y ++CONFIG_CMD_USB=y ++CONFIG_SPI_FLASH=y ++CONFIG_SPI_FLASH_ATMEL=y ++CONFIG_SPI_FLASH_EON=y ++CONFIG_SPI_FLASH_GIGADEVICE=y ++CONFIG_SPI_FLASH_MACRONIX=y ++CONFIG_SPI_FLASH_SPANSION=y ++CONFIG_SPI_FLASH_STMICRO=y ++CONFIG_SPI_FLASH_SST=y ++CONFIG_SPI_FLASH_WINBOND=y +diff --git a/include/configs/cl_som_imx6ul.h b/include/configs/cl_som_imx6ul.h +new file mode 100644 +index 0000000..a8c66ee +--- /dev/null ++++ b/include/configs/cl_som_imx6ul.h +@@ -0,0 +1,235 @@ ++/* ++ * Copyright (C) 2015 CompuLab LTD. ++ * ++ * Configuration settings for the CompuLab SOM-iMX6UL board. ++ * ++ * SPDX-License-Identifier: GPL-2.0+ ++ */ ++#ifndef __CL_SOM_IMX6UL_CONFIG_H ++#define __CL_SOM_IMX6UL_CONFIG_H ++ ++ ++#include <asm/arch/imx-regs.h> ++#include <linux/sizes.h> ++#include "mx6_common.h" ++#include <asm/imx-common/gpio.h> ++ ++#define is_cl_som_imx6ul() CONFIG_IS_ENABLED(TARGET_CL_SOM_IMX6UL) ++ ++#define CONFIG_MISC_INIT_R ++ ++/* SPL options */ ++#define CONFIG_SPL_BOARD_INIT ++#define CONFIG_SPL_LIBCOMMON_SUPPORT ++#define CONFIG_SPL_MMC_SUPPORT ++#define CONFIG_SPL_SPI_SUPPORT ++#define CONFIG_SPL_SPI_FLASH_SUPPORT ++#define CONFIG_SPL_SPI_LOAD ++#include "imx6_spl.h" ++#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR ++#undef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR ++#endif ++#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x80 /* offset 64 kb */ ++#define CONFIG_SYS_SPI_U_BOOT_OFFS (64 * 1024) ++ ++#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG ++ ++#define CONFIG_DISPLAY_CPUINFO ++#define CONFIG_DISPLAY_BOARDINFO ++ ++/* Size of malloc() pool */ ++#define CONFIG_SYS_MALLOC_LEN (16 * SZ_1M) ++ ++#define CONFIG_BOARD_EARLY_INIT_F ++#define CONFIG_BOARD_LATE_INIT ++ ++#define CONFIG_MXC_UART ++#define CONFIG_MXC_UART_BASE UART3_BASE ++ ++/* MMC Configs */ ++#define CONFIG_FSL_USDHC ++#ifdef CONFIG_FSL_USDHC ++#define CONFIG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR ++#define CONFIG_SYS_FSL_USDHC_NUM 2 ++#define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */ ++#endif ++ ++#define CONFIG_SYS_MMC_IMG_LOAD_PART 1 ++ ++#define CONFIG_EXTRA_ENV_SETTINGS \ ++ "script=boot.scr\0" \ ++ "image=zImage\0" \ ++ "console=ttymxc2\0" \ ++ "fdt_high=0xffffffff\0" \ ++ "initrd_high=0xffffffff\0" \ ++ "fdt_file=imx6ul-sbc-imx6ul.dtb\0" \ ++ "fdt_addr=0x83000000\0" \ ++ "boot_fdt=try\0" \ ++ "ip_dyn=yes\0" \ ++ "mmcdev="__stringify(CONFIG_SYS_MMC_DEV)"\0" \ ++ "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \ ++ "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \ ++ "mmcautodetect=yes\0" \ ++ "mmcargs=setenv bootargs console=${console},${baudrate} " \ ++ "root=${mmcroot}\0" \ ++ "loadbootscript=" \ ++ "load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ ++ "bootscript=echo Running bootscript from mmc ...; " \ ++ "source\0" \ ++ "loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \ ++ "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \ ++ "mmcboot=echo Booting from mmc ...; " \ ++ "run mmcargs; " \ ++ "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ ++ "if run loadfdt; then " \ ++ "bootz ${loadaddr} - ${fdt_addr}; " \ ++ "else " \ ++ "if test ${boot_fdt} = try; then " \ ++ "bootz; " \ ++ "else " \ ++ "echo WARN: Cannot load the DT; " \ ++ "fi; " \ ++ "fi; " \ ++ "else " \ ++ "bootz; " \ ++ "fi;\0" \ ++ "netargs=setenv bootargs console=${console},${baudrate} " \ ++ "root=/dev/nfs " \ ++ "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ ++ "netboot=run netbootdummycmd;\0" \ ++ "netbootdummycmd=echo Issuing dummy net boot...;\0" \ ++ "netbootcmd=echo Booting from net ...; " \ ++ "run netargs; " \ ++ "if test ${ip_dyn} = yes; then " \ ++ "setenv get_cmd dhcp; " \ ++ "else " \ ++ "setenv get_cmd tftp; " \ ++ "fi; " \ ++ "${get_cmd} ${image}; " \ ++ "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ ++ "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \ ++ "bootz ${loadaddr} - ${fdt_addr}; " \ ++ "else " \ ++ "if test ${boot_fdt} = try; then " \ ++ "bootz; " \ ++ "else " \ ++ "echo WARN: Cannot load the DT; " \ ++ "fi; " \ ++ "fi; " \ ++ "else " \ ++ "bootz; " \ ++ "fi;\0" \ ++ "findfdt="\ ++ "if test $fdt_file = undefined; then " \ ++ "echo WARNING: Could not determine dtb to use; " \ ++ "fi;\0" \ ++ "autoload=off\0" \ ++ ++#define CONFIG_BOOTCOMMAND \ ++ "run findfdt;" \ ++ "mmc dev ${mmcdev};" \ ++ "mmc dev ${mmcdev}; if mmc rescan; then " \ ++ "if run loadbootscript; then " \ ++ "run bootscript; " \ ++ "else " \ ++ "if run loadimage; then " \ ++ "run mmcboot; " \ ++ "else run netboot; " \ ++ "fi; " \ ++ "fi; " \ ++ "else run netboot; fi" ++ ++/* Miscellaneous configurable options */ ++#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR ++#define CONFIG_SYS_HZ 1000 ++ ++#define CONFIG_CMDLINE_EDITING ++#define CONFIG_STACKSIZE SZ_128K ++ ++/* Physical Memory Map */ ++#define CONFIG_NR_DRAM_BANKS 1 ++#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR ++ ++#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM ++#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR ++#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE ++ ++#define CONFIG_SYS_INIT_SP_OFFSET \ ++ (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) ++#define CONFIG_SYS_INIT_SP_ADDR \ ++ (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) ++ ++/* FLASH and environment organization */ ++#define CONFIG_SYS_NO_FLASH ++ ++#define CONFIG_SYS_MMC_DEV 0 /* USDHC1 */ ++#define CONFIG_MMCROOT "/dev/mmcblk0p2" /* USDHC1 */ ++ ++#define CONFIG_OF_LIBFDT ++ ++#ifndef CONFIG_SYS_DCACHE_OFF ++#define CONFIG_CMD_CACHE ++#endif ++ ++#define CONFIG_SF_DEFAULT_BUS 3 ++#define CONFIG_SF_DEFAULT_CS 0 ++#define CONFIG_SF_DEFAULT_SPEED 20000000 ++#define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0) ++#define CONFIG_SPI ++#define CONFIG_MXC_SPI ++ ++#define CONFIG_ENV_SIZE SZ_8K ++#define CONFIG_ENV_IS_IN_SPI_FLASH ++ ++#define CONFIG_ENV_OFFSET (768 * 1024) ++#define CONFIG_ENV_SECT_SIZE (64 * 1024) ++#define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS ++#define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS ++#define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE ++#define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED ++ ++/* USB Configs */ ++#ifdef CONFIG_CMD_USB ++#define CONFIG_USB_EHCI ++#define CONFIG_USB_EHCI_MX6 ++#define CONFIG_USB_STORAGE ++#define CONFIG_EHCI_HCD_INIT_AFTER_RESET ++#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) ++#define CONFIG_MXC_USB_FLAGS 0 ++#define CONFIG_USB_MAX_CONTROLLER_COUNT 2 ++#endif ++ ++#ifdef CONFIG_CMD_NET ++#define CONFIG_CMD_MII ++#define CONFIG_FEC_MXC ++#define CONFIG_MII ++#define CONFIG_FEC_ENET_DEV 0 ++ ++#define IMX_FEC_BASE ENET_BASE_ADDR ++#define CONFIG_FEC_MXC_PHYADDR 0x0 ++#define CONFIG_FEC_XCV_TYPE RMII ++#define CONFIG_ETHPRIME "FEC" ++ ++#define CONFIG_PHYLIB ++#define CONFIG_PHY_MICREL ++#endif ++ ++/* 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_I2C3 /* enable I2C bus 3 */ ++#define CONFIG_SYS_I2C_SPEED 100000 ++ ++#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 ++#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 ++#define CONFIG_SYS_I2C_EEPROM_BUS 1 ++ ++#define CONFIG_PCA953X ++#define CONFIG_CMD_PCA953X ++#define CONFIG_CMD_PCA953X_INFO ++#define CONFIG_SYS_I2C_PCA953X_ADDR 0x20 ++#define CONFIG_SYS_I2C_PCA953X_WIDTH { {0x20, 16} } ++ ++#define CONFIG_REVISION_TAG ++#endif +-- +1.9.1 +
recipes-bsp/u-boot/u-boot-compulab-2015.10/0002-arm-imx6ul-add-extraversion-for-cl-som-imx6ul.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 3435949ab69dedf2f67c970d1974a7456f0fb86a Mon Sep 17 00:00:00 2001 +From: Valentin Raevsky <[email protected]> +Date: Mon, 21 Dec 2015 15:26:41 +0200 +Subject: [PATCH 2/7] arm: imx6ul: add extraversion for cl-som-imx6ul + +Add extraversion for cl-som-imx6ul + +Signed-off-by: Valentin Raevsky <[email protected]> +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index fd06024..2bc1421 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,7 +1,7 @@ + VERSION = 2015 + PATCHLEVEL = 10 + SUBLEVEL = +-EXTRAVERSION = ++EXTRAVERSION = -cl-som-imx6ul-0.7 + NAME = + + # *DOCUMENTATION* +-- +1.9.1 +
recipes-bsp/u-boot/u-boot-compulab-2015.10/0003-arm-imx6ul-add-u-boot-with-spl-cl.imx-target-for-cl-.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 23068b6ce78dab974825339649331e08f8195ea6 Mon Sep 17 00:00:00 2001 +From: Valentin Raevsky <[email protected]> +Date: Wed, 23 Dec 2015 17:16:02 +0200 +Subject: [PATCH 3/7] arm: imx6ul: add u-boot-with-spl-cl.imx target for + cl-som-imx6ul + +Add u-boot-with-spl-cl.imx target for cl-som-imx6ul. + +Signed-off-by: Valentin Raevsky <[email protected]> +--- + Makefile | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/Makefile b/Makefile +index 2bc1421..0527298 100644 +--- a/Makefile ++++ b/Makefile +@@ -968,6 +968,11 @@ SPL: spl/u-boot-spl.bin FORCE + u-boot-with-spl.imx u-boot-with-nand-spl.imx: SPL u-boot.bin FORCE + $(Q)$(MAKE) $(build)=arch/arm/imx-common $@ + ++u-boot-with-spl-cl.imx: SPL u-boot.img FORCE ++ @dd if=SPL of=$@ bs=1K seek=0 conv=notrunc 2>/dev/null ++ @dd if=u-boot.img of=$@ bs=1K seek=63 conv=notrunc 2>/dev/null ++ @ln -sf $@ u-boot.imx ++ + MKIMAGEFLAGS_u-boot.ubl = -n $(UBL_CONFIG) -T ublimage -e $(CONFIG_SYS_TEXT_BASE) + + u-boot.ubl: u-boot-with-spl.bin FORCE +-- +1.9.1 +
recipes-bsp/u-boot/u-boot-compulab-2015.10/0004-arm-imx6ul-enable-USB-Networking.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 43975bd18498e5fa4654f720897b53f55411ebe8 Mon Sep 17 00:00:00 2001 +From: Valentin Raevsky <[email protected]> +Date: Sun, 27 Dec 2015 15:47:47 +0200 +Subject: [PATCH 4/7] arm: imx6ul: enable USB Networking + +Enable USB Networking. + +Signed-off-by: Valentin Raevsky <[email protected]> +--- + include/configs/cl_som_imx6ul.h | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/include/configs/cl_som_imx6ul.h b/include/configs/cl_som_imx6ul.h +index a8c66ee..0a6ed4f 100644 +--- a/include/configs/cl_som_imx6ul.h ++++ b/include/configs/cl_som_imx6ul.h +@@ -199,6 +199,13 @@ + #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 + #endif + ++/* USB Networking options */ ++#define CONFIG_USB_HOST_ETHER ++#define CONFIG_USB_ETHER_SMSC95XX ++#define CONFIG_USB_ETHER_RNDIS ++#define CONFIG_USB_ETHER_ASIX ++#define CONFIG_USB_ETHER_MCS7830 ++ + #ifdef CONFIG_CMD_NET + #define CONFIG_CMD_MII + #define CONFIG_FEC_MXC +-- +1.9.1 +
recipes-bsp/u-boot/u-boot-compulab-2015.10/0005-arm-imx6ul-enable-nand-for-cl-som-imx6ul.patch new file +141 -0
141 lines not on this page · raw message
recipes-bsp/u-boot/u-boot-compulab-2015.10/0006-arm-imx6ul-add-memory-size-detection-for-cl-som-imx6.patch new file +181 -0
181 lines not on this page · raw message
recipes-bsp/u-boot/u-boot-compulab-2015.10/0007-arm-imx6ul-tag-U-Boot-version-cl-som-imx6ul-1.0.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 1e15aa6c73688519889da26b4655146641c1544e Mon Sep 17 00:00:00 2001 +From: Valentin Raevsky <[email protected]> +Date: Sun, 7 Feb 2016 15:45:18 +0200 +Subject: [PATCH 7/7] arm: imx6ul: tag U-Boot version cl-som-imx6ul-1.0 + +Tag U-Boot version cl-som-imx6ul-1.0. + +Signed-off-by: Valentin Raevsky <[email protected]> +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 0527298..84244e4 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,7 +1,7 @@ + VERSION = 2015 + PATCHLEVEL = 10 + SUBLEVEL = +-EXTRAVERSION = -cl-som-imx6ul-0.7 ++EXTRAVERSION = -cl-som-imx6ul-1.0 + NAME = + + # *DOCUMENTATION* +-- +1.9.1 +
recipes-bsp/u-boot/u-boot-compulab-2015.10/cl_som_imx6ul_defconfig new file +22 -0
@@ -0,0 +1,22 @@ +CONFIG_ARM=y +CONFIG_ARCH_MX6=y +CONFIG_TARGET_CL_SOM_IMX6UL=y +CONFIG_SPL=y +CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6UL,SPL" +CONFIG_SYS_PROMPT="CL-SOM-iMX6UL # " +CONFIG_CMD_BOOTZ=y +CONFIG_CMD_DHCP=y +CONFIG_CMD_I2C=y +CONFIG_CMD_NET=y +CONFIG_CMD_PING=y +CONFIG_CMD_SF=y +CONFIG_CMD_USB=y +CONFIG_SPI_FLASH=y +CONFIG_SPI_FLASH_ATMEL=y +CONFIG_SPI_FLASH_EON=y +CONFIG_SPI_FLASH_GIGADEVICE=y +CONFIG_SPI_FLASH_MACRONIX=y +CONFIG_SPI_FLASH_SPANSION=y +CONFIG_SPI_FLASH_STMICRO=y +CONFIG_SPI_FLASH_SST=y +CONFIG_SPI_FLASH_WINBOND=y
recipes-bsp/u-boot/u-boot-compulab-2015.10/cl_som_imx6ul_nospl_defconfig new file +21 -0
@@ -0,0 +1,21 @@ +CONFIG_ARM=y +CONFIG_ARCH_MX6=y +CONFIG_TARGET_CL_SOM_IMX6UL=y +CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/compulab/cl_som_imx6ul/imximage.cfg,MX6UL" +CONFIG_SYS_PROMPT="CL-SOM-iMX6UL # " +CONFIG_CMD_BOOTZ=y +CONFIG_CMD_DHCP=y +CONFIG_CMD_I2C=y +CONFIG_CMD_NET=y +CONFIG_CMD_PING=y +CONFIG_CMD_SF=y +CONFIG_CMD_USB=y +CONFIG_SPI_FLASH=y +CONFIG_SPI_FLASH_ATMEL=y +CONFIG_SPI_FLASH_EON=y +CONFIG_SPI_FLASH_GIGADEVICE=y +CONFIG_SPI_FLASH_MACRONIX=y +CONFIG_SPI_FLASH_SPANSION=y +CONFIG_SPI_FLASH_STMICRO=y +CONFIG_SPI_FLASH_SST=y +CONFIG_SPI_FLASH_WINBOND=y
recipes-bsp/u-boot/u-boot-compulab_2015.10.bb new file +33 -0
@@ -0,0 +1,33 @@ +require recipes-bsp/u-boot/u-boot.inc + +DESCRIPTION = "u-boot which includes support for CompuLab boards." +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=0507cd7da8e7ad6d6701926ec9b84c95" + +PROVIDES += "u-boot" + +SRCBRANCH = "master" +SRCREV = "v2015.10" +SRC_URI = "git://git.denx.de/u-boot.git;branch=${SRCBRANCH}" +SRC_URI[md5sum] = "fd8234c5b3a460430689848c1f16acef" + +SRC_URI += "file://0003-arm-imx6ul-add-u-boot-with-spl-cl.imx-target-for-cl-.patch" + +SRC_URI_append_cl-som-imx6ul += "file://cl_som_imx6ul_defconfig \ + file://cl_som_imx6ul_nospl_defconfig \ + file://0001-arm-imx6ul-add-support-for-Compulab-cl-som-imx6ul.patch \ + file://0002-arm-imx6ul-add-extraversion-for-cl-som-imx6ul.patch \ + file://0004-arm-imx6ul-enable-USB-Networking.patch \ + file://0005-arm-imx6ul-enable-nand-for-cl-som-imx6ul.patch \ + file://0006-arm-imx6ul-add-memory-size-detection-for-cl-som-imx6.patch \ + file://0007-arm-imx6ul-tag-U-Boot-version-cl-som-imx6ul-1.0.patch \ +" + +S = "${WORKDIR}/git" + +do_compile_append () { + oe_runmake u-boot-with-spl-cl.imx +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" +COMPATIBLE_MACHINE = "(cl-som-imx6ul|cm-fx6)"
Signature · 1 line
1.9.1
PATCH 2/5 linux-compulab: add 4.1.15 kernel configuration files
Add cm-fx6 and cl-som-imx6ul kernel configuration files. This is a fork of the linux-imx 4.1.15.ga with the CompuLab patches for cm-fx6 and cl-som-imx6ul boards.
--- ...001-platform-add-depends-property-handler.patch | 77 + ...-dts-Add-initial-support-for-cl-som-imx6u.patch | 524 +++++++ ...M-i.MX6UL-add-defconfig-for-cl-som-imx6ul.patch | 473 +++++++ ...i.MX6UL-Add-cl-som-imx6ul-platform-driver.patch | 127 ++ .../0004-Bluetooth-Add-tty-HCI-driver.patch | 603 ++++++++ ...-btwilink-add-minimal-device-tree-support.patch | 57 + ...6UL-cl-som-imx6ul-add-support-for-WiLink8.patch | 184 +++ ...-update-cl-som-imx6ul-defconfig-for-wilin.patch | 1154 +++++++++++++++ ....MX6UL-update-defconfig-for-cl-som-imx6ul.patch | 38 + ...-sil164-add-dvi-transmitter-simple-driver.patch | 315 ++++ ...imx6ul-dvi-enable-dvi-output-on-cl-sb-som.patch | 68 + ...-update-cl-som-imx6ul-defconfig-for-sil16.patch | 33 + ...-update-cl-som-imx6ul-defconfig-for-mcs78.patch | 39 + ...6UL-rename-the-dts-files-of-cl-som-imx6ul.patch | 1427 +++++++++++++++++++ ...-update-cl-som-imx6ul-defconfig-for-syste.patch | 72 + ...-update-cl-som-imx6ul-defconfig-for-ads78.patch | 30 + ...-update-cl-som-imx6ul-defconfig-for-WiFi-.patch | 115 ++ ....MX6UL-add-nand-support-for-cl-som-imx6ul.patch | 101 ++ ...i.MX6UL-enable-cl-som-imx6ul-in-defconfig.patch | 27 + ...-dts-fix-the-spi-flash-compatibility-stri.patch | 30 + ...i.MX6UL-add-depends-property-to-gpmi-nand.patch | 30 + ...X6UL-dts-set-timing1-as-default-for-lcdif.patch | 26 + ...RM-i.MX6UL-update-cl-som-imx6ul-defconfig.patch | 320 +++++ ...M-i.MX6UL-dts-fix-u-boot-environment-size.patch | 29 + ...6UL-dts-update-cl-som-imx6ul-model-string.patch | 54 + ...RM-i.MX6UL-fix-usdhc1-cd-wp-gpio-settings.patch | 28 + ...RM-i.MX6UL-move-tsc2046-to-the-ecspi4-bus.patch | 132 ++ ...i.MX6UL-enable-flexcan1-for-cl-som-imx6ul.patch | 45 + ...6UL-add-aliases-for-cl-som-imx6ul-devices.patch | 32 + ...ARM-i.MX6UL-adjust-usdhc2-pad-conf-values.patch | 44 + ...ARM-i.MX6UL-adjust-usdhc1-pad-conf-values.patch | 38 + ...L-audio-0-add-analog-audio-support-switch.patch | 38 + ...-i.MX6UL-audio-1-add-analog-audio-support.patch | 113 ++ ....MX6UL-audio-2-adjust-sai2.MCLK-direction.patch | 63 + ...-audio-3-update-defconfig-for-analog-audi.patch | 28 + ...35-ARM-i.MX6UL-update-defconfig-for-lcdif.patch | 284 ++++ .../0036-ARM-i.MX6UL-enable-sdma.patch | 30 + .../0037-ARM-i.MX6UL-fix-gpmi-depends-string.patch | 28 + ...0038-ARM-i.MX6UL-disable-ocotp-for-wilink.patch | 34 + .../0039-ARM-i.MX6UL-wm8731-refactoring.patch | 53 + .../linux-compulab-4.1.15/cl-som-imx6ul/defconfig | 551 +++++++ .../0001-ARM-dts-update-support-for-cm-fx6.patch | 1497 ++++++++++++++++++++ ...M-i.MX6-cm-fx6-add-cm-fx6-platform-driver.patch | 173 +++ .../0003-ARM-i.MX6-cm-fx6-Add-defconfig.patch | 486 +++++++ .../0004-ARM-i.MX6-cm-fx6-add-gpc-node.patch | 31 + ...-ARM-i.MX6-audio-add-analog-audio-support.patch | 172 +++ ...M-i.MX6-add-depends-property-to-gpmi-nand.patch | 31 + .../0007-ARM-i.MX6-update-defconfig-for-nand.patch | 271 ++++ .../cm-fx6/0008-ARM-i.MX6-add-mxc_dvi-driver.patch | 479 +++++++ ...ts-refactoring-of-the-second-video-output.patch | 38 + .../0010-ARM-i.MX6-dts-ldo-hdmi-changes.patch | 35 + ...1-ARM-i.MX6-dts-udshc3-set-polarity-value.patch | 28 + .../0012-ARM-i.MX6-dts-sata-refactoring.patch | 31 + .../0013-ARM-i.MX6-dts-ldb-refactoring.patch | 92 ++ .../0014-ARM-i.MX6-dts-enable-mipi_dsi.patch | 85 ++ .../cm-fx6/0015-ARM-i.MX6-pcie-refactoring.patch | 169 +++ ...16-ARM-i.MX6-dts-clean-up-unnecesary-code.patch | 53 + .../cm-fx6/0017-ARM-i.MX6-update-defconfig.patch | 34 + ...luetooth-btmrvl-disable-SD8787-AMP-device.patch | 36 + ...019-ARM-i.MX6-HDMI-Fix-HDMI-PHY-init-hang.patch | 31 + .../linux/linux-compulab-4.1.15/cm-fx6/defconfig | 438 ++++++ recipes-kernel/linux/linux-compulab_4.1.15.bb | 98 ++ 62 files changed, 11802 insertions(+) create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/0001-platform-add-depends-property-handler.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0001-ARM-i.MX6UL-dts-Add-initial-support-for-cl-som-imx6u.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0002-ARM-i.MX6UL-add-defconfig-for-cl-som-imx6ul.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0003-ARM-i.MX6UL-Add-cl-som-imx6ul-platform-driver.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0004-Bluetooth-Add-tty-HCI-driver.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0005-btwilink-add-minimal-device-tree-support.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0006-ARM-i.MX6UL-cl-som-imx6ul-add-support-for-WiLink8.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0007-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-wilin.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0008-ARM-i.MX6UL-update-defconfig-for-cl-som-imx6ul.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0009-sil164-add-dvi-transmitter-simple-driver.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0010-ARM-imx6ul-dvi-enable-dvi-output-on-cl-sb-som.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0011-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-sil16.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0012-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-mcs78.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0013-ARM-i.MX6UL-rename-the-dts-files-of-cl-som-imx6ul.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0014-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-syste.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0015-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-ads78.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0016-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-WiFi-.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0017-ARM-i.MX6UL-add-nand-support-for-cl-som-imx6ul.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0018-ARM-i.MX6UL-enable-cl-som-imx6ul-in-defconfig.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0019-ARM-i.MX6UL-dts-fix-the-spi-flash-compatibility-stri.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0020-ARM-i.MX6UL-add-depends-property-to-gpmi-nand.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0021-ARM-i.MX6UL-dts-set-timing1-as-default-for-lcdif.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0022-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0023-ARM-i.MX6UL-dts-fix-u-boot-environment-size.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0024-ARM-i.MX6UL-dts-update-cl-som-imx6ul-model-string.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0025-ARM-i.MX6UL-fix-usdhc1-cd-wp-gpio-settings.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0026-ARM-i.MX6UL-move-tsc2046-to-the-ecspi4-bus.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0027-ARM-i.MX6UL-enable-flexcan1-for-cl-som-imx6ul.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0028-ARM-i.MX6UL-add-aliases-for-cl-som-imx6ul-devices.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0029-ARM-i.MX6UL-adjust-usdhc2-pad-conf-values.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0030-ARM-i.MX6UL-adjust-usdhc1-pad-conf-values.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0031-ARM-i.MX6UL-audio-0-add-analog-audio-support-switch.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0032-ARM-i.MX6UL-audio-1-add-analog-audio-support.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0033-ARM-i.MX6UL-audio-2-adjust-sai2.MCLK-direction.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0034-ARM-i.MX6UL-audio-3-update-defconfig-for-analog-audi.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0035-ARM-i.MX6UL-update-defconfig-for-lcdif.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0036-ARM-i.MX6UL-enable-sdma.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0037-ARM-i.MX6UL-fix-gpmi-depends-string.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0038-ARM-i.MX6UL-disable-ocotp-for-wilink.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0039-ARM-i.MX6UL-wm8731-refactoring.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/defconfig create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0001-ARM-dts-update-support-for-cm-fx6.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0002-ARM-i.MX6-cm-fx6-add-cm-fx6-platform-driver.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0003-ARM-i.MX6-cm-fx6-Add-defconfig.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0004-ARM-i.MX6-cm-fx6-add-gpc-node.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0005-ARM-i.MX6-audio-add-analog-audio-support.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0006-ARM-i.MX6-add-depends-property-to-gpmi-nand.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0007-ARM-i.MX6-update-defconfig-for-nand.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0008-ARM-i.MX6-add-mxc_dvi-driver.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0009-ARM-i.MX6-dts-refactoring-of-the-second-video-output.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0010-ARM-i.MX6-dts-ldo-hdmi-changes.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0011-ARM-i.MX6-dts-udshc3-set-polarity-value.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0012-ARM-i.MX6-dts-sata-refactoring.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0013-ARM-i.MX6-dts-ldb-refactoring.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0014-ARM-i.MX6-dts-enable-mipi_dsi.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0015-ARM-i.MX6-pcie-refactoring.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0016-ARM-i.MX6-dts-clean-up-unnecesary-code.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0017-ARM-i.MX6-update-defconfig.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0018-Bluetooth-btmrvl-disable-SD8787-AMP-device.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0019-ARM-i.MX6-HDMI-Fix-HDMI-PHY-init-hang.patch create mode 100644 recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/defconfig create mode 100644 recipes-kernel/linux/linux-compulab_4.1.15.bb
recipes-kernel/linux/linux-compulab-4.1.15/0001-platform-add-depends-property-handler.patch new file +77 -0
@@ -0,0 +1,77 @@ +From 6651575b5a01d56c31c17a2aef1f9f76fa57b90a Mon Sep 17 00:00:00 2001 +From: Valentin Raevsky <[email protected]> +Date: Mon, 13 Jun 2016 13:36:53 +0300 +Subject: [PATCH] platform: add 'depends' property handler + +Add 'depends' property handler. +The purpose is to create a kind of dependency between devices. +The field contains the name of the device that the loaded +driver depends on. The device driver reads this property +and decides either continue or postpone the device probing. +This is an optional property. The fact that the device node does +not have such the property makes no changes in the device probing. + +Signed-off-by: Valentin Raevsky <[email protected]> +--- + drivers/base/platform.c | 32 ++++++++++++++++++++++++++++++++ + 1 file changed, 32 insertions(+) + +diff --git a/drivers/base/platform.c b/drivers/base/platform.c +index 7403de9..89db6d7 100644 +--- a/drivers/base/platform.c ++++ b/drivers/base/platform.c +@@ -23,6 +23,7 @@ + #include <linux/pm_runtime.h> + #include <linux/pm_domain.h> + #include <linux/idr.h> ++#include <linux/i2c.h> + #include <linux/acpi.h> + #include <linux/clk/clk-conf.h> + #include <linux/limits.h> +@@ -502,12 +503,43 @@ err_alloc: + } + EXPORT_SYMBOL_GPL(platform_device_register_full); + ++static int platform_drv_check_dep(struct device_node *of_node) ++{ ++ struct device_node *np; ++ struct platform_device *pdev; ++ struct i2c_client *client; ++ const char *depends; ++ int ret; ++ ++ depends = of_get_property(of_node, "depends", NULL); ++ if (!depends) ++ return 0; ++ ++ np = of_find_node_by_path(depends); ++ if (!np) ++ return 1; ++ ++ pdev=of_find_device_by_node(np); ++ if (!pdev) { ++ client = of_find_i2c_device_by_node(np); ++ ret = (!client || !client->dev.driver); ++ } else { ++ ret = (!pdev || !pdev->dev.driver); ++ } ++ ++ of_node_put(np); ++ return ret; ++} ++ + static int platform_drv_probe(struct device *_dev) + { + struct platform_driver *drv = to_platform_driver(_dev->driver); + struct platform_device *dev = to_platform_device(_dev); + int ret; + ++ if (platform_drv_check_dep(dev->dev.of_node)) ++ return -EPROBE_DEFER; ++ + ret = of_clk_set_defaults(_dev->of_node, false); + if (ret < 0) + return ret; +-- +1.9.1 +
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0001-ARM-i.MX6UL-dts-Add-initial-support-for-cl-som-imx6u.patch new file +524 -0
524 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0002-ARM-i.MX6UL-add-defconfig-for-cl-som-imx6ul.patch new file +473 -0
473 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0003-ARM-i.MX6UL-Add-cl-som-imx6ul-platform-driver.patch new file +127 -0
127 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0004-Bluetooth-Add-tty-HCI-driver.patch new file +603 -0
603 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0005-btwilink-add-minimal-device-tree-support.patch new file +57 -0
57 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0006-ARM-i.MX6UL-cl-som-imx6ul-add-support-for-WiLink8.patch new file +184 -0
184 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0007-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-wilin.patch new file +1154 -0
955 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0008-ARM-i.MX6UL-update-defconfig-for-cl-som-imx6ul.patch new file +38 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0009-sil164-add-dvi-transmitter-simple-driver.patch new file +315 -0
315 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0010-ARM-imx6ul-dvi-enable-dvi-output-on-cl-sb-som.patch new file +68 -0
68 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0011-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-sil16.patch new file +33 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0012-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-mcs78.patch new file +39 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0013-ARM-i.MX6UL-rename-the-dts-files-of-cl-som-imx6ul.patch new file +1427 -0
1,427 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0014-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-syste.patch new file +72 -0
72 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0015-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-ads78.patch new file +30 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0016-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig-for-WiFi-.patch new file +115 -0
115 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0017-ARM-i.MX6UL-add-nand-support-for-cl-som-imx6ul.patch new file +101 -0
101 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0018-ARM-i.MX6UL-enable-cl-som-imx6ul-in-defconfig.patch new file +27 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0019-ARM-i.MX6UL-dts-fix-the-spi-flash-compatibility-stri.patch new file +30 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0020-ARM-i.MX6UL-add-depends-property-to-gpmi-nand.patch new file +30 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0021-ARM-i.MX6UL-dts-set-timing1-as-default-for-lcdif.patch new file +26 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0022-ARM-i.MX6UL-update-cl-som-imx6ul-defconfig.patch new file +320 -0
320 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0023-ARM-i.MX6UL-dts-fix-u-boot-environment-size.patch new file +29 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0024-ARM-i.MX6UL-dts-update-cl-som-imx6ul-model-string.patch new file +54 -0
54 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0025-ARM-i.MX6UL-fix-usdhc1-cd-wp-gpio-settings.patch new file +28 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0026-ARM-i.MX6UL-move-tsc2046-to-the-ecspi4-bus.patch new file +132 -0
132 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0027-ARM-i.MX6UL-enable-flexcan1-for-cl-som-imx6ul.patch new file +45 -0
45 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0028-ARM-i.MX6UL-add-aliases-for-cl-som-imx6ul-devices.patch new file +32 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0029-ARM-i.MX6UL-adjust-usdhc2-pad-conf-values.patch new file +44 -0
44 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0030-ARM-i.MX6UL-adjust-usdhc1-pad-conf-values.patch new file +38 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0031-ARM-i.MX6UL-audio-0-add-analog-audio-support-switch.patch new file +38 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0032-ARM-i.MX6UL-audio-1-add-analog-audio-support.patch new file +113 -0
113 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0033-ARM-i.MX6UL-audio-2-adjust-sai2.MCLK-direction.patch new file +63 -0
63 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0034-ARM-i.MX6UL-audio-3-update-defconfig-for-analog-audi.patch new file +28 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0035-ARM-i.MX6UL-update-defconfig-for-lcdif.patch new file +284 -0
284 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0036-ARM-i.MX6UL-enable-sdma.patch new file +30 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0037-ARM-i.MX6UL-fix-gpmi-depends-string.patch new file +28 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0038-ARM-i.MX6UL-disable-ocotp-for-wilink.patch new file +34 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/0039-ARM-i.MX6UL-wm8731-refactoring.patch new file +53 -0
53 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cl-som-imx6ul/defconfig new file +551 -0
551 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0001-ARM-dts-update-support-for-cm-fx6.patch new file +1497 -0
1,497 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0002-ARM-i.MX6-cm-fx6-add-cm-fx6-platform-driver.patch new file +173 -0
173 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0003-ARM-i.MX6-cm-fx6-Add-defconfig.patch new file +486 -0
486 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0004-ARM-i.MX6-cm-fx6-add-gpc-node.patch new file +31 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0005-ARM-i.MX6-audio-add-analog-audio-support.patch new file +172 -0
172 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0006-ARM-i.MX6-add-depends-property-to-gpmi-nand.patch new file +31 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0007-ARM-i.MX6-update-defconfig-for-nand.patch new file +271 -0
271 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0008-ARM-i.MX6-add-mxc_dvi-driver.patch new file +479 -0
479 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0009-ARM-i.MX6-dts-refactoring-of-the-second-video-output.patch new file +38 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0010-ARM-i.MX6-dts-ldo-hdmi-changes.patch new file +35 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0011-ARM-i.MX6-dts-udshc3-set-polarity-value.patch new file +28 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0012-ARM-i.MX6-dts-sata-refactoring.patch new file +31 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0013-ARM-i.MX6-dts-ldb-refactoring.patch new file +92 -0
92 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0014-ARM-i.MX6-dts-enable-mipi_dsi.patch new file +85 -0
85 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0015-ARM-i.MX6-pcie-refactoring.patch new file +169 -0
169 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0016-ARM-i.MX6-dts-clean-up-unnecesary-code.patch new file +53 -0
53 lines not on this page · raw message
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0017-ARM-i.MX6-update-defconfig.patch new file +34 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0018-Bluetooth-btmrvl-disable-SD8787-AMP-device.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/0019-ARM-i.MX6-HDMI-Fix-HDMI-PHY-init-hang.patch new file +31 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-compulab-4.1.15/cm-fx6/defconfig new file +438 -0
438 lines not on this page · raw message
recipes-kernel/linux/linux-compulab_4.1.15.bb new file +98 -0
98 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.9.1
Part of the diff is not shown here. View the raw message.
Re: [meta-fsl-arm-extra][PATCH 2/5] linux-compulab: add 4.1.15 kernel configuration files
Quoted 5 lines · Valentin Raevsky
Add cm-fx6 and cl-som-imx6ul kernel configuration files. This is a fork of the linux-imx 4.1.15.ga with the CompuLab patches for cm-fx6 and cl-som-imx6ul boards.
Signed-off-by Valentin Raevsky <[email protected]>
The patch fails to build using the GCC 6 which is the default in master; please backport the fix for it or, even better, rebase your fork on top of linux-fslc-imx which has this fixed as well as 4.1.26 stable update fixes.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH 3/5 cm-fx6: update cm-fx6 machine configuration
In reply to Valentin RaevskyUpdate cm-fx6 machine configuration:
1) Fix u_boot and kernel virtual providers' names with respect to the SoC family. This change solves a multiple provider issue that the image build procedure runs into.
2) Add the linux-firmware-sd8787 to the buid.
--- conf/machine/cm-fx6.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
conf/machine/cm-fx6.conf +4 -2
@@ -9,8 +9,8 @@ require conf/machine/include/tune-cortexa9.inc SOC_FAMILY = "mx6:mx6dl:mx6q" -PREFERRED_PROVIDER_u-boot = "u-boot-compulab" -PREFERRED_PROVIDER_virtual/kernel = "linux-compulab" +PREFERRED_PROVIDER_u-boot_cm-fx6 = "u-boot-compulab" +PREFERRED_PROVIDER_virtual/kernel_cm-fx6 = "linux-compulab" UBOOT_MACHINE ?= "cm_fx6_defconfig"
@@ -18,4 +18,6 @@ KERNEL_DEVICETREE = "imx6dl-cm-fx6.dtb imx6dl-sbc-fx6.dtb imx6dl-sbc-fx6m.dtb MACHINE_FEATURES += "pci wifi bluetooth alsa bluetooth serial usbhost wifi" +MACHINE_FIRMWARE_append_mx6 += "linux-firmware-sd8787" + SERIAL_CONSOLE = "115200 ttymxc3"
Signature · 1 line
1.9.1
Re: [meta-fsl-arm-extra][PATCH 3/5] cm-fx6: update cm-fx6 machine configuration
Quoted 17 lines · Valentin Raevsky
Update cm-fx6 machine configuration:
1) Fix
u_bootand kernel virtual providers' names with respect to the SoC family. This change solves a multiple provider issue that the image build procedure runs into.
2) Add the linux-firmware-sd8787 to the buid.Signed-off-by Valentin Raevsky <[email protected]>--- conf/machine/cm-fx6.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)conf/machine/cm-fx6.conf +0
-0
conf/machine/cm-fx6.conf require conf/machine/include/tune-cortexa9.inc · line 13
Quoted 7 lines
conf/machine/cm-fx6.conf +2
-2@@ -9,8 +9,8 @@ require conf/machine/include/tune-cortexa9.inc SOC_FAMILY = "mx6:mx6dl:mx6q" -PREFERRED_PROVIDER_u-boot = "u-boot-compulab" -PREFERRED_PROVIDER_virtual/kernel = "linux-compulab" +PREFERRED_PROVIDER_u-boot_cm-fx6 = "u-boot-compulab" +PREFERRED_PROVIDER_virtual/kernel_cm-fx6 = "linux-compulab"
This change is not need.
conf/machine/cm-fx6.conf KERNEL_DEVICETREE = "imx6dl-cm-fx6.dtb imx6dl-sbc-fx6.dtb imx6dl-sbc-fx6m.dtb · line 21
Quoted 7 lines
conf/machine/cm-fx6.conf +1
-0UBOOT_MACHINE ?= "cm_fx6_defconfig"@@ -18,4 +18,6 @@ KERNEL_DEVICETREE = "imx6dl-cm-fx6.dtb imx6dl-sbc-fx6.dtb imx6dl-sbc-fx6m.dtb MACHINE_FEATURES += "pci wifi bluetooth alsa bluetooth serial usbhost wifi" +MACHINE_FIRMWARE_append_mx6 += "linux-firmware-sd8787"
Please use:
MACHINE_FIRMWARE += "linux-firmware-sd8787"
As this is easier to read and works for this case as well.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH 4/5 cm-fx6: remove unsupported SoC configuration
In reply to Valentin RaevskyRemove the imx6dl from the SOC_FAMILY list. This configuration leads to a build procedure failure. This recipe can cover all imx6 configurations.
--- conf/machine/cm-fx6.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
conf/machine/cm-fx6.conf +2 -2
@@ -1,13 +1,13 @@ #@TYPE: Machine #@NAME: CompuLab CM-FX6 -#@SOC: i.MX6 Q/DL +#@SOC: i.MX6 Q #@DESCRIPTION: Machine configuration for CompuLab CM-FX6 machines #@MAINTAINER: Valentin Raevsky <[email protected]> require conf/machine/include/imx-base.inc require conf/machine/include/tune-cortexa9.inc -SOC_FAMILY = "mx6:mx6dl:mx6q" +SOC_FAMILY = "mx6:mx6q" PREFERRED_PROVIDER_u-boot_cm-fx6 = "u-boot-compulab" PREFERRED_PROVIDER_virtual/kernel_cm-fx6 = "linux-compulab"
Signature · 1 line
1.9.1
Re: [meta-fsl-arm-extra][PATCH 4/5] cm-fx6: remove unsupported SoC configuration
Quoted 5 lines · Valentin Raevsky
Remove the imx6dl from the
SOC_FAMILYlist. This configuration leads to a build procedure failure. This recipe can cover all imx6 configurations.Signed-off-by Valentin Raevsky <[email protected]>
I did not reproduce the failure this fixes. As such please drop this patch for next revision.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH 5/5 cl-som-imx6ul: add cl-som-imx6ul machine configuration
In reply to Valentin RaevskyAdd cl-som-imx6ul machine configuration: u-boot and kernel. The cl-som-imx6ul is a CompuLab SoM. The board features:
-- Freescale i.MX6ul Cortex-A7.
-- Up to 1GB DDR3.
-- UART
-- LCD display support
-- USB, MMC, eMMC, NAND
-- WiLink8: WiFi and BT
-- Analog audio wm8731
For more details visiit the web-site:
http://www.compulab.co.il/products/computer-on-modules/cl-som-imx6ul-freescale-imx6-ultralite-system-on-module/
--- conf/machine/cl-som-imx6ul.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 conf/machine/cl-som-imx6ul.conf
conf/machine/cl-som-imx6ul.conf new file +23 -0
@@ -0,0 +1,23 @@ +#@TYPE: Machine +#@NAME: CompuLab CM-FX6 +#@SOC: i.MX6 UL +#@DESCRIPTION: Machine configuration for CompuLab CL-SOM-iMX6UL machines +#@MAINTAINER: Valentin Raevsky <[email protected]> + +include conf/machine/include/imx-base.inc +include conf/machine/include/tune-cortexa7.inc +include conf/machine/include/imx6ul-common.inc + +SOC_FAMILY = "mx6ul" + +PREFERRED_PROVIDER_u-boot_cl-som-imx6ul = "u-boot-compulab" +PREFERRED_PROVIDER_virtual/kernel_cl-som-imx6ul = "linux-compulab" + +UBOOT_MACHINE ?= "cl_som_imx6ul_defconfig" + +KERNEL_DEVICETREE = "imx6ul-cl-som-imx6ul.dtb imx6ul-cl-som-imx6ul-wilink.dtb" +KERNEL_DEVICETREE += "imx6ul-sbc-imx6ul.dtb imx6ul-sbc-imx6ul-wilink.dtb" + +MACHINE_FEATURES += "alsa bluetooth serial usbhost wifi" + +SERIAL_CONSOLE = "115200 ttymxc2"
Signature · 1 line
1.9.1
Re: [meta-fsl-arm-extra][PATCH 5/5] cl-som-imx6ul: add cl-som-imx6ul machine configuration
Quoted 25 lines · Valentin Raevsky
Add cl-som-imx6ul machine configuration: u-boot and kernel. The cl-som-imx6ul is a CompuLab SoM. The board features:
-- Freescale i.MX6ul Cortex-A7.
-- Up to 1GB DDR3.
-- UART
-- LCD display support
-- USB, MMC, eMMC, NAND
-- WiLink8: WiFi and BT
-- Analog audio wm8731For more details visiit the web-site:
http://www.compulab.co.il/products/computer-on-modules/cl-som-imx6ul-freescale-imx6-ultralite-system-on-module/Signed-off-by Valentin Raevsky <[email protected]>--- conf/machine/cl-som-imx6ul.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 conf/machine/cl-som-imx6ul.confconf/machine/cl-som-imx6ul.conf new file +0
-0
conf/machine/cl-som-imx6ul.conf line 2
Quoted 2 lines
conf/machine/cl-som-imx6ul.conf new file +2
-0@@ -0,0 +1,23 @@ +#@TYPE: Machine +#@NAME: CompuLab CM-FX6
Uh?!
conf/machine/cl-som-imx6ul.conf line 9
Quoted 7 lines
conf/machine/cl-som-imx6ul.conf new file +7
-0+#@SOC: i.MX6 UL +#@DESCRIPTION: Machine configuration for CompuLab CL-SOM-iMX6UL machines +#@MAINTAINER: Valentin Raevsky <[email protected]> + +include conf/machine/include/imx-base.inc +include conf/machine/include/tune-cortexa7.inc +include conf/machine/include/imx6ul-common.inc
In which layer has this been tested. We don't have this common.inc file.
conf/machine/cl-som-imx6ul.conf line 14
Quoted 5 lines
conf/machine/cl-som-imx6ul.conf new file +5
-0+ +SOC_FAMILY = "mx6ul" + +PREFERRED_PROVIDER_u-boot_cl-som-imx6ul = "u-boot-compulab" +PREFERRED_PROVIDER_virtual/kernel_cl-som-imx6ul = "linux-compulab"
Drop the _... for the override.
conf/machine/cl-som-imx6ul.conf line 19
Quoted 4 lines
conf/machine/cl-som-imx6ul.conf new file +4
-0+UBOOT_MACHINE ?= "cl_som_imx6ul_defconfig" + +KERNEL_DEVICETREE = "imx6ul-cl-som-imx6ul.dtb imx6ul-cl-som-imx6ul-wilink.dtb" +KERNEL_DEVICETREE += "imx6ul-sbc-imx6ul.dtb imx6ul-sbc-imx6ul-wilink.dtb"
Use a single setting but split it across multiple lines using \
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750