u-boot/board/technexion
Braden Kell 89e54e221c [iot] Move i2c_setup calls to board_init
i2c_setup calls force_idle_bus which calls
get_timer if SDA and SCL are not high. On the Pico
baseboard there are level shifters that pull SDA
and SCL high, but the test harness does not have
pull-ups on these lines. Because
board_early_init_f is called before timer_init the
call to get_timer was causing a divide-by-zero
error due to CNTFRQ not being initialized. Moving
the i2c_setup calls to board_init fixes this
issue. power_init_board (which uses I2C to
configure the PMIC) is called after board_init, so
this should be safe.

Bug:
Test: PMIC registers are read correctly on both
      boards (DEV_ID=0x30 REV_ID=0x11)
Test: iMX7D SOM boots on Pico baseboard
Test: iMX7D SOM boots on test harness
Change-Id: Iecdd28f3177fe915a3b614565d8dfa6e20e6a842
2018-08-20 21:25:46 +08:00
..
pico-imx6dl MLK-18591-8 android: iot: Add board support for imx6dl pico pi 2018-06-13 03:06:47 -07:00
pico-imx6ul imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
pico-imx7d [iot] Move i2c_setup calls to board_init 2018-08-20 21:25:46 +08:00
picosom-imx6ul MLK-18591-9 android: iot: Add board support for imx6ul pico-som 2018-06-13 03:06:47 -07:00
tao3530 Merge branch 'master' of git://git.denx.de/u-boot-mmc 2017-05-16 08:10:50 -04:00
twister env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00