]> git.sur5r.net Git - u-boot/commitdiff
i2c: Added Kconfig support for CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET
authorVipul Kumar <vipul.kumar@xilinx.com>
Fri, 16 Feb 2018 13:37:21 +0000 (19:07 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 1 Mar 2018 07:03:01 +0000 (08:03 +0100)
This patch added Kconfig support for CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET
and enabled it in respective defconfig.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
configs/syzygy_hub_defconfig
configs/xilinx_zynqmp_zcu102_rev1_0_defconfig
configs/xilinx_zynqmp_zcu102_revA_defconfig
configs/xilinx_zynqmp_zcu102_revB_defconfig
configs/zynq_zybo_defconfig
drivers/misc/Kconfig
include/configs/syzygy_hub.h
include/configs/xilinx_zynqmp_zcu102.h
include/configs/zynq_zybo.h

index 019088410d9f956978468157ac7fe7d705c19eb8..e611498bc33889ddd347c560557e58b636705f57 100644 (file)
@@ -36,6 +36,7 @@ CONFIG_FPGA_XILINX=y
 CONFIG_FPGA_ZYNQPL=y
 CONFIG_DM_GPIO=y
 CONFIG_SYS_I2C_ZYNQ=y
+CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0xFA
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ZYNQ=y
 CONFIG_PHY_MARVELL=y
index 12a0d645aca089e476163b34364ab8f739cca9e7..02cd71038f48146d76eecfca6276c9f3bbfe31a5 100644 (file)
@@ -55,6 +55,7 @@ CONFIG_DM_GPIO=y
 CONFIG_CMD_PCA953X=y
 CONFIG_SYS_I2C_ZYNQ=y
 CONFIG_MISC=y
+CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ZYNQ=y
index b6e8a0e01c39d8e2a112f610ad10058e25d9acc3..9176e8e702a5aa20fecf6a86649b90c7dffbc3a0 100644 (file)
@@ -55,6 +55,7 @@ CONFIG_DM_GPIO=y
 CONFIG_CMD_PCA953X=y
 CONFIG_SYS_I2C_ZYNQ=y
 CONFIG_MISC=y
+CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ZYNQ=y
index c5bc4cdb632ff768db3f58a749401fed73f825e0..3c2a865e302b3967352acced63d6dd629d225219 100644 (file)
@@ -55,6 +55,7 @@ CONFIG_DM_GPIO=y
 CONFIG_CMD_PCA953X=y
 CONFIG_SYS_I2C_ZYNQ=y
 CONFIG_MISC=y
+CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ZYNQ=y
index 57b39a282f8dd0c37e17057d8d9ec111a3d9d81c..202bf724f3af53c33fe71b89f289d6d97e6a60dc 100644 (file)
@@ -41,6 +41,7 @@ CONFIG_FPGA_XILINX=y
 CONFIG_FPGA_ZYNQPL=y
 CONFIG_DM_GPIO=y
 CONFIG_SYS_I2C_ZYNQ=y
+CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0xFA
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ZYNQ=y
 CONFIG_SPI_FLASH=y
index f1c15cb9fa4060eb62a1606930eb5f6794e63509..d774569cbc2839151fd3aa75afd1fffcac8630f9 100644 (file)
@@ -214,6 +214,12 @@ config SPL_I2C_EEPROM
          This option is an SPL-variant of the I2C_EEPROM option.
          See the help of I2C_EEPROM for details.
 
+config ZYNQ_GEM_I2C_MAC_OFFSET
+       hex "Set the I2C MAC offset"
+       default 0x0
+       help
+         Set the MAC offset for i2C.
+
 if I2C_EEPROM
 
 config SYS_I2C_EEPROM_ADDR
index 4147b45ef0eb81dd604163f388b8bc25d39500e8..19e201f9555a32aa983aa79856dc74a71f392bfe 100644 (file)
@@ -14,7 +14,6 @@
 #define CONFIG_ZYNQ_I2C1
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 #define CONFIG_ZYNQ_GEM_EEPROM_ADDR    0x57
-#define CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET 0xFA
 
 #define CONFIG_EXTRA_ENV_SETTINGS       \
        "fit_image=fit.itb\0"           \
index 88819c6cc134b98bb58750be28d1c93dc21f75ee..0095f61ea3b95403cb73dee26cabed28c1d810ed 100644 (file)
@@ -43,7 +43,6 @@
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 #define CONFIG_ZYNQ_EEPROM_BUS         5
 #define CONFIG_ZYNQ_GEM_EEPROM_ADDR    0x54
-#define CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET 0x20
 
 #include <configs/xilinx_zynqmp.h>
 
index 808967cee331dd78380dc61e60f72c6643ea9e36..a589c92d973f2b806ab629ed031f7ff2f66d8735 100644 (file)
@@ -15,7 +15,6 @@
 #define CONFIG_ZYNQ_I2C1
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 #define CONFIG_ZYNQ_GEM_EEPROM_ADDR    0x50
-#define CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET 0xFA
 #define CONFIG_DISPLAY
 #define CONFIG_I2C_EDID