i2c: Remove old I2C support
Subsystems (4)
v2 cover i2c: Remove old I2C support
We have about 6600 CONFIG options to convert to Kconfig at the time of writing and our target is to complete work by the end of the year. We have no hope of doing this unless we adopt a somewhat more agressive approach to dropping old boards and options.
There are a very large number of deprecated or very old options. It does not make sense to convert these to Kconfig just to carry the debt for another few years. We should remove these options.
Rather than completely dropping boards, one idea is to remove the parts of their support which have not been migrated. This was done with some Samsung boards recently, and it provided the maintainers with enough time to come in and make the changes.
CONFIG_I2C_SOFT and CONFIG_I2C_HARD are very old. This series removes them. Boards which rely on these options for I2C support lose some of their functionality. To regain it they would need to be migrated to driver model.
Changes in v2:
- Add new patch to adjust omap boards to not need CONFIG_I2C_HARD
- Drop changes to omap board.c files
- Rebase to master
Simon Glass (12):
i2c: Drop use of CONFIG_I2C_HARD
i2c: powerpc: Remove use of CONFIG_HARD_I2C
i2c: cm5200: Drop use of CONFIG_I2C_HARD
i2c: pdm360ng: Drop use of CONFIG_I2C_HARD
i2c: keymile: Drop use of CONFIG_I2C_HARD
i2c: mxc_i2c: Drop use of CONFIG_I2C_HARD
i2c: omap: Modify code to work without CONFIG_I2C_HARD
i2c: Drop use of CONFIG_I2C_HARD
i2c: README: Drop CONFIG_SYS_I2C_INIT_MPC5XXX
i2c: Drop CONFIG_SYS_I2C_BOARD_LATE_INIT
Drop CONFIG_I2CFAST
Drop use of CONFIG_I2C_SOFT
README | 64 +-- arch/arm/include/asm/arch-armada100/config.h | 12 - arch/powerpc/cpu/mpc512x/Makefile | 1 - arch/powerpc/cpu/mpc512x/i2c.c | 386 -------------- arch/powerpc/cpu/mpc5xxx/Makefile | 1 - arch/powerpc/cpu/mpc5xxx/i2c.c | 456 ----------------- arch/powerpc/cpu/mpc8260/Makefile | 2 +- arch/powerpc/cpu/mpc8260/commproc.c | 4 - arch/powerpc/cpu/mpc8260/i2c.c | 741 --------------------------- arch/powerpc/cpu/mpc8xx/Makefile | 1 - arch/powerpc/cpu/mpc8xx/i2c.c | 672 ------------------------ board/alphaproject/ap_sh4a_4a/ap_sh4a_4a.c | 12 +- board/cm5200/cm5200.c | 36 +- board/cm5200/cmd_cm5200.c | 32 +- board/davedenx/aria/aria.c | 3 - board/esd/mecp5123/mecp5123.c | 12 +- board/freescale/m52277evb/README | 1 - board/freescale/m53017evb/README | 1 - board/freescale/m5373evb/README | 1 - board/freescale/m54455evb/README | 1 - board/freescale/m547xevb/README | 1 - board/freescale/mpc5121ads/mpc5121ads.c | 21 - board/ifm/ac14xx/ac14xx.c | 53 +- board/keymile/km82xx/km82xx.c | 5 - board/keymile/km_arm/km_arm.c | 4 - board/pdm360ng/pdm360ng.c | 30 -- board/renesas/r0p7734/r0p7734.c | 12 +- board/ti/am335x/board.c | 3 +- board/ti/am43xx/board.c | 3 +- board/tqc/tqm5200/tqm5200.c | 18 +- cmd/eeprom.c | 2 - common/board_f.c | 4 +- common/board_r.c | 17 - common/stdio.c | 5 +- configs/MiniFAP_defconfig | 2 - configs/O2D300_defconfig | 1 - configs/O2DNT2_RAMBOOT_defconfig | 1 - configs/O2DNT2_defconfig | 1 - configs/O2D_defconfig | 1 - configs/O2I_defconfig | 1 - configs/O2MNT_O2M110_defconfig | 1 - configs/O2MNT_O2M112_defconfig | 1 - configs/O2MNT_O2M113_defconfig | 1 - configs/O2MNT_defconfig | 1 - configs/O3DNT_defconfig | 1 - configs/TQM5200S_HIGHBOOT_defconfig | 2 - configs/TQM5200S_defconfig | 2 - configs/TQM5200_B_HIGHBOOT_defconfig | 2 - configs/TQM5200_B_defconfig | 2 - configs/TQM5200_STK100_defconfig | 2 - configs/TQM5200_defconfig | 2 - configs/a4m072_defconfig | 1 - configs/ac14xx_defconfig | 1 - configs/ap_sh4a_4a_defconfig | 1 - configs/apx4devkit_defconfig | 2 - configs/aria_defconfig | 1 - configs/aspenite_defconfig | 1 - configs/cam5200_defconfig | 2 - configs/cam5200_niosflash_defconfig | 2 - configs/charon_defconfig | 1 - configs/cm5200_defconfig | 1 - configs/digsy_mtc_RAMBOOT_defconfig | 2 - configs/digsy_mtc_defconfig | 2 - configs/digsy_mtc_rev5_RAMBOOT_defconfig | 2 - configs/digsy_mtc_rev5_defconfig | 2 - configs/fo300_defconfig | 2 - configs/gplugd_defconfig | 1 - configs/ipek01_defconfig | 2 - configs/m28evk_defconfig | 1 - configs/mecp5123_defconfig | 2 - configs/motionpro_defconfig | 2 - configs/mpc5121ads_defconfig | 2 - configs/mpc5121ads_rev2_defconfig | 2 - configs/pcm030_LOWBOOT_defconfig | 2 - configs/pcm030_defconfig | 2 - configs/pdm360ng_defconfig | 2 - configs/r0p7734_defconfig | 1 - configs/v38b_defconfig | 2 - drivers/i2c/fsl_i2c.c | 9 - drivers/i2c/fti2c010.c | 9 - drivers/i2c/mxc_i2c.c | 4 - include/common.h | 10 + include/configs/M54418TWR.h | 1 - include/configs/PATI.h | 7 +- include/configs/TQM5200.h | 64 +-- include/configs/a4m072.h | 20 - include/configs/ac14xx.h | 18 - include/configs/am335x_evm.h | 5 - include/configs/am43xx_evm.h | 6 - include/configs/ap_sh4a_4a.h | 14 - include/configs/apx4devkit.h | 6 - include/configs/aria.h | 21 - include/configs/axs10x.h | 2 +- include/configs/cm5200.h | 12 +- include/configs/digsy_mtc.h | 31 -- include/configs/ids8313.h | 1 - include/configs/ipek01.h | 23 - include/configs/jupiter.h | 19 - include/configs/m28evk.h | 6 - include/configs/manroland/mpc5200-common.h | 176 +++++++ include/configs/mecp5123.h | 18 +- include/configs/motionpro.h | 22 - include/configs/mpc5121ads.h | 18 - include/configs/mxs.h | 10 - include/configs/o2dnt-common.h | 22 - include/configs/pcm030.h | 31 +- include/configs/pdm360ng.h | 30 -- include/configs/r0p7734.h | 14 - include/configs/s32v234evb.h | 10 - include/configs/ti_armv7_keystone2.h | 1 - include/configs/v38b.h | 21 - include/i2c.h | 3 - scripts/config_whitelist.txt | 3 - 113 files changed, 223 insertions(+), 3129 deletions(-) delete mode 100644 arch/powerpc/cpu/mpc512x/i2c.c delete mode 100644 arch/powerpc/cpu/mpc5xxx/i2c.c delete mode 100644 arch/powerpc/cpu/mpc8260/i2c.c delete mode 100644 arch/powerpc/cpu/mpc8xx/i2c.c create mode 100644 include/configs/manroland/mpc5200-common.h
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 1/12 i2c: Drop use of CONFIG_I2C_HARD
This option is pretty old. It predates CONFIG_SYS_I2C which is itself deprecated in favour of driver model. Disable it for all boards.
Also drop I2C options which depend on this.
---
Changes in v2: None
README | 17 +-- arch/arm/include/asm/arch-armada100/config.h | 12 -- board/alphaproject/ap_sh4a_4a/ap_sh4a_4a.c | 12 +- board/cm5200/cm5200.c | 32 ++--- board/cm5200/cmd_cm5200.c | 32 +---- board/davedenx/aria/aria.c | 3 - board/esd/mecp5123/mecp5123.c | 12 +- board/freescale/mpc5121ads/mpc5121ads.c | 21 ---- board/ifm/ac14xx/ac14xx.c | 53 +------- board/renesas/r0p7734/r0p7734.c | 12 +- board/tqc/tqm5200/tqm5200.c | 18 +-- configs/MiniFAP_defconfig | 2 - configs/O2D300_defconfig | 1 - configs/O2DNT2_RAMBOOT_defconfig | 1 - configs/O2DNT2_defconfig | 1 - configs/O2D_defconfig | 1 - configs/O2I_defconfig | 1 - configs/O2MNT_O2M110_defconfig | 1 - configs/O2MNT_O2M112_defconfig | 1 - configs/O2MNT_O2M113_defconfig | 1 - configs/O2MNT_defconfig | 1 - configs/O3DNT_defconfig | 1 - configs/TQM5200S_HIGHBOOT_defconfig | 2 - configs/TQM5200S_defconfig | 2 - configs/TQM5200_B_HIGHBOOT_defconfig | 2 - configs/TQM5200_B_defconfig | 2 - configs/TQM5200_STK100_defconfig | 2 - configs/TQM5200_defconfig | 2 - configs/a4m072_defconfig | 1 - configs/ac14xx_defconfig | 1 - configs/ap_sh4a_4a_defconfig | 1 - configs/apx4devkit_defconfig | 2 - configs/aria_defconfig | 1 - configs/aspenite_defconfig | 1 - configs/cam5200_defconfig | 2 - configs/cam5200_niosflash_defconfig | 2 - configs/charon_defconfig | 1 - configs/cm5200_defconfig | 1 - configs/digsy_mtc_RAMBOOT_defconfig | 2 - configs/digsy_mtc_defconfig | 2 - configs/digsy_mtc_rev5_RAMBOOT_defconfig | 2 - configs/digsy_mtc_rev5_defconfig | 2 - configs/fo300_defconfig | 2 - configs/gplugd_defconfig | 1 - configs/ipek01_defconfig | 2 - configs/m28evk_defconfig | 1 - configs/mecp5123_defconfig | 2 - configs/motionpro_defconfig | 2 - configs/mpc5121ads_defconfig | 2 - configs/mpc5121ads_rev2_defconfig | 2 - configs/pcm030_LOWBOOT_defconfig | 2 - configs/pcm030_defconfig | 2 - configs/pdm360ng_defconfig | 2 - configs/r0p7734_defconfig | 1 - configs/v38b_defconfig | 2 - include/common.h | 10 ++ include/configs/M54418TWR.h | 1 - include/configs/TQM5200.h | 64 +--------- include/configs/a4m072.h | 20 --- include/configs/ac14xx.h | 18 --- include/configs/ap_sh4a_4a.h | 14 --- include/configs/apx4devkit.h | 6 - include/configs/aria.h | 21 ---- include/configs/axs10x.h | 2 +- include/configs/cm5200.h | 12 +- include/configs/digsy_mtc.h | 31 ----- include/configs/ids8313.h | 1 - include/configs/ipek01.h | 23 ---- include/configs/jupiter.h | 19 --- include/configs/m28evk.h | 6 - include/configs/manroland/mpc5200-common.h | 176 +++++++++++++++++++++++++++ include/configs/mecp5123.h | 18 +-- include/configs/motionpro.h | 22 ---- include/configs/mpc5121ads.h | 18 --- include/configs/mxs.h | 10 -- include/configs/o2dnt-common.h | 22 ---- include/configs/pcm030.h | 31 +---- include/configs/pdm360ng.h | 30 ----- include/configs/r0p7734.h | 14 --- include/configs/s32v234evb.h | 10 -- include/configs/v38b.h | 21 ---- 81 files changed, 211 insertions(+), 701 deletions(-) create mode 100644 include/configs/manroland/mpc5200-common.h
README +2 -15
@@ -2213,22 +2213,9 @@ The following options need to be configured: - approved multibus support - better i2c mux support - ** Please consider updating your I2C driver now. ** + ** CONFIG_HARD_I2C is now being removed ** - These enable legacy I2C serial bus commands. Defining - CONFIG_HARD_I2C will include the appropriate I2C driver - for the selected CPU. - - This will allow you to use i2c commands at the u-boot - command line (as long as you set CONFIG_CMD_I2C in - CONFIG_COMMANDS) and communicate with i2c based realtime - clock chips. See common/cmd_i2c.c for a description of the - command line interface. - - CONFIG_HARD_I2C selects a hardware I2C controller. - - There are several other quantities that must also be - defined when you define CONFIG_HARD_I2C. +----under removal: In both cases you will need to define CONFIG_SYS_I2C_SPEED to be the frequency (in Hz) at which you wish your i2c bus
arch/arm/include/asm/arch-armada100/config.h +0 -12
@@ -24,17 +24,5 @@#define MV_UART_CONSOLE_BASE ARMD1_UART1_BASE#define CONFIG_SYS_NS16550_IER (1 << 6)/* Bit 6 in UART_IER register represents UART Unit Enable */ -/* -* I2C definition -*/ -#ifdef CONFIG_CMD_I2C -#define CONFIG_I2C_MV 1 -#define CONFIG_MV_I2C_NUM 2 -#define CONFIG_I2C_MULTI_BUS 1 -#define CONFIG_MV_I2C_REG {0xd4011000, 0xd4025000} -#define CONFIG_HARD_I2C 1 -#define CONFIG_SYS_I2C_SPEED 0 -#define CONFIG_SYS_I2C_SLAVE 0xfe -#endif #endif /* _ARMD1_CONFIG_H */
board/alphaproject/ap_sh4a_4a/ap_sh4a_4a.c +1 -11
@@ -156,17 +156,7 @@ int board_init(void)int board_late_init (void ) { -u8 mac[6 ]; - -/* Read Mac Address and set*/ -i2c_init (CONFIG_SYS_I2C_SPEED ,CONFIG_SYS_I2C_SLAVE ); -i2c_set_bus_num (CONFIG_SYS_I2C_MODULE ); - -/* Read MAC address */ -i2c_read (0x50 ,0x0 ,0 , mac,6 ); - -if (is_valid_ethaddr (mac)) -eth_setenv_enetaddr ("ethaddr" , mac); +printf ("Cannot use I2C to get MAC address\n" );return 0 ; }
board/cm5200/cm5200.c +8 -24
@@ -161,14 +161,7 @@ int dram_init(void)*/ static void read_hw_id (hw_id_t hw_id) { -int i; -for (i =0 ; i <HW_ID_ELEM_COUNT ; ++i) -if (i2c_read (CONFIG_SYS_I2C_EEPROM , - hw_id_format[i].offset, -2 , - (uchar *)&hw_id[i][0 ], - hw_id_format[i].length) !=0 ) -printf ("ERROR: can't read HW ID from EEPROM\n" ); +printf ("ERROR: can't read HW ID from EEPROM\n" ); }
@@ -221,7 +214,7 @@ static void compose_module_name(hw_id_t hw_id, char *buf)strcat (buf, tmp); } - +#if defined(CONFIG_HARD_I2C ) || defined(CONFIG_SYS_I2C_SOFT )/* * Compose string with hostname. * buf is assumed to have enough space, and be null-terminated.
@@ -237,7 +230,7 @@ static void compose_hostname(hw_id_t hw_id, char *buf) *p = tolower(*p); } - +#endif #ifdef CONFIG_OF_BOARD_SETUP /*
@@ -270,15 +263,6 @@ int checkboard(void)hw_id_t hw_id_tmp;char module_name_tmp[MODULE_NAME_MAXLEN ] ="" ; -/* -* We need I2C to access HW ID data from EEPROM, so we call i2c_init() -* here despite the fact that it will be called again later on. We -* also use a little trick to silence I2C-related output. -*/ - gd->flags |=GD_FLG_SILENT ; -i2c_init (CONFIG_SYS_I2C_SPEED ,CONFIG_SYS_I2C_SLAVE ); - gd->flags &= ~GD_FLG_SILENT ; -read_hw_id (hw_id_tmp);identify_module (hw_id_tmp);/* this sets gd->board_type */ compose_module_name (hw_id_tmp, module_name_tmp);
@@ -334,16 +318,16 @@ int misc_init_r(void)" device at address %02X:%04X\n" ,CONFIG_SYS_I2C_EEPROM , CONFIG_MAC_OFFSET); } + hostname[0 ] =0x00 ; +/* set the hostname appropriate to the module we're running on */ +compose_hostname (hw_id, hostname); +setenv ("hostname" , hostname); +#endif /* defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT) */ if (!getenv ("ethaddr" ))printf (LOG_PREFIX "MAC address not set, networking is not " "operational\n" ); -/* set the hostname appropriate to the module we're running on */ - hostname[0 ] =0x00 ; -compose_hostname (hw_id, hostname); -setenv ("hostname" , hostname); -return 0 ; }#endif /* CONFIG_MISC_INIT_R */
board/cm5200/cmd_cm5200.c +1 -31
@@ -13,34 +13,6 @@#ifdef CONFIG_CMD_BSP -static int do_i2c_test (char *const argv[]) -{ -unsigned char temp, temp1; - -printf ("Starting I2C Test\n" -"Please set Jumper:\nI2C SDA 2-3\nI2C SCL 2-3\n\n" -"Please press any key to start\n\n" ); -getc (); - - temp =0xf0 ;/* set io 0-4 as output */ -i2c_write (CONFIG_SYS_I2C_IO ,3 ,1 , (uchar *)&temp,1 ); - -printf ("Press I2C4-7. LED I2C0-3 should have the same state\n\n" -"Press any key to stop\n\n" ); - -while (!tstc ()) { -i2c_read (CONFIG_SYS_I2C_IO ,0 ,1 , (uchar *)&temp,1 ); - temp1 = (temp >>4 ) &0x03 ; - temp1 |= (temp >>3 ) &0x08 ;/* S302 -> LED303 */ - temp1 |= (temp >>5 ) &0x04 ;/* S303 -> LED302 */ - temp = temp1; -i2c_write (CONFIG_SYS_I2C_IO ,1 ,1 , (uchar *)&temp,1 ); - } -getc (); - -return 0 ; -} -static int do_usb_test (char *const argv[]) {int i;
@@ -387,9 +359,7 @@ static int cmd_fkt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])switch (argc) {case 2 : -if (strncmp (argv[1 ],"i2c" ,3 ) ==0 ) - rcode =do_i2c_test (argv); -else if (strncmp (argv[1 ],"led" ,3 ) ==0 ) +if (strncmp (argv[1 ],"led" ,3 ) ==0 ) rcode =do_led_test (argv);else if (strncmp (argv[1 ],"usb" ,3 ) ==0 ) rcode =do_usb_test (argv);
board/davedenx/aria/aria.c +0 -3
@@ -29,9 +29,6 @@ int misc_init_r(void) {u32 tmp; -/* we use I2C-2 for on-board eeprom */ -i2c_set_bus_num (2 ); - tmp =in_be32 ((u32 *)CONFIG_SYS_ARIA_FPGA_BASE ); printf("FPGA: %u-%u.%u.%u\n", (tmp & 0xFF000000) >> 24,
board/esd/mecp5123/mecp5123.c +1 -11
@@ -18,17 +18,7 @@ DECLARE_GLOBAL_DATA_PTR;int eeprom_write_enable (unsigned dev_addr,int state) { -volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR ; - -if (dev_addr !=CONFIG_SYS_I2C_EEPROM_ADDR ) -return -1 ; - -if (state ==0 ) -setbits_be32 (&im->gpio.gpdat,0x00100000 ); -else -clrbits_be32 (&im->gpio.gpdat,0x00100000 ); - -return 0 ; +return -ENOSYS ; }int board_early_init_f (void )
board/freescale/mpc5121ads/mpc5121ads.c +0 -21
@@ -174,27 +174,6 @@ int dram_init(void)int misc_init_r (void ) { -u8 tmp_val; - -/* Using this for DIU init before the driver in linux takes over -* Enable the TFP410 Encoder (I2C address 0x38) -*/ - -i2c_set_bus_num (2 ); - tmp_val =0xBF ; -i2c_write (0x38 ,0x08 ,1 , &tmp_val,sizeof (tmp_val)); -/* Verify if enabled */ - tmp_val =0 ; -i2c_read (0x38 ,0x08 ,1 , &tmp_val,sizeof (tmp_val)); -debug ("DVI Encoder Read: 0x%02x\n" , tmp_val); - - tmp_val =0x10 ; -i2c_write (0x38 ,0x0A ,1 , &tmp_val,sizeof (tmp_val)); -/* Verify if enabled */ - tmp_val =0 ; -i2c_read (0x38 ,0x0A ,1 , &tmp_val,sizeof (tmp_val)); -debug ("DVI Encoder Read: 0x%02x\n" , tmp_val); -return 0 ; }
board/ifm/ac14xx/ac14xx.c +1 -52
77 lines not on this page · raw message
board/renesas/r0p7734/r0p7734.c +1 -11
@@ -44,17 +44,7 @@ int board_init(void)int board_late_init (void ) { -u8 mac[6 ]; - -/* Read Mac Address and set*/ -i2c_init (CONFIG_SYS_I2C_SPEED ,CONFIG_SYS_I2C_SLAVE ); -i2c_set_bus_num (CONFIG_SYS_I2C_MODULE ); - -/* Read MAC address */ -i2c_read (0x50 ,0x10 ,0 , mac,6 ); - -if (is_valid_ethaddr (mac)) -eth_setenv_enetaddr ("ethaddr" , mac); +printf ("Cannot get MAC address from I2C\n" );return 0 ; }
board/tqc/tqm5200/tqm5200.c +4 -14
@@ -486,20 +486,14 @@ int board_early_init_f (void)static int tfp410_read_reg (int reg,uchar *buf) { -if (i2c_read (CONFIG_SYS_TFP410_ADDR , reg,1 , buf,1 ) !=0 ) { -puts ("Error reading the chip.\n" ); -return 1 ; - } -return 0 ; +puts ("Error reading the chip.\n" ); +return -ENOSYS ; }static int tfp410_write_reg (int reg,uchar buf) { -if (i2c_write (CONFIG_SYS_TFP410_ADDR , reg,1 , &buf,1 ) !=0 ) { -puts ("Error writing the chip.\n" ); -return 1 ; - } -return 0 ; +puts ("Error writing the chip.\n" ); +return -ENOSYS ; } typedef struct _tfp410_config {
@@ -525,12 +519,9 @@ static int charon_last_stage_init(void) {volatile struct mpc5xxx_lpb *lpb = (struct mpc5xxx_lpb *)MPC5XXX_LPB ; -int oldbus =i2c_get_bus_num ();uchar buf;int i =0 ; -i2c_set_bus_num (CONFIG_SYS_TFP410_BUS ); -/* check version */ if (tfp410_read_reg (TFP410_REG_DEV_ID_H , &buf) !=0 )return -1 ;
@@ -551,7 +542,6 @@ static int charon_last_stage_init(void) i++; }printf ("TFP410 initialized.\n" ); -i2c_set_bus_num (oldbus);/* set deadcycle for cs3 to 0 */ setbits_be32 (&lpb->cs_deadcycle,0xffffcfff );
configs/MiniFAP_defconfig +0 -2
@@ -10,7 +10,6 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -19,7 +18,6 @@ CONFIG_CMD_PING=y CONFIG_CMD_SNTP=y CONFIG_CMD_BMP=y CONFIG_CMD_BSP=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/O2D300_defconfig +0 -1
@@ -4,7 +4,6 @@ CONFIG_TARGET_O2D300=y CONFIG_OF_BOARD_SETUP=y CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/O2DNT2_RAMBOOT_defconfig +0 -1
@@ -8,7 +8,6 @@ CONFIG_HUSH_PARSER=y CONFIG_AUTOBOOT_KEYED=y CONFIG_AUTOBOOT_PROMPT="Autobooting in %d seconds, press password to stop\n" CONFIG_AUTOBOOT_STOP_STR="++++++++++" -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/O2DNT2_defconfig +0 -1
@@ -7,7 +7,6 @@ CONFIG_HUSH_PARSER=y CONFIG_AUTOBOOT_KEYED=y CONFIG_AUTOBOOT_PROMPT="Autobooting in %d seconds, press password to stop\n" CONFIG_AUTOBOOT_STOP_STR="++++++++++" -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/O2D_defconfig +0 -1
@@ -4,7 +4,6 @@ CONFIG_TARGET_O2D=y CONFIG_OF_BOARD_SETUP=y CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/O2I_defconfig +0 -1
@@ -4,7 +4,6 @@ CONFIG_TARGET_O2I=y CONFIG_OF_BOARD_SETUP=y CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/O2MNT_O2M110_defconfig +0 -1
@@ -5,7 +5,6 @@ CONFIG_OF_BOARD_SETUP=y CONFIG_SYS_EXTRA_OPTIONS="IFM_SENSOR_TYPE=\"O2M110\"" CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/O2MNT_O2M112_defconfig +0 -1
@@ -5,7 +5,6 @@ CONFIG_OF_BOARD_SETUP=y CONFIG_SYS_EXTRA_OPTIONS="IFM_SENSOR_TYPE=\"O2M112\"" CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/O2MNT_O2M113_defconfig +0 -1
@@ -5,7 +5,6 @@ CONFIG_OF_BOARD_SETUP=y CONFIG_SYS_EXTRA_OPTIONS="IFM_SENSOR_TYPE=\"O2M113\"" CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/O2MNT_defconfig +0 -1
@@ -4,7 +4,6 @@ CONFIG_TARGET_O2MNT=y CONFIG_OF_BOARD_SETUP=y CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/O3DNT_defconfig +0 -1
@@ -4,7 +4,6 @@ CONFIG_TARGET_O3DNT=y CONFIG_OF_BOARD_SETUP=y CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/TQM5200S_HIGHBOOT_defconfig +0 -2
@@ -7,7 +7,6 @@ CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -15,7 +14,6 @@ CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_SNTP=y CONFIG_CMD_BSP=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/TQM5200S_defconfig +0 -2
@@ -7,7 +7,6 @@ CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -15,7 +14,6 @@ CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_SNTP=y CONFIG_CMD_BSP=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/TQM5200_B_HIGHBOOT_defconfig +0 -2
@@ -10,7 +10,6 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -19,7 +18,6 @@ CONFIG_CMD_PING=y CONFIG_CMD_SNTP=y CONFIG_CMD_BMP=y CONFIG_CMD_BSP=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/TQM5200_B_defconfig +0 -2
@@ -10,7 +10,6 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -19,7 +18,6 @@ CONFIG_CMD_PING=y CONFIG_CMD_SNTP=y CONFIG_CMD_BMP=y CONFIG_CMD_BSP=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/TQM5200_STK100_defconfig +0 -2
@@ -10,7 +10,6 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -19,7 +18,6 @@ CONFIG_CMD_PING=y CONFIG_CMD_SNTP=y CONFIG_CMD_BMP=y CONFIG_CMD_BSP=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/TQM5200_defconfig +0 -2
@@ -9,7 +9,6 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -18,7 +17,6 @@ CONFIG_CMD_PING=y CONFIG_CMD_SNTP=y CONFIG_CMD_BMP=y CONFIG_CMD_BSP=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/a4m072_defconfig +0 -1
@@ -7,7 +7,6 @@ CONFIG_HUSH_PARSER=y CONFIG_AUTOBOOT_KEYED=y CONFIG_AUTOBOOT_PROMPT="autoboot in %d seconds\n" CONFIG_AUTOBOOT_DELAY_STR="asdfg" -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
configs/ac14xx_defconfig +0 -1
@@ -5,7 +5,6 @@ CONFIG_FIT=y CONFIG_OF_BOARD_SETUP=y CONFIG_SYS_PROMPT="ac14xx> " CONFIG_CMD_ASKENV=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/ap_sh4a_4a_defconfig +0 -1
@@ -13,7 +13,6 @@ CONFIG_VERSION_VARIABLE=y # CONFIG_CMD_ENV_EXISTS is not set # CONFIG_CMD_LOADB is not set # CONFIG_CMD_LOADS is not set -CONFIG_CMD_I2C=y # CONFIG_CMD_FPGA is not set # CONFIG_CMD_ECHO is not set # CONFIG_CMD_ITEST is not set
configs/apx4devkit_defconfig +0 -2
@@ -14,14 +14,12 @@ CONFIG_HUSH_PARSER=y # CONFIG_CMD_IMLS is not set # CONFIG_CMD_FLASH is not set CONFIG_CMD_MMC=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_CACHE=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_UBI=y
configs/aria_defconfig +0 -1
@@ -5,7 +5,6 @@ CONFIG_OF_BOARD_SETUP=y CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y
configs/aspenite_defconfig +0 -1
@@ -6,7 +6,6 @@ CONFIG_BOOTDELAY=3 CONFIG_BOARD_EARLY_INIT_F=y # CONFIG_CMD_IMLS is not set # CONFIG_CMD_FLASH is not set -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_NET is not set # CONFIG_CMD_NFS is not set
configs/cam5200_defconfig +0 -2
@@ -7,14 +7,12 @@ CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_SNTP=y CONFIG_CMD_BSP=y -CONFIG_CMD_DATE=y CONFIG_MAC_PARTITION=y CONFIG_DOS_PARTITION=y CONFIG_ISO_PARTITION=y
configs/cam5200_niosflash_defconfig +0 -2
@@ -7,14 +7,12 @@ CONFIG_BOOTDELAY=5 CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_SNTP=y CONFIG_CMD_BSP=y -CONFIG_CMD_DATE=y CONFIG_MAC_PARTITION=y CONFIG_DOS_PARTITION=y CONFIG_ISO_PARTITION=y
configs/charon_defconfig +0 -1
@@ -9,7 +9,6 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
configs/cm5200_defconfig +0 -1
@@ -6,7 +6,6 @@ CONFIG_BOOTDELAY=5 CONFIG_SILENT_CONSOLE=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
configs/digsy_mtc_RAMBOOT_defconfig +0 -2
@@ -13,7 +13,6 @@ CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n" CONFIG_AUTOBOOT_DELAY_STR="d" CONFIG_AUTOBOOT_STOP_STR=" " CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -21,7 +20,6 @@ CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_BMP=y CONFIG_CMD_CACHE=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/digsy_mtc_defconfig +0 -2
@@ -11,7 +11,6 @@ CONFIG_AUTOBOOT_KEYED=y CONFIG_AUTOBOOT_PROMPT="autoboot in %d seconds\n" CONFIG_AUTOBOOT_DELAY_STR=" " CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -19,7 +18,6 @@ CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_BMP=y CONFIG_CMD_CACHE=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/digsy_mtc_rev5_RAMBOOT_defconfig +0 -2
@@ -13,7 +13,6 @@ CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n" CONFIG_AUTOBOOT_DELAY_STR="d" CONFIG_AUTOBOOT_STOP_STR=" " CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -21,7 +20,6 @@ CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_BMP=y CONFIG_CMD_CACHE=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/digsy_mtc_rev5_defconfig +0 -2
@@ -13,7 +13,6 @@ CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n" CONFIG_AUTOBOOT_DELAY_STR="d" CONFIG_AUTOBOOT_STOP_STR=" " CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -21,7 +20,6 @@ CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_BMP=y CONFIG_CMD_CACHE=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/fo300_defconfig +0 -2
@@ -12,7 +12,6 @@ CONFIG_BOARD_EARLY_INIT_F=y CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y
@@ -21,7 +20,6 @@ CONFIG_CMD_PING=y CONFIG_CMD_SNTP=y CONFIG_CMD_BMP=y CONFIG_CMD_BSP=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y
configs/gplugd_defconfig +0 -1
@@ -6,7 +6,6 @@ CONFIG_BOOTDELAY=3 CONFIG_BOARD_EARLY_INIT_F=y # CONFIG_CMD_IMLS is not set # CONFIG_CMD_FLASH is not set -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_FPGA is not set # CONFIG_CMD_SETEXPR is not set
configs/ipek01_defconfig +0 -2
@@ -7,13 +7,11 @@ CONFIG_BOOTDELAY=5 # CONFIG_CONSOLE_MUX is not set CONFIG_SYS_CONSOLE_IS_IN_ENV=y CONFIG_LOOPW=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_BMP=y -CONFIG_CMD_DATE=y CONFIG_CMD_FAT=y # CONFIG_MMC is not set CONFIG_MTD_NOR_FLASH=y
configs/m28evk_defconfig +0 -1
@@ -22,7 +22,6 @@ CONFIG_CMD_GREPENV=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y CONFIG_CMD_SPI=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y CONFIG_CMD_GPIO=y CONFIG_CMD_DHCP=y
configs/mecp5123_defconfig +0 -2
@@ -6,12 +6,10 @@ CONFIG_BOOTDELAY=5 CONFIG_BOARD_EARLY_INIT_F=y CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y -CONFIG_CMD_DATE=y CONFIG_CMD_FAT=y # CONFIG_MMC is not set CONFIG_MTD_NOR_FLASH=y
configs/motionpro_defconfig +0 -2
@@ -8,12 +8,10 @@ CONFIG_AUTOBOOT_KEYED=y CONFIG_AUTOBOOT_PROMPT="Autobooting in %d seconds, press \"<Esc><Esc>\" to stop\n" CONFIG_AUTOBOOT_STOP_STR="\x1b\x1b" CONFIG_CMD_ASKENV=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y -CONFIG_CMD_DATE=y CONFIG_CMD_FAT=y CONFIG_CMD_BEDBUG=y CONFIG_LED_STATUS=y
configs/mpc5121ads_defconfig +0 -2
@@ -6,13 +6,11 @@ CONFIG_BOOTDELAY=5 CONFIG_BOARD_EARLY_INIT_F=y CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_MAC_PARTITION=y
configs/mpc5121ads_rev2_defconfig +0 -2
@@ -7,13 +7,11 @@ CONFIG_BOOTDELAY=5 CONFIG_BOARD_EARLY_INIT_F=y CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y -CONFIG_CMD_DATE=y CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_MAC_PARTITION=y
configs/pcm030_LOWBOOT_defconfig +0 -2
@@ -4,11 +4,9 @@ CONFIG_TARGET_PCM030=y CONFIG_OF_BOARD_SETUP=y CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0xFF000000" CONFIG_BOOTDELAY=3 -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y -CONFIG_CMD_DATE=y # CONFIG_MMC is not set CONFIG_MTD_NOR_FLASH=y CONFIG_USB=y
configs/pcm030_defconfig +0 -2
@@ -4,11 +4,9 @@ CONFIG_TARGET_PCM030=y CONFIG_OF_BOARD_SETUP=y CONFIG_BOOTDELAY=3 CONFIG_SYS_PROMPT="uboot> " -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y -CONFIG_CMD_DATE=y # CONFIG_MMC is not set CONFIG_MTD_NOR_FLASH=y CONFIG_USB=y
configs/pdm360ng_defconfig +0 -2
@@ -10,13 +10,11 @@ CONFIG_SILENT_CONSOLE=y # CONFIG_CONSOLE_MUX is not set CONFIG_HUSH_PARSER=y CONFIG_CMD_ASKENV=y -CONFIG_CMD_I2C=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_BMP=y -CONFIG_CMD_DATE=y # CONFIG_MMC is not set CONFIG_MTD_NOR_FLASH=y # CONFIG_PCI is not set
configs/r0p7734_defconfig +0 -1
@@ -13,7 +13,6 @@ CONFIG_VERSION_VARIABLE=y # CONFIG_CMD_ENV_EXISTS is not set # CONFIG_CMD_LOADB is not set # CONFIG_CMD_LOADS is not set -CONFIG_CMD_I2C=y # CONFIG_CMD_FPGA is not set # CONFIG_CMD_ECHO is not set # CONFIG_CMD_ITEST is not set
configs/v38b_defconfig +0 -2
@@ -3,13 +3,11 @@ CONFIG_MPC5xxx=y CONFIG_TARGET_V38B=y CONFIG_BOOTDELAY=3 CONFIG_BOARD_EARLY_INIT_F=y -CONFIG_CMD_I2C=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y -CONFIG_CMD_DATE=y CONFIG_CMD_FAT=y CONFIG_CMD_DIAG=y CONFIG_MAC_PARTITION=y
include/common.h +10 -0
@@ -499,9 +499,19 @@ void reset_phy (void);void fdc_hw_init (void );/* $(BOARD)/eeprom.c */ +#ifdef CONFIG_CMD_EEPROM void eeprom_init (int bus);int eeprom_read (unsigned dev_addr,unsigned offset,uchar *buffer,unsigned cnt);int eeprom_write (unsigned dev_addr,unsigned offset,uchar *buffer,unsigned cnt); +#else +/* +* Some EEPROM code is depecated because it used the legacy I2C interface. Add +* some macros here so we don't have to touch every one of those uses +*/ +#define eeprom_init (bus) +#define eeprom_read (dev_addr, offset, buffer, cnt) ((void)-ENOSYS) +#define eeprom_write (dev_addr, offset, buffer, cnt) ((void)-ENOSYS) +#endif /* * Set this up regardless of board
include/configs/M54418TWR.h +0 -1
@@ -166,7 +166,6 @@/* I2c */ #undef CONFIG_SYS_FSL_I2C -#undef CONFIG_HARD_I2C/* I2C with hardware support */ #undef CONFIG_SYS_I2C_SOFT/* I2C bit-banged */ /* I2C speed and slave address */ #define CONFIG_SYS_I2C_SPEED 80000
include/configs/TQM5200.h +1 -63
88 lines not on this page · raw message
include/configs/a4m072.h +0 -20
@@ -81,7 +81,6 @@/* * Command line configuration. */ -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IDE #if defined(CONFIG_PCI )
@@ -145,25 +144,6 @@*/ #undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK/* define for 133MHz speed */ -/* -* I2C configuration -*/ -#define CONFIG_HARD_I2C 1/* I2C with hardware support */ -#define CONFIG_SYS_I2C_MODULE 2/* Select I2C module #1 or #2 */ - -#define CONFIG_SYS_I2C_SPEED 100000/* 100 kHz */ -#define CONFIG_SYS_I2C_SLAVE 0x7F - -/* -* EEPROM configuration -*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x52/* 1010010x */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 -#define CONFIG_SYS_EEPROM_WREN 1 -#define CONFIG_SYS_EEPROM_WP GPIO_PSC2_4 -/* * Flash configuration */
include/configs/ac14xx.h +0 -18
@@ -336,28 +336,11 @@#define CONFIG_CMDLINE_EDITING 1/* command line history */ -/* I2C */ -#define CONFIG_HARD_I2C /* I2C with hardware support */ -#define CONFIG_I2C_MULTI_BUS - -/* I2C speed and slave address */ -#define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0x7F -/* * IIM - IC Identification Module */ #undef CONFIG_FSL_IIM -/* -* EEPROM configuration for Atmel AT24C01: -* 8-bit addresses, 30ms write delay, 32-Byte Page Write Mode -*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x52 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 30 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5 -/* * Ethernet configuration */
@@ -384,7 +367,6 @@#define CONFIG_LOADS_ECHO 1#define CONFIG_SYS_LOADS_BAUD_CHANGE 1 -#define CONFIG_CMD_EEPROM #undef CONFIG_CMD_FUSE#undef CONFIG_CMD_IDE#define CONFIG_CMD_JFFS2
include/configs/ap_sh4a_4a.h +0 -14
@@ -35,20 +35,6 @@#define CONFIG_BITBANGMII #define CONFIG_BITBANGMII_MULTI -/* I2C */ -#define CONFIG_SH_SH7734_I2C 1 -#define CONFIG_HARD_I2C 1 -#define CONFIG_I2C_MULTI_BUS 1 -#define CONFIG_SYS_MAX_I2C_BUS 2 -#define CONFIG_SYS_I2C_MODULE 0 -#define CONFIG_SYS_I2C_SPEED 400000/* 400 kHz */ -#define CONFIG_SYS_I2C_SLAVE 0x50 -#define CONFIG_SH_I2C_DATA_HIGH 4 -#define CONFIG_SH_I2C_DATA_LOW 5 -#define CONFIG_SH_I2C_CLOCK 500000000 -#define CONFIG_SH_I2C_BASE0 0xFFC70000 -#define CONFIG_SH_I2C_BASE1 0xFFC71000 -/* undef to save memory */ #define CONFIG_SYS_LONGHELP /* Monitor Command Prompt */
include/configs/apx4devkit.h +0 -6
@@ -79,12 +79,6 @@#define CONFIG_USB_MAX_CONTROLLER_COUNT 1#endif -/* RTC */ -#ifdef CONFIG_CMD_DATE -#define CONFIG_RTC_PCF8563 -#define CONFIG_SYS_I2C_RTC_ADDR 0x51 -#endif -/* Boot Linux */ #define CONFIG_BOOTFILE "uImage"#define CONFIG_BOOTCOMMAND "run bootcmd_nand"
include/configs/aria.h +0 -21
@@ -340,31 +340,11 @@#endif -/* I2C */ -#define CONFIG_HARD_I2C /* I2C with hardware support */ -#define CONFIG_I2C_MULTI_BUS - -/* I2C speed and slave address */ -#define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0x7F -#if 0 -#define CONFIG_SYS_I2C_NOPROBES {{0,0x69}}/* Don't probe these addrs */ -#endif -/* * IIM - IC Identification Module */ #undef CONFIG_FSL_IIM -/* -* EEPROM configuration for Atmel AT24C32A-10TQ-2.7: -* 16-bit addresses, 10ms write delay, 32-Byte Page Write Mode -*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5 -/* * Ethernet configuration */
@@ -392,7 +372,6 @@#define CONFIG_LOADS_ECHO 1#define CONFIG_SYS_LOADS_BAUD_CHANGE 1 -#define CONFIG_CMD_EEPROM #undef CONFIG_CMD_FUSE#undef CONFIG_CMD_IDE#define CONFIG_CMD_JFFS2
include/configs/axs10x.h +1 -1
@@ -100,7 +100,7 @@/* * Environment settings */ -#define CONFIG_ENV_IS_IN_EEPROM +#define CONFIG_ENV_IS_NOWHERE #define CONFIG_ENV_SIZE SZ_512#define CONFIG_ENV_OFFSET 0
include/configs/cm5200.h +1 -11
@@ -44,7 +44,7 @@/* * POST support */ -#define CONFIG_POST (CONFIG_SYS_POST_MEMORY | CONFIG_SYS_POST_CPU | CONFIG_SYS_POST_I2C) +#define CONFIG_POST (CONFIG_SYS_POST_MEMORY | CONFIG_SYS_POST_CPU)#define MPC5XXX_SRAM_POST_SIZE (MPC5XXX_SRAM_SIZE - 4)/* List of I2C addresses to be verified by POST */ #define CONFIG_SYS_POST_I2C_ADDRS {CONFIG_SYS_I2C_SLAVE, \
@@ -199,16 +199,6 @@"2m(kernel),27904k(rootfs)," \"-(config)" -/* -* I2C configuration - */ -#define CONFIG_HARD_I2C 1/* I2C with hardware support */ -#define CONFIG_SYS_I2C_MODULE 2/* Select I2C module #2 */ -#define CONFIG_SYS_I2C_SPEED 40000/* 40 kHz */ -#define CONFIG_SYS_I2C_SLAVE 0x0 -#define CONFIG_SYS_I2C_IO 0x38/* PCA9554AD I2C I/O port address */ -#define CONFIG_SYS_I2C_EEPROM 0x53/* I2C EEPROM device address */ -/* * RTC configuration */
include/configs/digsy_mtc.h +0 -31
@@ -85,7 +85,6 @@/* * Command line configuration. */ -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IDE #define CONFIG_CMD_IRQ #define CONFIG_CMD_PCI
@@ -205,36 +204,6 @@#define CONFIG_BOOTCOMMAND "run mtcb_start" -/* -* I2C configuration -*/ -#define CONFIG_HARD_I2C 1 -#define CONFIG_SYS_I2C_MODULE 1 -#define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0x7F - -/* -* EEPROM configuration -*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* 1010000x */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 70 - -/* -* RTC configuration -*/ -#if defined(CONFIG_DIGSY_REV5 ) -#define CONFIG_SYS_I2C_RTC_ADDR 0x56 -#define CONFIG_RTC_RV3029 -/* Enable 5k Ohm trickle charge resistor */ -#define CONFIG_SYS_RV3029_TCR 0x20 -#else -#define CONFIG_RTC_DS1337 -#define CONFIG_SYS_I2C_RTC_ADDR 0x68 -#define CONFIG_SYS_DS1339_TCR_VAL 0xAB/* diode + 4k resistor */ -#endif -/* * Flash configuration */
include/configs/ids8313.h +0 -1
@@ -165,7 +165,6 @@#define CONFIG_TSEC2 #define CONFIG_TSEC_ENET #define CONFIG_HARD_SPI -#define CONFIG_HARD_I2C /* * NOR FLASH setup
include/configs/ipek01.h +0 -23
@@ -150,29 +150,6 @@#define OF_SOC "soc5200 at f0000000"#define OF_TBCLK (bd->bi_busfreq / 4) -/* -* I2C configuration -*/ -#define CONFIG_HARD_I2C 1/* I2C with hardware support */ -#define CONFIG_SYS_I2C_MODULE 2/* Select I2C module #1 or #2 */ - -#define CONFIG_SYS_I2C_SPEED 100000/* 100 kHz */ -#define CONFIG_SYS_I2C_SLAVE 0x7F - -/* -* EEPROM configuration -*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x53 -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 - -/* -* RTC configuration -*/ -#define CONFIG_RTC_PCF8563 -#define CONFIG_SYS_I2C_RTC_ADDR 0x51 -#define CONFIG_SYS_FLASH_BASE 0xFC000000#define CONFIG_SYS_FLASH_SIZE 0x01000000#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + \
include/configs/jupiter.h +0 -19
@@ -127,25 +127,6 @@#define OF_STDOUT_PATH "/soc5200 at f0000000/serial at 2000"#endif -#if 0 -/* -* I2C configuration -*/ -#define CONFIG_HARD_I2C 1/* I2C with hardware support */ -#define CONFIG_SYS_I2C_MODULE 2/* Select I2C module #1 or #2 */ - -#define CONFIG_SYS_I2C_SPEED 100000/* 100 kHz */ -#define CONFIG_SYS_I2C_SLAVE 0x7F - -/* -* EEPROM configuration -*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* 1010000x */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 70 -#endif -/* * Flash configuration */
include/configs/m28evk.h +0 -6
@@ -16,7 +16,6 @@/* U-Boot Commands */ #define CONFIG_FAT_WRITE -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_NAND #define CONFIG_CMD_NAND_TRIMFFS
@@ -63,11 +62,6 @@#define CONFIG_FEC_MXC #endif -/* EEPROM */ -#ifdef CONFIG_CMD_EEPROM -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -#endif -/* RTC */ #ifdef CONFIG_CMD_DATE /* Use the internal RTC in the MXS chip */
include/configs/manroland/mpc5200-common.h new file +176 -0
176 lines not on this page · raw message
include/configs/mecp5123.h +1 -17
@@ -241,26 +241,11 @@#define CONFIG_CMDLINE_EDITING 1/* add command line history */ -/* I2C */ -#define CONFIG_HARD_I2C /* I2C with hardware support */ -#define CONFIG_I2C_MULTI_BUS -#define CONFIG_SYS_I2C_SPEED 400000/* I2C speed */ -#define CONFIG_SYS_I2C_SLAVE 0x7F/* slave address */ -/* * IIM - IC Identification Module */ #undef CONFIG_FSL_IIM -/* -* EEPROM configuration -*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2/* 16-bit EEPROM address */ -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Atmel: AT24C32A-10TQ-2.7 */ -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10/* 10ms of delay */ -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5/* 32-Byte Page Write Mode */ -#define CONFIG_SYS_EEPROM_WREN /* Use EEPROM write protect */ -/* * Ethernet configuration */
@@ -280,7 +265,7 @@/* * Environment */ -#define CONFIG_ENV_IS_IN_EEPROM /* Store env in I2C EEPROM */ +#define CONFIG_ENV_IS_NOWHERE /* Store env in I2C EEPROM */ #define CONFIG_ENV_SIZE 0x1000#define CONFIG_ENV_OFFSET 0x0000/* environment starts here */
@@ -288,7 +273,6 @@#define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */ #define CONFIG_CMD_REGINFO -#define CONFIG_CMD_EEPROM #undef CONFIG_CMD_FUSE#undef CONFIG_CMD_IDE#define CONFIG_CMD_JFFS2
include/configs/motionpro.h +0 -22
@@ -34,7 +34,6 @@* Command line configuration. */ #define CONFIG_CMD_DTT -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IDE #define CONFIG_CMD_IMMAP #define CONFIG_CMD_JFFS2
@@ -255,21 +254,6 @@#define CONFIG_SYS_ATA_REG_OFFSET CONFIG_SYS_ATA_DATA_OFFSET#define CONFIG_SYS_ATA_STRIDE 4 -/* -* I2C configuration -*/ -#define CONFIG_HARD_I2C 1/* I2C with hardware support */ -#define CONFIG_SYS_I2C_MODULE 2/* select I2C module #2 */ -#define CONFIG_SYS_I2C_SPEED 100000/* 100 kHz */ -#define CONFIG_SYS_I2C_SLAVE 0x7F - -/* -* EEPROM configuration -*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 1/* 2 bytes per write cycle */ -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5/* 2ms/cycle + 3ms extra */ -/* * RTC configuration */
@@ -283,12 +267,6 @@#define ENABLE_GPIO_OUT 0x00000024#define LED_ON 0x00000010 -/* -* Temperature sensor -*/ -#define CONFIG_DTT_LM75 1 -#define CONFIG_DTT_SENSORS { 0x49 } -/* * Environment settings */
include/configs/mpc5121ads.h +0 -18
@@ -327,28 +327,11 @@#endif -/* I2C */ -#define CONFIG_HARD_I2C /* I2C with hardware support */ -#define CONFIG_I2C_MULTI_BUS -#define CONFIG_SYS_I2C_SPEED 100000/* I2C speed and slave address */ -#define CONFIG_SYS_I2C_SLAVE 0x7F -#if 0 -#define CONFIG_SYS_I2C_NOPROBES {{0,0x69}}/* Don't probe these addrs */ -#endif -/* * IIM - IC Identification Module */ #undef CONFIG_FSL_IIM -/* -* EEPROM configuration -*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2/* 16-bit EEPROM address */ -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Atmel: AT24C32A-10TQ-2.7 */ -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10/* 10ms of delay */ -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5/* 32-Byte Page Write Mode */ -/* * Ethernet configuration */
@@ -396,7 +379,6 @@#define CONFIG_LOADS_ECHO 1/* echo on for serial download */ #define CONFIG_SYS_LOADS_BAUD_CHANGE 1/* allow baudrate change */ -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IDE #define CONFIG_CMD_JFFS2 #define CONFIG_CMD_REGINFO
include/configs/mxs.h +0 -10
@@ -126,16 +126,6 @@#endif #endif -/* I2C */ -#ifdef CONFIG_CMD_I2C -#define CONFIG_SYS_I2C -#define CONFIG_SYS_I2C_MXS -#define CONFIG_HARD_I2C -#ifndef CONFIG_SYS_I2C_SPEED -#define CONFIG_SYS_I2C_SPEED 400000 -#endif -#endif -/* LCD */ #ifdef CONFIG_VIDEO #define CONFIG_VIDEO_MXS
include/configs/o2dnt-common.h +0 -22
@@ -68,7 +68,6 @@/* * Supported commands */ -#define CONFIG_CMD_EEPROM #ifdef CONFIG_PCI #define CONFIG_CMD_PCI #endif
@@ -172,27 +171,6 @@#define CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2 /* define for 66MHz speed */ #endif -/* -* I2C configuration -*/ -#define CONFIG_HARD_I2C 1/* I2C with hardware support */ -#define CONFIG_SYS_I2C_MODULE 1/* Select I2C module #1 or #2 */ -#define CONFIG_SYS_I2C_SPEED 100000/* 100 kHz */ -#define CONFIG_SYS_I2C_SLAVE 0x7F - -/* -* EEPROM configuration: -* -* O2DNT board is equiped with Ramtron FRAM device FM24CL16 -* 16 Kib Ferroelectric Nonvolatile serial RAM memory -* organized as 2048 x 8 bits and addressable as eight I2C devices -* 0x50 ... 0x57 each 256 bytes in size -* -*/ -#define CONFIG_SYS_I2C_FRAM -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* 1010000x */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3/* * There is no write delay with FRAM, write operations are performed at bus * speed. Thus, no status polling or write delay is needed.
include/configs/pcm030.h +2 -29
@@ -49,7 +49,6 @@ Serial console configuration/* * Command line configuration. */ -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_JFFS2 #define CONFIG_CMD_PCI
@@ -120,31 +119,6 @@ IPB Bus clocking configuration.#define CONFIG_PCI_IO_SIZE 0x01000000#define CONFIG_SYS_XLB_PIPELINING 1 -/*--------------------------------------------------------------------------- -I2C configuration ----------------------------------------------------------------------------*/ -#define CONFIG_HARD_I2C 1/* I2C with hardware support */ -#define CONFIG_SYS_I2C_MODULE 2/* Select I2C module #1 or #2 */ -#define CONFIG_SYS_I2C_SPEED 100000/* 100 kHz */ -#define CONFIG_SYS_I2C_SLAVE 0x7F - -/*--------------------------------------------------------------------------- -EEPROM CAT24WC32 configuration ----------------------------------------------------------------------------*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x52/* 1010100x */ -#define CONFIG_SYS_I2C_FACT_ADDR 0x52/* EEPROM CAT24WC32 */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2/* Bytes of address */ -#define CONFIG_SYS_EEPROM_SIZE 2048 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 15 - -/*--------------------------------------------------------------------------- -RTC configuration ----------------------------------------------------------------------------*/ -#define RTC -#define CONFIG_RTC_PCF8563 1 -#define CONFIG_SYS_I2C_RTC_ADDR 0x51 -/*--------------------------------------------------------------------------- Flash configuration ---------------------------------------------------------------------------*/
@@ -172,11 +146,10 @@ RTC configurationEnvironment settings ---------------------------------------------------------------------------*/ -/* pcm030 ships with environment is EEPROM by default */ -#define CONFIG_ENV_IS_IN_EEPROM 1 +#define CONFIG_ENV_IS_NOWHERE #define CONFIG_ENV_OFFSET 0x00/* environment starts at the */ /*beginning of the EEPROM */ -#define CONFIG_ENV_SIZE CONFIG_SYS_EEPROM_SIZE +#define CONFIG_ENV_SIZE 2048#define CONFIG_ENV_OVERWRITE 1
include/configs/pdm360ng.h +0 -30
@@ -301,34 +301,11 @@#define CONFIG_SYS_PDM360NG_COPROC_READ_DELAY 5000#define CONFIG_SYS_PDM360NG_COPROC_BAUDRATE 38400 -/* -* I2C -*/ -#define CONFIG_HARD_I2C /* I2C with hardware support */ -#define CONFIG_I2C_MULTI_BUS -#define CONFIG_I2C_CMD_TREE -/* I2C speed and slave address */ -#define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0x7F -/* * IIM - IC Identification Module */ #undef CONFIG_FSL_IIM -/* -* EEPROM configuration -*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2/* 16-bit EEPROM addr */ -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* ST AT24C01 */ -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10/* 10ms of delay */ -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4/* 16-Byte Write Mode */ - -/* -* MAC addr in EEPROM -*/ -#define CONFIG_SYS_I2C_EEPROM_BUS_NUM 0 -#define CONFIG_SYS_I2C_EEPROM_MAC_OFFSET 0x10/* * Enabled only to delete "ethaddr" before testing * "ethaddr" setting from EEPROM
@@ -344,12 +321,6 @@#define CONFIG_FEC_AN_TIMEOUT 1#define CONFIG_HAS_ETH0 -/* -* Configure on-board RTC -*/ -#define CONFIG_RTC_M41T62 /* use M41T00 rtc via i2c */ -#define CONFIG_SYS_I2C_RTC_ADDR 0x68/* at address 0x68 */ -/* * Environment */
@@ -367,7 +338,6 @@#define CONFIG_LOADS_ECHO 1/* echo on for serial download */ #define CONFIG_SYS_LOADS_BAUD_CHANGE 1/* allow baudrate change */ -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_REGINFO #undef CONFIG_CMD_FUSE
include/configs/r0p7734.h +0 -14
@@ -40,20 +40,6 @@# define CONFIG_SMC911X_BASE (0x84000000)#endif -/* I2C */ -#define CONFIG_SH_SH7734_I2C 1 -#define CONFIG_HARD_I2C 1 -#define CONFIG_I2C_MULTI_BUS 1 -#define CONFIG_SYS_MAX_I2C_BUS 2 -#define CONFIG_SYS_I2C_MODULE 0 -#define CONFIG_SYS_I2C_SPEED 100000/* 100 kHz */ -#define CONFIG_SYS_I2C_SLAVE 0x50 -#define CONFIG_SH_I2C_DATA_HIGH 4 -#define CONFIG_SH_I2C_DATA_LOW 5 -#define CONFIG_SH_I2C_CLOCK 500000000 -#define CONFIG_SH_I2C_BASE0 0xFFC70000 -#define CONFIG_SH_I2C_BASE1 0xFFC7100 -/* undef to save memory */ #define CONFIG_SYS_LONGHELP /* Monitor Command Prompt */
include/configs/s32v234evb.h +0 -10
@@ -97,16 +97,6 @@#define CONFIG_PHY_MICREL #endif -#if 0 /* Disable until the I2C driver will be updated */ - -/* I2C Configs */ -#define CONFIG_CMD_I2C -#define CONFIG_HARD_I2C -#define CONFIG_I2C_MXC -#define CONFIG_SYS_I2C_BASE I2C0_BASE_ADDR -#define CONFIG_SYS_I2C_SPEED 100000 -#endif -#if 0 /* Disable until the FLASH will be implemented */ #define CONFIG_SYS_USE_NAND #endif
include/configs/v38b.h +0 -21
@@ -134,27 +134,6 @@*/ #undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK/* define for 133MHz speed */ -/* -* I2C configuration -*/ -#define CONFIG_HARD_I2C 1/* I2C with hardware support */ -#define CONFIG_SYS_I2C_MODULE 2/* Select I2C module #1 or #2 */ -#define CONFIG_SYS_I2C_SPEED 100000/* 100 kHz */ -#define CONFIG_SYS_I2C_SLAVE 0x7F - -/* -* EEPROM configuration -*/ -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* 1010000x */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 70 - -/* -* RTC configuration -*/ -#define CONFIG_SYS_I2C_RTC_ADDR 0x51 -/* * Flash configuration - use CFI driver */
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 2/12 i2c: powerpc: Remove use of CONFIG_HARD_I2C
In reply to Simon GlassDrop use of this long-deprecated option for powerpc.
---
Changes in v2: None
arch/powerpc/cpu/mpc512x/Makefile | 1 - arch/powerpc/cpu/mpc512x/i2c.c | 386 ------------------- arch/powerpc/cpu/mpc5xxx/Makefile | 1 - arch/powerpc/cpu/mpc5xxx/i2c.c | 456 ---------------------- arch/powerpc/cpu/mpc8260/Makefile | 2 +- arch/powerpc/cpu/mpc8260/commproc.c | 4 - arch/powerpc/cpu/mpc8260/i2c.c | 741 ------------------------------------ arch/powerpc/cpu/mpc8xx/Makefile | 1 - arch/powerpc/cpu/mpc8xx/i2c.c | 672 -------------------------------- board/freescale/m52277evb/README | 1 - board/freescale/m53017evb/README | 1 - board/freescale/m5373evb/README | 1 - board/freescale/m54455evb/README | 1 - board/freescale/m547xevb/README | 1 - 14 files changed, 1 insertion(+), 2268 deletions(-) delete mode 100644 arch/powerpc/cpu/mpc512x/i2c.c delete mode 100644 arch/powerpc/cpu/mpc5xxx/i2c.c delete mode 100644 arch/powerpc/cpu/mpc8260/i2c.c delete mode 100644 arch/powerpc/cpu/mpc8xx/i2c.c
arch/powerpc/cpu/mpc512x/Makefile +0 -1
@@ -9,7 +9,6 @@ obj-y := cpu.o obj-y += traps.o obj-y += cpu_init.o obj-y += fixed_sdram.o -obj-y += i2c.o obj-y += interrupts.o obj-y += iopin.o obj-y += serial.o
arch/powerpc/cpu/mpc512x/i2c.c deleted +0 -386
386 lines not on this page · raw message
arch/powerpc/cpu/mpc5xxx/Makefile +0 -1
@@ -9,7 +9,6 @@ extra-y = start.o extra-y += traps.o obj-y += io.o obj-y += firmware_sc_task_bestcomm.impl.o -obj-y += i2c.o obj-y += cpu.o obj-y += cpu_init.o obj-y += ide.o
arch/powerpc/cpu/mpc5xxx/i2c.c deleted +0 -456
456 lines not on this page · raw message
arch/powerpc/cpu/mpc8260/Makefile +1 -1
@@ -7,7 +7,7 @@ extra-y = start.o obj-y = traps.o serial_smc.o serial_scc.o cpu.o cpu_init.o speed.o \ - interrupts.o ether_fcc.o i2c.o commproc.o \ + interrupts.o ether_fcc.o commproc.o \ bedbug_603e.o pci.o spi.o kgdb.o obj-$(CONFIG_ETHER_ON_SCC) += ether_scc.o
arch/powerpc/cpu/mpc8260/commproc.c +0 -4
@@ -41,10 +41,6 @@ m8260_cpm_reset(void)do {/* Spin until command processed */ __asm__ __volatile__ ("eieio" ); }while ((immr->im_cpm.cp_cpcr &CPM_CR_FLG ) && ++count <1000000 ); - -#ifdef CONFIG_HARD_I2C - immr->im_dprambase16[PROFF_I2C_BASE /sizeof (u16)] =0 ; -#endif }/* Allocate some memory from the dual ported ram.
arch/powerpc/cpu/mpc8260/i2c.c deleted +0 -741
741 lines not on this page · raw message
arch/powerpc/cpu/mpc8xx/Makefile +0 -1
@@ -14,7 +14,6 @@ obj-y += cpu.o obj-y += cpu_init.o obj-y += fec.o obj-$(CONFIG_OF_LIBFDT) += fdt.o -obj-y += i2c.o obj-y += interrupts.o obj-y += scc.o obj-y += serial.o
arch/powerpc/cpu/mpc8xx/i2c.c deleted +0 -672
672 lines not on this page · raw message
board/freescale/m52277evb/README +0 -1
@@ -83,7 +83,6 @@ CONFIG_MCFTMR -- define to use DMA timer CONFIG_MCFPIT -- define to use PIT timer CONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver -CONFIG_HARD_I2C -- define for I2C hardware support CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged CONFIG_SYS_I2C_SPEED -- define for I2C speed CONFIG_SYS_I2C_SLAVE -- define for I2C slave address
board/freescale/m53017evb/README +0 -1
@@ -91,7 +91,6 @@ CONFIG_MCFTMR -- define to use DMA timer CONFIG_MCFPIT -- define to use PIT timer CONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver -CONFIG_HARD_I2C -- define for I2C hardware support CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged CONFIG_SYS_I2C_SPEED -- define for I2C speed CONFIG_SYS_I2C_SLAVE -- define for I2C slave address
board/freescale/m5373evb/README +0 -1
@@ -90,7 +90,6 @@ CONFIG_MCFTMR -- define to use DMA timer CONFIG_MCFPIT -- define to use PIT timer CONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver -CONFIG_HARD_I2C -- define for I2C hardware support CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged CONFIG_SYS_I2C_SPEED -- define for I2C speed CONFIG_SYS_I2C_SLAVE -- define for I2C slave address
board/freescale/m54455evb/README +0 -1
@@ -113,7 +113,6 @@ CONFIG_MCFTMR -- define to use DMA timer CONFIG_MCFPIT -- define to use PIT timer CONFIG_SYS_FSL_I2C -- define to use FSL common I2C driver -CONFIG_HARD_I2C -- define for I2C hardware support CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged CONFIG_SYS_I2C_SPEED -- define for I2C speed CONFIG_SYS_I2C_SLAVE -- define for I2C slave address
board/freescale/m547xevb/README +0 -1
@@ -98,7 +98,6 @@ CONFIG_DOS_PARTITION -- enable DOS read/write CONFIG_SLTTMR -- define to use SLT timer CONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver -CONFIG_HARD_I2C -- define for I2C hardware support CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged CONFIG_SYS_I2C_SPEED -- define for I2C speed CONFIG_SYS_I2C_SLAVE -- define for I2C slave address
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 3/12 i2c: cm5200: Drop use of CONFIG_I2C_HARD
In reply to Simon GlassDrop use of this long-deprecated option.
---
Changes in v2: None
board/cm5200/cm5200.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
board/cm5200/cm5200.c +3 -3
@@ -214,7 +214,7 @@ static void compose_module_name(hw_id_t hw_id, char *buf)strcat (buf, tmp); } -#if defined(CONFIG_HARD_I2C ) || defined(CONFIG_SYS_I2C_SOFT ) +#if defined(CONFIG_SYS_I2C_SOFT )/* * Compose string with hostname. * buf is assumed to have enough space, and be null-terminated.
@@ -295,7 +295,7 @@ int board_early_init_r(void)#ifdef CONFIG_MISC_INIT_R int misc_init_r (void ) { -#if defined(CONFIG_HARD_I2C ) || defined(CONFIG_SYS_I2C_SOFT ) +#if defined(CONFIG_SYS_I2C_SOFT )uchar buf[6 ];char str[18 ];char hostname[MODULE_NAME_MAXLEN ];
@@ -323,7 +323,7 @@ int misc_init_r(void)compose_hostname (hw_id, hostname);setenv ("hostname" , hostname); -#endif /* defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT) */ +#endif /* defined(CONFIG_SYS_I2C_SOFT) */ if (!getenv ("ethaddr" ))printf (LOG_PREFIX "MAC address not set, networking is not " "operational\n" );
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 4/12 i2c: pdm360ng: Drop use of CONFIG_I2C_HARD
In reply to Simon GlassDrop use of this long-deprecated option.
---
Changes in v2: None
board/pdm360ng/pdm360ng.c | 30 ------------------------------ 1 file changed, 30 deletions(-)
board/pdm360ng/pdm360ng.c +0 -30
@@ -169,36 +169,6 @@ int misc_init_r(void)clrsetbits_be32 (&im->gpio.gpdat,0x01000000 ,0x00040000 );#endif -#if defined(CONFIG_HARD_I2C ) -if (!getenv ("ethaddr" )) { -uchar buf[6 ]; -uchar ifm_oui[3 ] = {0 ,2 ,1 , }; -int ret; - -/* I2C-0 for on-board eeprom */ -i2c_set_bus_num (CONFIG_SYS_I2C_EEPROM_BUS_NUM ); - -/* Read ethaddr from EEPROM */ - ret =i2c_read (CONFIG_SYS_I2C_EEPROM_ADDR , -CONFIG_SYS_I2C_EEPROM_MAC_OFFSET ,1 , buf,6 ); -if (ret !=0 ) { -printf ("Error: Unable to read MAC from I2C" -" EEPROM at address %02X:%02X\n" , -CONFIG_SYS_I2C_EEPROM_ADDR , -CONFIG_SYS_I2C_EEPROM_MAC_OFFSET ); -return 1 ; - } - -/* Owned by IFM ? */ -if (memcmp (buf, ifm_oui,sizeof (ifm_oui))) { -printf ("Illegal MAC address in EEPROM: %pM\n" , buf); -return 1 ; - } - -eth_setenv_enetaddr ("ethaddr" , buf); - } -#endif /* defined(CONFIG_HARD_I2C) */ -return 0 ; }
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 5/12 i2c: keymile: Drop use of CONFIG_I2C_HARD
In reply to Simon GlassDrop use of this long-deprecated option.
---
Changes in v2: None
board/keymile/km82xx/km82xx.c | 5 ----- board/keymile/km_arm/km_arm.c | 4 ---- 2 files changed, 9 deletions(-)
board/keymile/km82xx/km82xx.c +0 -5
@@ -153,13 +153,8 @@ const iop_conf_t iop_conf_tab[4][32] = { { 0, 0, 0, 0, 0, 0 }, /* PD18 */ { 0, 0, 0, 0, 0, 0 }, /* PD17 */ { 0, 0, 0, 0, 0, 0 }, /* PD16 */ -#if defined(CONFIG_HARD_I2C) - { 1, 1, 1, 0, 1, 0 }, /* PD15 I2C SDA */ - { 1, 1, 1, 0, 1, 0 }, /* PD14 I2C SCL */ -#else { 1, 0, 0, 0, 1, 1 }, /* PD15 */ { 1, 0, 0, 1, 1, 1 }, /* PD14 */ -#endif { 0, 0, 0, 0, 0, 0 }, /* PD13 */ { 0, 0, 0, 0, 0, 0 }, /* PD12 */ { 0, 0, 0, 0, 0, 0 }, /* PD11 */
board/keymile/km_arm/km_arm.c +0 -4
@@ -75,10 +75,6 @@ static const u32 kwmpp_config[] = {#if defined(CONFIG_SYS_I2C_SOFT )MPP8_GPIO ,/* SDA */ MPP9_GPIO ,/* SCL */ -#endif -#if defined(CONFIG_HARD_I2C ) -MPP8_TW_SDA , -MPP9_TW_SCK , #endifMPP10_UART0_TXD , MPP11_UART0_RXD,
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 6/12 i2c: mxc_i2c: Drop use of CONFIG_I2C_HARD
In reply to Simon GlassDrop use of this long-deprecated option.
---
Changes in v2: None
drivers/i2c/mxc_i2c.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/i2c/mxc_i2c.c +0 -4
@@ -69,10 +69,6 @@ DECLARE_GLOBAL_DATA_PTR;#define I2SR_IIF_CLEAR (0 << 1)#endif -#if defined(CONFIG_HARD_I2C ) && !defined(CONFIG_SYS_I2C_BASE ) -#error "define CONFIG_SYS_I2C_BASE to use the mxc_i2c driver" -#endif -#ifdef I2C_QUIRK_REG static u16 i2c_clk_div[60 ][2 ] = { { 20, 0x00 }, { 22, 0x01 }, { 24, 0x02 }, { 26, 0x03 },
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 7/12 i2c: omap: Modify code to work without CONFIG_I2C_HARD
In reply to Simon GlassDrop use of this long-deprecated option.
---
Changes in v2:
- Add new patch to adjust omap boards to not need CONFIG_I2C_HARD
board/ti/am335x/board.c | 3 ++- board/ti/am43xx/board.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
board/ti/am335x/board.c +2 -1
@@ -70,7 +70,8 @@ void do_board_detect(void)enable_i2c0_pin_mux ();i2c_init (CONFIG_SYS_OMAP24_I2C_SPEED ,CONFIG_SYS_OMAP24_I2C_SLAVE ); -if (ti_i2c_eeprom_am_get (-1 ,CONFIG_SYS_I2C_EEPROM_ADDR )) +if (ti_i2c_eeprom_am_get (CONFIG_EEPROM_BUS_ADDRESS , +CONFIG_EEPROM_CHIP_ADDRESS )) printf("ti_i2c_eeprom_init failed\n"); }#endif
board/ti/am43xx/board.c +2 -1
@@ -42,7 +42,8 @@ static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;#ifdef CONFIG_TI_I2C_BOARD_DETECT void do_board_detect (void ) { -if (ti_i2c_eeprom_am_get (-1 ,CONFIG_SYS_I2C_EEPROM_ADDR )) +if (ti_i2c_eeprom_am_get (CONFIG_EEPROM_BUS_ADDRESS , +CONFIG_EEPROM_CHIP_ADDRESS ))printf ("ti_i2c_eeprom_init failed\n" ); }#endif
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 7/12 i2c: omap: Modify code to work without CONFIG_I2C_HARD
Quoted 4 lines · Simon Glass
Drop use of this long-deprecated option.
Signed-off-by Simon Glass <[email protected]>Suggested-by Lokesh Vutla <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170511/0c4ac25c/attachment.sig>
PATCH v2 8/12 i2c: Drop use of CONFIG_I2C_HARD
In reply to Simon GlassDrop use of this long-deprecated option.
---
Changes in v2:
- Drop changes to omap board.c files
README | 16 ++++++++-------- cmd/eeprom.c | 2 -- common/board_f.c | 4 ++-- common/stdio.c | 5 +---- include/configs/PATI.h | 7 +++---- include/configs/am335x_evm.h | 5 ----- include/configs/am43xx_evm.h | 6 ------ include/configs/ti_armv7_keystone2.h | 1 - scripts/config_whitelist.txt | 1 - 9 files changed, 14 insertions(+), 33 deletions(-)
README +8 -8
@@ -2204,7 +2204,9 @@ The following options need to be configured: If you do not have i2c muxes on your board, omit this define. -- Legacy I2C Support: CONFIG_HARD_I2C +----under removal: + +- Legacy I2C Support: CONFIG_SOFT_I2C NOTE: It is intended to move drivers to CONFIG_SYS_I2C which provides the following compelling advantages:
@@ -2213,14 +2215,12 @@ The following options need to be configured: - approved multibus support - better i2c mux support - ** CONFIG_HARD_I2C is now being removed ** - -----under removal: + ** CONFIG_SOFT_I2C is now being removed ** - In both cases you will need to define CONFIG_SYS_I2C_SPEED - to be the frequency (in Hz) at which you wish your i2c bus - to run and CONFIG_SYS_I2C_SLAVE to be the address of this node (ie - the CPU's i2c node address). + With CONFIG_SOFT_I2C you will need to define + CONFIG_SYS_I2C_SPEED to be the frequency (in Hz) at which you + wish your i2c bus to run and CONFIG_SYS_I2C_SLAVE to be the + address of this node (ie the CPU's i2c node address). Now, the u-boot i2c code for the mpc8xx (arch/powerpc/cpu/mpc8xx/i2c.c) sets the CPU up as a master node
cmd/eeprom.c +0 -2
@@ -73,13 +73,11 @@ void eeprom_init(int bus)#endif /* I2C EEPROM */ -#if defined(CONFIG_HARD_I2C ) || defined(CONFIG_SYS_I2C )#if defined(CONFIG_SYS_I2C )if (bus >=0 )i2c_set_bus_num (bus);#endif i2c_init (CONFIG_SYS_I2C_SPEED ,CONFIG_SYS_I2C_SLAVE ); -#endif }static int eeprom_addr (unsigned dev_addr,unsigned offset,uchar *addr)
common/board_f.c +2 -2
@@ -184,7 +184,7 @@ __weak int dram_init_banksize(void)return 0 ; } -#if defined(CONFIG_HARD_I2C ) || defined(CONFIG_SYS_I2C ) +#if defined(CONFIG_SYS_I2C )static int init_func_i2c (void ) {puts ("I2C: " );
@@ -765,7 +765,7 @@ static const init_fnc_t init_sequence_f[] = { misc_init_f, #endif INIT_FUNC_WATCHDOG_RESET -#if defined(CONFIG_HARD_I2C ) || defined(CONFIG_SYS_I2C ) +#if defined(CONFIG_SYS_I2C ) init_func_i2c,#endif #if defined(CONFIG_HARD_SPI )
common/stdio.c +1 -4
@@ -21,7 +21,7 @@#include <logbuff.h> #endif -#if defined(CONFIG_HARD_I2C ) || defined(CONFIG_SYS_I2C ) +#if defined(CONFIG_SYS_I2C )#include <i2c.h> #endif
@@ -346,9 +346,6 @@ int stdio_add_devices(void)#ifdef CONFIG_SYS_I2C i2c_init_all ();#else -#if defined(CONFIG_HARD_I2C ) -i2c_init (CONFIG_SYS_I2C_SPEED ,CONFIG_SYS_I2C_SLAVE ); -#endif #endif #ifdef CONFIG_DM_VIDEO /*
include/configs/PATI.h +3 -4
@@ -38,7 +38,6 @@*/ #define CONFIG_CMD_REGINFO #define CONFIG_CMD_REGINFO -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IRQ #define CONFIG_BOOTCOMMAND ""/* autoboot command */
@@ -135,16 +134,16 @@#define CONFIG_SYS_MAX_FLASH_BANKS 1#define CONFIG_SYS_MAX_FLASH_SECT 128 -#define CONFIG_ENV_IS_IN_EEPROM #ifdef CONFIG_ENV_IS_IN_EEPROM #define CONFIG_ENV_OFFSET 0#define CONFIG_ENV_SIZE 2048#endif -#undef CONFIG_ENV_IS_IN_FLASH +#define CONFIG_ENV_IS_IN_FLASH #ifdef CONFIG_ENV_IS_IN_FLASH #define CONFIG_ENV_SIZE 0x00002000/* Set whole sector as env */ -#define CONFIG_ENV_OFFSET ((0 - CONFIG_SYS_FLASH_BASE) - CONFIG_ENV_SIZE)/* Environment starts at this adress */ +/* Environment starts at this adress */ +#define CONFIG_ENV_OFFSET ((0 - CONFIG_SYS_FLASH_BASE) - 2048)#endif #define CONFIG_SPI 1
include/configs/am335x_evm.h +0 -5
@@ -176,11 +176,6 @@#define CONFIG_SYS_NS16550_COM5 0x481a8000/* UART4 */ #define CONFIG_SYS_NS16550_COM6 0x481aa000/* UART5 */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* PMIC support */ #define CONFIG_POWER_TPS65217 #define CONFIG_POWER_TPS65910
include/configs/am43xx_evm.h +0 -6
@@ -22,12 +22,6 @@#define CONFIG_SYS_NS16550_SERIAL #endif -/* I2C Configuration */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* Power */ #define CONFIG_POWER #define CONFIG_POWER_I2C
include/configs/ti_armv7_keystone2.h +0 -1
@@ -208,7 +208,6 @@/* U-Boot command configuration */ #define CONFIG_CMD_SAVES #define CONFIG_CMD_UBIFS -#define CONFIG_CMD_EEPROM /* U-Boot general configuration */ #define CONFIG_MISC_INIT_R
scripts/config_whitelist.txt +0 -1
@@ -1135,7 +1135,6 @@ CONFIG_G_DNL_UMS_VENDOR_NUM CONFIG_H264_FREQ CONFIG_H8300 CONFIG_HALEAKALA -CONFIG_HARD_I2C CONFIG_HARD_SPI CONFIG_HASH_VERIFY CONFIG_HAS_DATAFLASH
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 8/12 i2c: Drop use of CONFIG_I2C_HARD
Quoted 1 line · Simon Glass
Drop use of this long-deprecated option.
[snip]
Quoted 12 lines
include/configs/PATI.h +0
-1@@ -38,7 +38,6 @@*/ #define CONFIG_CMD_REGINFO #define CONFIG_CMD_REGINFO -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IRQ #define CONFIG_BOOTCOMMAND ""/* autoboot command */
[snip]
Quoted 38 lines
include/configs/am335x_evm.h +0
-5@@ -176,11 +176,6 @@#define CONFIG_SYS_NS16550_COM5 0x481a8000/* UART4 */ #define CONFIG_SYS_NS16550_COM6 0x481aa000/* UART5 */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* PMIC support */ #define CONFIG_POWER_TPS65217 #define CONFIG_POWER_TPS65910 include/configs/am43xx_evm.h +0
-6@@ -22,12 +22,6 @@#define CONFIG_SYS_NS16550_SERIAL #endif -/* I2C Configuration */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* Power */ #define CONFIG_POWER #define CONFIG_POWER_I2C include/configs/ti_armv7_keystone2.h +0
-0
include/configs/ti_armv7_keystone2.h line 213
Quoted 7 lines
include/configs/ti_armv7_keystone2.h +0
-1@@ -208,7 +208,6 @@/* U-Boot command configuration */ #define CONFIG_CMD_SAVES #define CONFIG_CMD_UBIFS -#define CONFIG_CMD_EEPROM /* U-Boot general configuration */ #define CONFIG_MISC_INIT_R
Er, what's all of this about EEPROM stuff you're dropping?
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170511/02724d7e/attachment-0001.sig>
PATCH v2 8/12 i2c: Drop use of CONFIG_I2C_HARD
Hi Tom,
Quoted 60 lines · Tom Rini
Quoted 1 line · Simon Glass
Drop use of this long-deprecated option.
[snip]
Quoted 12 lines
include/configs/PATI.h +0
-1@@ -38,7 +38,6 @@*/ #define CONFIG_CMD_REGINFO #define CONFIG_CMD_REGINFO -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IRQ #define CONFIG_BOOTCOMMAND ""/* autoboot command */ [snip]
Quoted 43 lines
include/configs/am335x_evm.h +0
-5@@ -176,11 +176,6 @@#define CONFIG_SYS_NS16550_COM5 0x481a8000/* UART4 */ #define CONFIG_SYS_NS16550_COM6 0x481aa000/* UART5 */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* PMIC support */ #define CONFIG_POWER_TPS65217 #define CONFIG_POWER_TPS65910 include/configs/am43xx_evm.h +0
-6@@ -22,12 +22,6 @@#define CONFIG_SYS_NS16550_SERIAL #endif -/* I2C Configuration */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* Power */ #define CONFIG_POWER #define CONFIG_POWER_I2C include/configs/ti_armv7_keystone2.h +0
-1@@ -208,7 +208,6 @@/* U-Boot command configuration */ #define CONFIG_CMD_SAVES #define CONFIG_CMD_UBIFS -#define CONFIG_CMD_EEPROM
Quoted 4 lines
include/configs/ti_armv7_keystone2.h line 213
Quoted 2 lines
include/configs/ti_armv7_keystone2.h +0
-0/* U-Boot general configuration */ #define CONFIG_MISC_INIT_R Er, what's all of this about EEPROM stuff you're dropping?
It uses I2C (as does the environment and RTC on some boards) so I need to drop this too. Let me know if you can think of a better way.
I am not sure this will be enough though. I looked through the CONFIG whitelist a few days ago and there are many boards that have board-specific settings like I2C addresses, speeds, etc. I am not sure how we can keep these board around since we really don't want to add these sorts of board-specific settings to Kconfig. They should be in the device tree.
Regards,
Simon
PATCH v2 8/12 i2c: Drop use of CONFIG_I2C_HARD
Quoted 63 lines · Simon Glass
Hi Tom,
Quoted 60 lines · Tom Rini
Quoted 1 line · Simon Glass
Drop use of this long-deprecated option.
[snip]
Quoted 12 lines
include/configs/PATI.h +0
-1@@ -38,7 +38,6 @@*/ #define CONFIG_CMD_REGINFO #define CONFIG_CMD_REGINFO -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IRQ #define CONFIG_BOOTCOMMAND ""/* autoboot command */ [snip]
Quoted 43 lines
include/configs/am335x_evm.h +0
-5@@ -176,11 +176,6 @@#define CONFIG_SYS_NS16550_COM5 0x481a8000/* UART4 */ #define CONFIG_SYS_NS16550_COM6 0x481aa000/* UART5 */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* PMIC support */ #define CONFIG_POWER_TPS65217 #define CONFIG_POWER_TPS65910 include/configs/am43xx_evm.h +0
-6@@ -22,12 +22,6 @@#define CONFIG_SYS_NS16550_SERIAL #endif -/* I2C Configuration */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* Power */ #define CONFIG_POWER #define CONFIG_POWER_I2C include/configs/ti_armv7_keystone2.h +0
-1@@ -208,7 +208,6 @@/* U-Boot command configuration */ #define CONFIG_CMD_SAVES #define CONFIG_CMD_UBIFS -#define CONFIG_CMD_EEPROM
Quoted 7 lines
Quoted 4 lines
include/configs/ti_armv7_keystone2.h line 213
Quoted 2 lines
include/configs/ti_armv7_keystone2.h +0
-0/* U-Boot general configuration */ #define CONFIG_MISC_INIT_R Er, what's all of this about EEPROM stuff you're dropping?
It uses I2C (as does the environment and RTC on some boards) so I need to drop this too. Let me know if you can think of a better way.
Am I confused, or is CONFIG_SYS_I2C staying (so far..) and CONFIG_HARD_I2C going? cmd/eeprom.c supports CONFIG_SYS_I2C, so we only need to drop CMD_EEPROM stuff iff the board was also CONFIG_HARD_I2C.
Quoted 6 lines
I am not sure this will be enough though. I looked through the CONFIG whitelist a few days ago and there are many boards that have board-specific settings like I2C addresses, speeds, etc. I am not sure how we can keep these board around since we really don't want to add these sorts of board-specific settings to
Kconfig. They should be in the device tree.
Yes, there's a lot of CONFIG_xxx stuff that's going to need to move out of the CONFIG namespace as it doesn't make sense there. And I have been sending out some private pings about converting PowerPC stuff (and I'm getting my own house in order right now).
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170512/57d5fc6c/attachment.sig>
PATCH v2 8/12 i2c: Drop use of CONFIG_I2C_HARD
Hi Tom,
Quoted 69 lines · Tom Rini
Quoted 68 lines · Simon Glass
Hi Tom,
Quoted 64 lines · Tom Rini
Quoted 1 line · Simon Glass
Drop use of this long-deprecated option.
[snip]
Quoted 12 lines
include/configs/PATI.h +0
-1@@ -38,7 +38,6 @@*/ #define CONFIG_CMD_REGINFO #define CONFIG_CMD_REGINFO -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IRQ #define CONFIG_BOOTCOMMAND ""/* autoboot command */ [snip]
Quoted 38 lines
include/configs/am335x_evm.h +0
-5@@ -176,11 +176,6 @@#define CONFIG_SYS_NS16550_COM5 0x481a8000/* UART4 */ #define CONFIG_SYS_NS16550_COM6 0x481aa000/* UART5 */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* PMIC support */ #define CONFIG_POWER_TPS65217 #define CONFIG_POWER_TPS65910 include/configs/am43xx_evm.h +0
-6@@ -22,12 +22,6 @@#define CONFIG_SYS_NS16550_SERIAL #endif -/* I2C Configuration */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* Power */ #define CONFIG_POWER #define CONFIG_POWER_I2C include/configs/ti_armv7_keystone2.h +0
-0include/configs/ti_armv7_keystone2.h line 213
Quoted 7 lines
include/configs/ti_armv7_keystone2.h +0
-1@@ -208,7 +208,6 @@/* U-Boot command configuration */ #define CONFIG_CMD_SAVES #define CONFIG_CMD_UBIFS -#define CONFIG_CMD_EEPROM /* U-Boot general configuration */ #define CONFIG_MISC_INIT_R Er, what's all of this about EEPROM stuff you're dropping?
Quoted 6 lines
Quoted 2 lines
It uses I2C (as does the environment and RTC on some boards) so I need to drop this too. Let me know if you can think of a better way.
Am I confused, or is
CONFIG_SYS_I2Cstaying (so far..) andCONFIG_HARD_I2Cgoing?cmd/eeprom.csupportsCONFIG_SYS_I2C, so we only need to dropCMD_EEPROMstuff iff the board was alsoCONFIG_HARD_I2C.
Yes that's my intention. But if I have stuffed something up, let me know.
Quoted 8 lines
Quoted 7 lines
I am not sure this will be enough though. I looked through the CONFIG whitelist a few days ago and there are many boards that have board-specific settings like I2C addresses, speeds, etc. I am not sure how we can keep these board around since we really don't want to add these sorts of board-specific settings to
Kconfig. They should be in the device tree.
Quoted 4 lines
Yes, there's a lot of
CONFIG_xxxstuff that's going to need to move out of the CONFIG namespace as it doesn't make sense there. And I have been sending out some private pings about converting PowerPC stuff (and I'm getting my own house in order right now).
Yes PowerPC seems to be the main area, but there are some ARM boards too. I wonder if we need a tool to automate finding boards with special configuration.
Regards,
Simon
PATCH v2 8/12 i2c: Drop use of CONFIG_I2C_HARD
Quoted 72 lines · Simon Glass
Hi Tom,
Quoted 69 lines · Tom Rini
Quoted 68 lines · Simon Glass
Hi Tom,
Quoted 64 lines · Tom Rini
Quoted 1 line · Simon Glass
Drop use of this long-deprecated option.
[snip]
Quoted 12 lines
include/configs/PATI.h +0
-1@@ -38,7 +38,6 @@*/ #define CONFIG_CMD_REGINFO #define CONFIG_CMD_REGINFO -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IRQ #define CONFIG_BOOTCOMMAND ""/* autoboot command */ [snip]
Quoted 38 lines
include/configs/am335x_evm.h +0
-5@@ -176,11 +176,6 @@#define CONFIG_SYS_NS16550_COM5 0x481a8000/* UART4 */ #define CONFIG_SYS_NS16550_COM6 0x481aa000/* UART5 */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* PMIC support */ #define CONFIG_POWER_TPS65217 #define CONFIG_POWER_TPS65910 include/configs/am43xx_evm.h +0
-6@@ -22,12 +22,6 @@#define CONFIG_SYS_NS16550_SERIAL #endif -/* I2C Configuration */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* Power */ #define CONFIG_POWER #define CONFIG_POWER_I2C include/configs/ti_armv7_keystone2.h +0
-0include/configs/ti_armv7_keystone2.h line 213
Quoted 7 lines
include/configs/ti_armv7_keystone2.h +0
-1@@ -208,7 +208,6 @@/* U-Boot command configuration */ #define CONFIG_CMD_SAVES #define CONFIG_CMD_UBIFS -#define CONFIG_CMD_EEPROM /* U-Boot general configuration */ #define CONFIG_MISC_INIT_R Er, what's all of this about EEPROM stuff you're dropping?
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
It uses I2C (as does the environment and RTC on some boards) so I need to drop this too. Let me know if you can think of a better way.
Am I confused, or is
CONFIG_SYS_I2Cstaying (so far..) andCONFIG_HARD_I2Cgoing?cmd/eeprom.csupportsCONFIG_SYS_I2C, so we only need to dropCMD_EEPROMstuff iff the board was alsoCONFIG_HARD_I2C.Yes that's my intention. But if I have stuffed something up, let me know.
Yes, it got stuffed up :) I know all of the TI related ones are wrong, and you might want to double check the others too.
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
I am not sure this will be enough though. I looked through the CONFIG whitelist a few days ago and there are many boards that have board-specific settings like I2C addresses, speeds, etc. I am not sure how we can keep these board around since we really don't want to add these sorts of board-specific settings to
Kconfig. They should be in the device tree.
Quoted 8 lines
Quoted 4 lines
Yes, there's a lot of
CONFIG_xxxstuff that's going to need to move out of the CONFIG namespace as it doesn't make sense there. And I have been sending out some private pings about converting PowerPC stuff (and I'm getting my own house in order right now).Yes PowerPC seems to be the main area, but there are some ARM boards too. I wonder if we need a tool to automate finding boards with special configuration.
My current plan is to see if people still wish to maintain the board in mainline and if so, prod them about needing to get those values converted asap.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170512/2d248353/attachment.sig>
PATCH v2 8/12 i2c: Drop use of CONFIG_I2C_HARD
Hi Tom,
Quoted 76 lines · Tom Rini
Quoted 75 lines · Simon Glass
Hi Tom,
Quoted 72 lines · Tom Rini
Quoted 70 lines · Simon Glass
Hi Tom,
Quoted 60 lines · Tom Rini
Quoted 1 line · Simon Glass
Drop use of this long-deprecated option.
[snip]
Quoted 12 lines
include/configs/PATI.h +0
-1@@ -38,7 +38,6 @@*/ #define CONFIG_CMD_REGINFO #define CONFIG_CMD_REGINFO -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IRQ #define CONFIG_BOOTCOMMAND ""/* autoboot command */ [snip]
Quoted 43 lines
include/configs/am335x_evm.h +0
-5@@ -176,11 +176,6 @@#define CONFIG_SYS_NS16550_COM5 0x481a8000/* UART4 */ #define CONFIG_SYS_NS16550_COM6 0x481aa000/* UART5 */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* PMIC support */ #define CONFIG_POWER_TPS65217 #define CONFIG_POWER_TPS65910 include/configs/am43xx_evm.h +0
-6@@ -22,12 +22,6 @@#define CONFIG_SYS_NS16550_SERIAL #endif -/* I2C Configuration */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* Power */ #define CONFIG_POWER #define CONFIG_POWER_I2C include/configs/ti_armv7_keystone2.h +0
-1@@ -208,7 +208,6 @@/* U-Boot command configuration */ #define CONFIG_CMD_SAVES #define CONFIG_CMD_UBIFS -#define CONFIG_CMD_EEPROM Quoted 4 lines
include/configs/ti_armv7_keystone2.h line 213
Quoted 2 lines
include/configs/ti_armv7_keystone2.h +0
-0/* U-Boot general configuration */ #define CONFIG_MISC_INIT_R Er, what's all of this about EEPROM stuff you're dropping?
It uses I2C (as does the environment and RTC on some boards) so I need to drop this too. Let me know if you can think of a better way.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Am I confused, or is
CONFIG_SYS_I2Cstaying (so far..) andCONFIG_HARD_I2Cgoing?cmd/eeprom.csupportsCONFIG_SYS_I2C, so we only need to dropCMD_EEPROMstuff iff the board was alsoCONFIG_HARD_I2C.Yes that's my intention. But if I have stuffed something up, let me know.
Yes, it got stuffed up :) I know all of the TI related ones are wrong, and you might want to double check the others too.
OK I will take another look. My algorithm was to disable eeprom, env or rtc when I got a build error.
Quoted 17 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
I am not sure this will be enough though. I looked through the CONFIG whitelist a few days ago and there are many boards that have board-specific settings like I2C addresses, speeds, etc. I am not sure how we can keep these board around since we really don't want to add these sorts of board-specific settings to
Kconfig. They should be in the device tree.Quoted 8 lines
Quoted 4 lines
Yes, there's a lot of
CONFIG_xxxstuff that's going to need to move out of the CONFIG namespace as it doesn't make sense there. And I have been sending out some private pings about converting PowerPC stuff (and I'm getting my own house in order right now).Yes PowerPC seems to be the main area, but there are some ARM boards too. I wonder if we need a tool to automate finding boards with special configuration.
Quoted 6 lines
My current plan is to see if people still wish to maintain the board in mainline and if so, prod them about needing to get those values converted asap.
--
Tom
Regards,
Siimon
PATCH v2 8/12 i2c: Drop use of CONFIG_I2C_HARD
Hi Tom.
Quoted 83 lines · Simon Glass
Hi Tom,
Quoted 80 lines · Tom Rini
Quoted 79 lines · Simon Glass
Hi Tom,
Quoted 75 lines · Tom Rini
Quoted 63 lines · Simon Glass
Hi Tom,
Quoted 60 lines · Tom Rini
Quoted 1 line · Simon Glass
Drop use of this long-deprecated option.
[snip]
Quoted 12 lines
include/configs/PATI.h +0
-1@@ -38,7 +38,6 @@*/ #define CONFIG_CMD_REGINFO #define CONFIG_CMD_REGINFO -#define CONFIG_CMD_EEPROM #define CONFIG_CMD_IRQ #define CONFIG_BOOTCOMMAND ""/* autoboot command */ [snip]
Quoted 43 lines
include/configs/am335x_evm.h +0
-5@@ -176,11 +176,6 @@#define CONFIG_SYS_NS16550_COM5 0x481a8000/* UART4 */ #define CONFIG_SYS_NS16550_COM6 0x481aa000/* UART5 */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* PMIC support */ #define CONFIG_POWER_TPS65217 #define CONFIG_POWER_TPS65910 include/configs/am43xx_evm.h +0
-6@@ -22,12 +22,6 @@#define CONFIG_SYS_NS16550_SERIAL #endif -/* I2C Configuration */ -#define CONFIG_CMD_EEPROM -#define CONFIG_ENV_EEPROM_IS_ON_I2C -#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50/* Main EEPROM */ -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 -/* Power */ #define CONFIG_POWER #define CONFIG_POWER_I2C include/configs/ti_armv7_keystone2.h +0
-1@@ -208,7 +208,6 @@/* U-Boot command configuration */ #define CONFIG_CMD_SAVES #define CONFIG_CMD_UBIFS -#define CONFIG_CMD_EEPROM Quoted 7 lines
Quoted 4 lines
include/configs/ti_armv7_keystone2.h line 213
Quoted 2 lines
include/configs/ti_armv7_keystone2.h +0
-0/* U-Boot general configuration */ #define CONFIG_MISC_INIT_R Er, what's all of this about EEPROM stuff you're dropping?
It uses I2C (as does the environment and RTC on some boards) so I need to drop this too. Let me know if you can think of a better way.
Am I confused, or is
CONFIG_SYS_I2Cstaying (so far..) andCONFIG_HARD_I2Cgoing?cmd/eeprom.csupportsCONFIG_SYS_I2C, so we only need to dropCMD_EEPROMstuff iff the board was alsoCONFIG_HARD_I2C.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Yes that's my intention. But if I have stuffed something up, let me know.
Yes, it got stuffed up :) I know all of the TI related ones are wrong, and you might want to double check the others too.
OK I will take another look. My algorithm was to disable eeprom, env or rtc when I got a build error.
I found the problem. I was confused by a double #ifdef. I'll fix this up and send v3.
Quoted 22 lines
Quoted 22 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
I am not sure this will be enough though. I looked through the CONFIG whitelist a few days ago and there are many boards that have board-specific settings like I2C addresses, speeds, etc. I am not sure how we can keep these board around since we really don't want to add these sorts of board-specific settings to
Kconfig. They should be in the device tree.Quoted 8 lines
Quoted 4 lines
Yes, there's a lot of
CONFIG_xxxstuff that's going to need to move out of the CONFIG namespace as it doesn't make sense there. And I have been sending out some private pings about converting PowerPC stuff (and I'm getting my own house in order right now).Yes PowerPC seems to be the main area, but there are some ARM boards too. I wonder if we need a tool to automate finding boards with special configuration.
My current plan is to see if people still wish to maintain the board in mainline and if so, prod them about needing to get those values converted asap.
Quoted 5 lines
Quoted 2 lines
--
TomRegards,
Siimon
Regards,
Simon
PATCH v2 9/12 i2c: README: Drop CONFIG_SYS_I2C_INIT_MPC5XXX
In reply to Simon GlassThis option is not used in U-Boot. Drop it.
---
Changes in v2: None
README | 2 -- 1 file changed, 2 deletions(-)
README +0 -2
@@ -2228,8 +2228,6 @@ The following options need to be configured: eg, MPC823e User's Manual p.16-473). So, set CONFIG_SYS_I2C_SLAVE to 0. - CONFIG_SYS_I2C_INIT_MPC5XXX - When a board is reset during an i2c bus transfer chips might think that the current transfer is still in progress. Reset the slave devices by sending start
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 10/12 i2c: Drop CONFIG_SYS_I2C_BOARD_LATE_INIT
In reply to Simon GlassThis option is not used by any boards. Drop it.
---
Changes in v2: None
README | 11 ----------- drivers/i2c/fsl_i2c.c | 9 --------- drivers/i2c/fti2c010.c | 9 --------- include/i2c.h | 3 --- scripts/config_whitelist.txt | 1 - 5 files changed, 33 deletions(-)
README +0 -11
@@ -2323,17 +2323,6 @@ The following options need to be configured: custom i2c_init_board() routine in boards/xxx/board.c is run early in the boot sequence. - CONFIG_SYS_I2C_BOARD_LATE_INIT - - An alternative to CONFIG_SYS_I2C_INIT_BOARD. If this option is - defined a custom i2c_board_late_init() routine in - boards/xxx/board.c is run AFTER the operations in i2c_init() - is completed. This callpoint can be used to unreset i2c bus - using CPU i2c controller register accesses for CPUs whose i2c - controller provide such a method. It is called at the end of - i2c_init() to allow i2c_init operations to setup the i2c bus - controller on the CPU (e.g. setting bus speed & slave address). - CONFIG_I2CFAST (PPC405GP|PPC405EP only) This option enables configuration of bi_iic_fast[] flags
drivers/i2c/fsl_i2c.c +0 -9
@@ -284,15 +284,6 @@ static void __i2c_init(const struct fsl_i2c_base *base, int speed, intbreak ; } - -#ifdef CONFIG_SYS_I2C_BOARD_LATE_INIT -/* Call board specific i2c bus reset routine AFTER the bus has been -* initialized. Use either this callpoint or i2c_init_board; -* which is called before i2c_init operations. -* For details about this problem see doc/I2C_Edge_Conditions. -*/ -i2c_board_late_init (); -#endif } static int
drivers/i2c/fti2c010.c +0 -9
@@ -146,15 +146,6 @@ static void fti2c010_init(struct i2c_adapter *adap, int speed, int slaveaddr)set_i2c_bus_speed (chip, speed);/* slave init, don't care */ - -#ifdef CONFIG_SYS_I2C_BOARD_LATE_INIT -/* Call board specific i2c bus reset routine AFTER the bus has been -* initialized. Use either this callpoint or i2c_init_board; -* which is called before fti2c010_init operations. -* For details about this problem see doc/I2C_Edge_Conditions. -*/ -i2c_board_late_init (); -#endif }/*
include/i2c.h +0 -3
@@ -706,9 +706,6 @@ void i2c_early_init_f(void);#endif void i2c_init (int speed,int slaveaddr);void i2c_init_board (void ); -#ifdef CONFIG_SYS_I2C_BOARD_LATE_INIT -void i2c_board_late_init (void ); -#endif #ifdef CONFIG_SYS_I2C /*
scripts/config_whitelist.txt +0 -1
@@ -4223,7 +4223,6 @@ CONFIG_SYS_I2C_BASE2 CONFIG_SYS_I2C_BASE3 CONFIG_SYS_I2C_BASE4 CONFIG_SYS_I2C_BASE5 -CONFIG_SYS_I2C_BOARD_LATE_INIT CONFIG_SYS_I2C_BOOT_EEPROM_ADDR CONFIG_SYS_I2C_BUSES CONFIG_SYS_I2C_BUS_MAX
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 11/12 Drop CONFIG_I2CFAST
In reply to Simon GlassThis option is not used in U-Boot. Drop it.
---
Changes in v2: None
README | 6 ------ common/board_r.c | 17 ----------------- scripts/config_whitelist.txt | 1 - 3 files changed, 24 deletions(-)
README +0 -6
@@ -2323,12 +2323,6 @@ The following options need to be configured: custom i2c_init_board() routine in boards/xxx/board.c is run early in the boot sequence. - CONFIG_I2CFAST (PPC405GP|PPC405EP only) - - This option enables configuration of bi_iic_fast[] flags - in u-boot bd_info structure based on u-boot environment - variable "i2cfast". (see also i2cfast) - CONFIG_I2C_MULTI_BUS This option allows the use of multiple I2C buses, each of which
common/board_r.c +0 -17
@@ -485,24 +485,7 @@ static int initr_env(void)/* Initialize from environment */ load_addr =getenv_ulong ("loadaddr" ,16 , load_addr); -#if defined(CONFIG_SYS_EXTBDINFO ) -#if defined(CONFIG_405GP ) || defined(CONFIG_405EP ) -#if defined(CONFIG_I2CFAST ) -/* -* set bi_iic_fast for linux taking environment variable -* "i2cfast" into account -*/ - { -char *s =getenv ("i2cfast" ); -if (s && ((*s =='y' ) || (*s =='Y' ))) { - gd->bd->bi_iic_fast[0 ] =1 ; - gd->bd->bi_iic_fast[1 ] =1 ; - } - } -#endif /* CONFIG_I2CFAST */ -#endif /* CONFIG_405GP, CONFIG_405EP */ -#endif /* CONFIG_SYS_EXTBDINFO */ return 0 ; }
scripts/config_whitelist.txt +0 -1
@@ -1320,7 +1320,6 @@ CONFIG_HW_ENV_SETTINGS CONFIG_HW_WATCHDOG CONFIG_HW_WATCHDOG_TIMEOUT_MS CONFIG_I2C -CONFIG_I2CFAST CONFIG_I2C_CHIPADDRESS CONFIG_I2C_CMD_TREE CONFIG_I2C_ENV_EEPROM_BUS
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog
PATCH v2 12/12 Drop use of CONFIG_I2C_SOFT
In reply to Simon GlassThis option is not used in U-Boot. Drop it.
---
Changes in v2:
- Rebase to master
README | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-)
README +1 -31
@@ -2204,37 +2204,7 @@ The following options need to be configured: If you do not have i2c muxes on your board, omit this define. -----under removal: - -- Legacy I2C Support: CONFIG_SOFT_I2C - - NOTE: It is intended to move drivers to CONFIG_SYS_I2C which - provides the following compelling advantages: - - - more than one i2c adapter is usable - - approved multibus support - - better i2c mux support - - ** CONFIG_SOFT_I2C is now being removed ** - - With CONFIG_SOFT_I2C you will need to define - CONFIG_SYS_I2C_SPEED to be the frequency (in Hz) at which you - wish your i2c bus to run and CONFIG_SYS_I2C_SLAVE to be the - address of this node (ie the CPU's i2c node address). - - Now, the u-boot i2c code for the mpc8xx - (arch/powerpc/cpu/mpc8xx/i2c.c) sets the CPU up as a master node - and so its address should therefore be cleared to 0 (See, - eg, MPC823e User's Manual p.16-473). So, set - CONFIG_SYS_I2C_SLAVE to 0. - - When a board is reset during an i2c bus transfer - chips might think that the current transfer is still - in progress. Reset the slave devices by sending start - commands until the slave device responds. - - That's all that's required for CONFIG_HARD_I2C. - +- Legacy I2C Support: If you use the software i2c interface (CONFIG_SYS_I2C_SOFT) then the following macros need to be defined (examples are from include/configs/lwmon.h):
Signature · 1 line
2.13.0.rc2.291.g57267f2277-goog