[U-Boot] [UBOOT PATCH v2 1/2] eeprom: Enabled eeprom u-boot headers in defconfig
Michal Simek
michal.simek at xilinx.com
Tue Mar 6 13:33:43 UTC 2018
On 1.3.2018 16:37, Michal Simek wrote:
> On 28.2.2018 10:30, Vipul Kumar wrote:
>> This patch enabled eeprom related u-boot headers in
>> the respective defconfig and removed CONFIG_ZYNQ_EEPROM.
>>
>> Signed-off-by: Vipul Kumar <vipulk at xilinx.com>
>> Signed-off-by: Siva Durga Prasad Paladugu <sivadur at xilinx.com>
>> ---
>> - Changes in v2:
>> - Removed CONFIG_ZYNQ_EEPROM for zynqmp.
>> - Enabled configs defined under CONFIG_ZYNQ_EEPROM for zynq
>> in defconfig and removed CONFIG_ZYNQ_EEPROM.
>> - Branch: u-boot-microblaze/kconfig
>> ---
>> configs/zynq_zc702_defconfig | 6 ++++++
>> configs/zynq_zc706_defconfig | 6 ++++++
>> include/configs/xilinx_zynqmp_ep.h | 1 -
>> include/configs/zynq-common.h | 9 ---------
>> include/configs/zynq_zc70x.h | 2 --
>> 5 files changed, 12 insertions(+), 12 deletions(-)
>>
>> diff --git a/configs/zynq_zc702_defconfig b/configs/zynq_zc702_defconfig
>> index 8e8b800..2970ef8 100644
>> --- a/configs/zynq_zc702_defconfig
>> +++ b/configs/zynq_zc702_defconfig
>> @@ -43,6 +43,12 @@ CONFIG_FPGA_ZYNQPL=y
>> CONFIG_DM_GPIO=y
>> CONFIG_SYS_I2C_ZYNQ=y
>> CONFIG_ZYNQ_I2C0=y
>> +CONFIG_MISC=y
>> +CONFIG_I2C_EEPROM=y
>> +CONFIG_SYS_I2C_EEPROM_ADDR=0x54
>> +CONFIG_SYS_EEPROM_SIZE=1024
>> +CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=4
>> +CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=5
>> CONFIG_MMC_SDHCI=y
>> CONFIG_MMC_SDHCI_ZYNQ=y
>> CONFIG_SPI_FLASH=y
>> diff --git a/configs/zynq_zc706_defconfig b/configs/zynq_zc706_defconfig
>> index 8f83d17..b51567c 100644
>> --- a/configs/zynq_zc706_defconfig
>> +++ b/configs/zynq_zc706_defconfig
>> @@ -43,6 +43,12 @@ CONFIG_FPGA_ZYNQPL=y
>> CONFIG_DM_GPIO=y
>> CONFIG_SYS_I2C_ZYNQ=y
>> CONFIG_ZYNQ_I2C0=y
>> +CONFIG_MISC=y
>> +CONFIG_I2C_EEPROM=y
>> +CONFIG_SYS_I2C_EEPROM_ADDR=0x54
>> +CONFIG_SYS_EEPROM_SIZE=1024
>> +CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=4
>> +CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=5
>> CONFIG_MMC_SDHCI=y
>> CONFIG_MMC_SDHCI_ZYNQ=y
>> CONFIG_SPI_FLASH=y
>> diff --git a/include/configs/xilinx_zynqmp_ep.h b/include/configs/xilinx_zynqmp_ep.h
>> index 3a572b7..6c48e15 100644
>> --- a/include/configs/xilinx_zynqmp_ep.h
>> +++ b/include/configs/xilinx_zynqmp_ep.h
>> @@ -15,7 +15,6 @@
>>
>> #define CONFIG_ZYNQ_SDHCI_MAX_FREQ 52000000
>> #define CONFIG_ZYNQ_SDHCI_MIN_FREQ (CONFIG_ZYNQ_SDHCI_MAX_FREQ >> 9)
>> -#define CONFIG_ZYNQ_EEPROM
>> #define CONFIG_ZYNQMP_XHCI_LIST {ZYNQMP_USB0_XHCI_BASEADDR, \
>> ZYNQMP_USB1_XHCI_BASEADDR}
>>
>> diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
>> index 0ebb66b..4622d39 100644
>> --- a/include/configs/zynq-common.h
>> +++ b/include/configs/zynq-common.h
>> @@ -122,15 +122,6 @@
>> # define CONFIG_SYS_I2C
>> #endif
>>
>> -/* EEPROM */
>> -#ifdef CONFIG_ZYNQ_EEPROM
>> -# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
>> -# define CONFIG_SYS_I2C_EEPROM_ADDR 0x54
>> -# define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4
>> -# define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
>> -# define CONFIG_SYS_EEPROM_SIZE 1024 /* Bytes */
>> -#endif
>> -
>> /* Total Size of Environment Sector */
>> #define CONFIG_ENV_SIZE (128 << 10)
>>
>> diff --git a/include/configs/zynq_zc70x.h b/include/configs/zynq_zc70x.h
>> index 720f953..715ea80 100644
>> --- a/include/configs/zynq_zc70x.h
>> +++ b/include/configs/zynq_zc70x.h
>> @@ -10,8 +10,6 @@
>> #ifndef __CONFIG_ZYNQ_ZC70X_H
>> #define __CONFIG_ZYNQ_ZC70X_H
>>
>> -#define CONFIG_ZYNQ_EEPROM
>> -
>> #include <configs/zynq-common.h>
>>
>> #endif /* __CONFIG_ZYNQ_ZC70X_H */
>>
>
> Please take a look at this again. I can compile it on zc706.
This should be I can't compile it.
Thanks,
Michal
More information about the U-Boot
mailing list