[U-Boot] [PATCH v2 17/17] dm: i2c: tegra: Convert to driver model

Heiko Schocher hs at denx.de
Mon Nov 17 07:41:04 CET 2014


Hello Simon,

Am 11.11.2014 18:46, schrieb Simon Glass:
> This converts all Tegra boards over to use driver model for I2C. The driver
> is adjusted to use driver model and the following obsolete CONFIGs are
> removed:
>
>     - CONFIG_SYS_I2C_INIT_BOARD
>     - CONFIG_I2C_MULTI_BUS
>     - CONFIG_SYS_MAX_I2C_BUS
>     - CONFIG_SYS_I2C_SPEED
>     - CONFIG_SYS_I2C
>
> This has been tested on:
> - trimslice (no I2C)
> - beaver
> - Jetson-TK1
>
> It has not been tested on Tegra 114 as I don't have that board.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Adjust tegra_i2c_child_pre_probe() to permit generic I2C devices
> - Correct the compatible strings for I2C buses
> - Don't init if the speed is 0, since this breaks the controller
> - Expand coverage to all Tegra boards
>
>   arch/arm/cpu/tegra20-common/pmu.c           |  21 +-
>   arch/arm/dts/tegra124-jetson-tk1.dts        |   1 -
>   arch/arm/dts/tegra124-norrin.dts            |   1 -
>   arch/arm/dts/tegra30-tec-ng.dts             |   4 +
>   arch/arm/include/asm/arch-tegra/tegra_i2c.h |   2 +-
>   board/avionic-design/common/tamonten-ng.c   |  12 +-
>   board/nvidia/cardhu/cardhu.c                |  13 +-
>   board/nvidia/common/board.c                 |   4 -
>   board/nvidia/dalmore/dalmore.c              |  21 +-
>   board/nvidia/whistler/whistler.c            |  29 ++-
>   board/toradex/apalis_t30/apalis_t30.c       |  19 +-
>   drivers/i2c/tegra_i2c.c                     | 320 +++++++++++-----------------
>   drivers/power/tps6586x.c                    |  27 +--
>   include/configs/apalis_t30.h                |   3 -
>   include/configs/beaver.h                    |   3 -
>   include/configs/cardhu.h                    |   5 -
>   include/configs/colibri_t30.h               |   3 -
>   include/configs/dalmore.h                   |   5 -
>   include/configs/jetson-tk1.h                |   5 -
>   include/configs/norrin.h                    |   5 -
>   include/configs/seaboard.h                  |   3 -
>   include/configs/tec-ng.h                    |   5 -
>   include/configs/tegra-common.h              |   1 +
>   include/configs/tegra114-common.h           |   3 -
>   include/configs/tegra124-common.h           |   3 -
>   include/configs/tegra20-common.h            |   3 -
>   include/configs/tegra30-common.h            |   3 -
>   include/configs/trimslice.h                 |   3 -
>   include/configs/venice2.h                   |   5 -
>   include/configs/whistler.h                  |   3 -
>   include/tps6586x.h                          |   4 +-
>   31 files changed, 211 insertions(+), 328 deletions(-)

Acked-by: Heiko Schocher <hs at denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list