From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Thu, 14 Jan 2016 06:57:33 +0100 Subject: [U-Boot] [PATCH 30/50] dm: i2c: Allow muxes to be enabled for SPL separately In-Reply-To: <1452727540-3249-31-git-send-email-sjg@chromium.org> References: <1452727540-3249-1-git-send-email-sjg@chromium.org> <1452727540-3249-31-git-send-email-sjg@chromium.org> Message-ID: <569738CD.7070200@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Simon, Am 14.01.2016 um 00:25 schrieb Simon Glass: > Since I2C muxes are seldom needed in SPL, and the code for this increases > the size somewhat, add a separate option to enable I2C muxes for SPL. > > Signed-off-by: Simon Glass > --- > > drivers/i2c/Makefile | 4 ++-- > drivers/i2c/muxes/Kconfig | 9 +++++++++ > drivers/i2c/muxes/Makefile | 2 +- > 3 files changed, 12 insertions(+), 3 deletions(-) Thanks! Acked-by: Heiko Schocher bye, Heiko > > diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile > index 811ad9b..bbbc0dc 100644 > --- a/drivers/i2c/Makefile > +++ b/drivers/i2c/Makefile > @@ -7,8 +7,8 @@ > obj-$(CONFIG_DM_I2C) += i2c-uclass.o > obj-$(CONFIG_DM_I2C_COMPAT) += i2c-uclass-compat.o > obj-$(CONFIG_DM_I2C_GPIO) += i2c-gpio.o > -obj-$(CONFIG_I2C_CROS_EC_TUNNEL) += cros_ec_tunnel.o > -obj-$(CONFIG_I2C_CROS_EC_LDO) += cros_ec_ldo.o > +obj-$(CONFIG_$(SPL_)I2C_CROS_EC_TUNNEL) += cros_ec_tunnel.o > +obj-$(CONFIG_$(SPL_)I2C_CROS_EC_LDO) += cros_ec_ldo.o > > obj-$(CONFIG_SYS_I2C_ADI) += adi_i2c.o > obj-$(CONFIG_I2C_MV) += mv_i2c.o > diff --git a/drivers/i2c/muxes/Kconfig b/drivers/i2c/muxes/Kconfig > index 913093d..f959d9d 100644 > --- a/drivers/i2c/muxes/Kconfig > +++ b/drivers/i2c/muxes/Kconfig > @@ -7,6 +7,15 @@ config I2C_MUX > bus select is handled automatically when that bus is accessed, > using a suitable I2C MUX driver. > > +config SPL_I2C_MUX > + bool "Support I2C multiplexers on SPL" > + depends on I2C_MUX > + help > + This enables I2C buses to be multiplexed, so that you can select > + one of several buses using some sort of control mechanism. The > + bus select is handled automatically when that bus is accessed, > + using a suitable I2C MUX driver. > + > config I2C_ARB_GPIO_CHALLENGE > bool "GPIO-based I2C arbitration" > depends on I2C_MUX > diff --git a/drivers/i2c/muxes/Makefile b/drivers/i2c/muxes/Makefile > index 612cc27..47c1240 100644 > --- a/drivers/i2c/muxes/Makefile > +++ b/drivers/i2c/muxes/Makefile > @@ -4,4 +4,4 @@ > # SPDX-License-Identifier: GPL-2.0+ > # > obj-$(CONFIG_I2C_ARB_GPIO_CHALLENGE) += i2c-arb-gpio-challenge.o > -obj-$(CONFIG_I2C_MUX) += i2c-mux-uclass.o > +obj-$(CONFIG_$(SPL_)I2C_MUX) += i2c-mux-uclass.o > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany