From 42d06a3d335edbd5c3d38faa30c78e1aea7202ae Mon Sep 17 00:00:00 2001 From: David Mondou <david.mondou@rigado.com> Date: Tue, 15 May 2018 13:56:26 -0700 Subject: [PATCH] Fix 300B i2c and u-boot multiple definition warning message --- ...0012-Fix_multiple_definition_warning.patch | 14 ++++++++++++++ recipes-bsp/u-boot/u-boot-vesta_2016.03.bb | 1 + .../linux-fslc-imx/device-tree/vesta-300B.dts | 19 +++++++++++++------ 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 recipes-bsp/u-boot/files/0012-Fix_multiple_definition_warning.patch diff --git a/recipes-bsp/u-boot/files/0012-Fix_multiple_definition_warning.patch b/recipes-bsp/u-boot/files/0012-Fix_multiple_definition_warning.patch new file mode 100644 index 0000000..fffc636 --- /dev/null +++ b/recipes-bsp/u-boot/files/0012-Fix_multiple_definition_warning.patch @@ -0,0 +1,14 @@ +diff --git a/include/configs/vesta.h b/include/configs/vesta.h +index 9be4905..66fce27 100644 +--- a/include/configs/vesta.h ++++ b/include/configs/vesta.h +@@ -17,6 +17,9 @@ + /* uncomment for PLUGIN mode support */ + #define CONFIG_USE_PLUGIN + ++#ifdef CONFIG_BOOTDELAY ++#undef CONFIG_BOOTDELAY ++#endif + #define CONFIG_BOOTDELAY 0 + #define CONFIG_RESET_TO_RETRY + #define CONFIG_BOOT_RETRY_TIME 5 diff --git a/recipes-bsp/u-boot/u-boot-vesta_2016.03.bb b/recipes-bsp/u-boot/u-boot-vesta_2016.03.bb index d1dc2e1..adc8a6d 100644 --- a/recipes-bsp/u-boot/u-boot-vesta_2016.03.bb +++ b/recipes-bsp/u-boot/u-boot-vesta_2016.03.bb @@ -34,6 +34,7 @@ SRC_URI += "file://0008-Added-support-for-SPI-flash-chips-MACRONIX-SPANSION.patc SRC_URI += "file://0009-Added-defconfig-for-boards-with-qspi-flash.patch" SRC_URI += "file://0010-BugFix-Added-board-id-of-300B.patch" SRC_URI += "file://0011-Enable_retry_Disable_bootdelay.patch" +SRC_URI += "file://0012-Fix_multiple_definition_warning.patch" SRC_URI += "file://qspi-header" S = "${WORKDIR}/git" diff --git a/recipes-kernel/linux/linux-fslc-imx/device-tree/vesta-300B.dts b/recipes-kernel/linux/linux-fslc-imx/device-tree/vesta-300B.dts index 61cd1ad..eb41cc8 100644 --- a/recipes-kernel/linux/linux-fslc-imx/device-tree/vesta-300B.dts +++ b/recipes-kernel/linux/linux-fslc-imx/device-tree/vesta-300B.dts @@ -136,6 +136,13 @@ }; }; +&i2c4 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c4>; + status = "okay"; +}; + &adc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_adc1>; @@ -213,22 +220,22 @@ pinctrl_i2c1: i2c1grp { fsl,pins = < - MX6UL_PAD_CSI_PIXCLK__I2C1_SCL 0x00001820 - MX6UL_PAD_GPIO1_IO03__I2C1_SDA 0x00001820 + MX6UL_PAD_CSI_PIXCLK__I2C1_SCL 0x40001820 + MX6UL_PAD_GPIO1_IO03__I2C1_SDA 0x40001820 >; }; pinctrl_i2c2: i2c2grp { fsl,pins = < - MX6UL_PAD_CSI_HSYNC__I2C2_SCL 0x00001820 - MX6UL_PAD_CSI_VSYNC__I2C2_SDA 0x00001820 + MX6UL_PAD_CSI_HSYNC__I2C2_SCL 0x40001820 + MX6UL_PAD_CSI_VSYNC__I2C2_SDA 0x40001820 >; }; pinctrl_i2c4: i2c4grp { fsl,pins = < - MX6UL_PAD_LCD_DATA03__I2C4_SCL 0x00001820 - MX6UL_PAD_LCD_DATA02__I2C4_SDA 0x00001820 + MX6UL_PAD_LCD_DATA03__I2C4_SCL 0x40001820 + MX6UL_PAD_LCD_DATA02__I2C4_SDA 0x40001820 >; }; -- GitLab