All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 006/108] dm: gpio: Allow control of GPIO uclass in SPL
Date: Sat, 2 Nov 2019 17:38:17 +0800	[thread overview]
Message-ID: <CAEUhbmXur0cKe3dauy9Cp31UiR-MrPkmFp+42uFJu3uMqXCTrA@mail.gmail.com> (raw)
In-Reply-To: <CAEUhbmX7+Q3L76dtreM_9Jxv=RHbOXfQ3ZKn9ES65iOnC23viA@mail.gmail.com>

On Mon, Oct 28, 2019 at 12:45 PM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> On Mon, Oct 21, 2019 at 11:33 AM Simon Glass <sjg@chromium.org> wrote:
> >
> > At present if CONFIG_SPL_GPIO_SUPPORT is enabled then the GPIO uclass
> > is included in SPL/TPL without any control for boards. Some boards may
> > want to disable this to reduce code size where GPIOs are not needed in
> > SPL or TPL.
> >
> > Add a new Kconfig option to permit this. Default it to 'y' so that
> > existing boards work correctly.
> >
> > Change existing uses of CONFIG_DM_GPIO to CONFIG_IS_ENABLED(DM_GPIO) to
> > preserve the current behaviour. Also update the 74x164 GPIO driver since
> > it cannot build with SPL.
> >
> > This allows us to remove the hacks in config_uncmd_spl.h and
> > Makefile.uncmd_spl (eventually those files should be removed).
> >
> > Signed-off-by: Simon Glass <sjg@chromium.org>
> > ---
> >
> > Changes in v3: None
> > Changes in v2:
> > - Fix the Kconfig condition to avoid build errors on snow
> >
> >  arch/arm/include/asm/omap_gpio.h              |  2 +-
> >  arch/arm/mach-at91/include/mach/at91sam9260.h |  2 +-
> >  arch/arm/mach-davinci/include/mach/gpio.h     |  2 +-
> >  arch/arm/mach-omap2/am33xx/board.c            |  4 ++--
> >  arch/arm/mach-omap2/omap3/board.c             |  2 +-
> >  arch/arm/mach-omap2/omap5/hwinit.c            |  2 +-
> >  board/freescale/imx8qm_mek/imx8qm_mek.c       |  2 +-
> >  board/freescale/imx8qxp_mek/imx8qxp_mek.c     |  2 +-
> >  board/gateworks/gw_ventana/Kconfig            |  3 +++
> >  board/toradex/apalis-imx8/apalis-imx8.c       |  2 +-
> >  drivers/gpio/Kconfig                          | 22 +++++++++++++++++++
> >  drivers/gpio/Makefile                         |  4 +++-
> >  drivers/gpio/at91_gpio.c                      |  6 ++---
> >  drivers/gpio/atmel_pio4.c                     |  2 +-
> >  drivers/gpio/da8xx_gpio.c                     |  6 ++---
> >  drivers/gpio/da8xx_gpio.h                     |  2 +-
> >  drivers/gpio/mxc_gpio.c                       |  4 ++--
> >  drivers/gpio/mxs_gpio.c                       |  4 ++--
> >  drivers/gpio/omap_gpio.c                      |  6 ++---
> >  drivers/gpio/sunxi_gpio.c                     |  8 +++----
> >  drivers/i2c/i2c-uclass.c                      |  6 ++---
> >  drivers/i2c/muxes/pca954x.c                   |  4 ++--
> >  drivers/mmc/fsl_esdhc_imx.c                   | 13 ++++++-----
> >  drivers/mmc/omap_hsmmc.c                      |  2 +-
> >  drivers/net/designware.c                      | 10 ++++-----
> >  drivers/net/designware.h                      |  4 ++--
> >  drivers/net/fec_mxc.c                         |  6 ++---
> >  drivers/net/fec_mxc.h                         |  2 +-
> >  drivers/net/mvneta.c                          |  4 ++--
> >  drivers/net/mvpp2.c                           |  8 +++----
> >  drivers/net/sun8i_emac.c                      | 12 +++++-----
> >  drivers/pci/pci-aardvark.c                    |  4 ++--
> >  drivers/pci/pcie_dw_mvebu.c                   |  4 ++--
> >  drivers/spi/atmel_spi.c                       | 10 ++++-----
> >  drivers/spi/designware_spi.c                  |  4 ++--
> >  drivers/tpm/tpm2_tis_spi.c                    |  2 +-
> >  include/config_uncmd_spl.h                    |  1 -
> >  include/configs/at91-sama5_common.h           |  5 +++--
> >  include/configs/gw_ventana.h                  |  1 -
> >  include/configs/mx6ul_14x14_evk.h             |  1 +
> >  scripts/Makefile.uncmd_spl                    |  1 -
> >  41 files changed, 109 insertions(+), 82 deletions(-)
> >
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

applied to u-boot-x86, thanks!

  reply	other threads:[~2019-11-02  9:38 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-21  3:31 [U-Boot] [PATCH v3 001/108] binman: Correct symbol calculation with non-zero image base Simon Glass
2019-10-21  3:31 ` [U-Boot] [PATCH v3 002/108] binman: Add support for Intel FSP-S Simon Glass
2019-10-28  3:27   ` Bin Meng
2019-11-02  9:38     ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 003/108] binman: Add support for Intel FSP-T Simon Glass
2019-10-28  3:27   ` Bin Meng
2019-11-02  9:38     ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 004/108] binman: Fix up comment in intel-fsp-m Simon Glass
2019-10-28  3:27   ` Bin Meng
2019-11-02  9:38     ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 005/108] binman: Add a library to access binman entries Simon Glass
2019-10-28  3:27   ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 006/108] dm: gpio: Allow control of GPIO uclass in SPL Simon Glass
2019-10-28  4:45   ` Bin Meng
2019-11-02  9:38     ` Bin Meng [this message]
2019-11-02 23:10       ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 007/108] dm: core: Fix offset_to_ofnode() with invalid offset Simon Glass
2019-10-28  4:45   ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 008/108] dm: pci: Delay auto-config until after relocation Simon Glass
2019-10-28  4:45   ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 009/108] dm: pci: Move pci_get_devfn() into a common file Simon Glass
2019-10-28  4:45   ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 010/108] net: Move the checksum functions to lib/ Simon Glass
2019-10-28  4:45   ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 011/108] i2c: Tidy up designware PCI support Simon Glass
2019-10-28  4:40   ` Heiko Schocher
2019-10-28  5:54   ` Bin Meng
2019-10-28 10:43   ` Stefan Roese
2019-10-21  3:31 ` [U-Boot] [PATCH v3 012/108] spl: Correct priority selection for image loaders Simon Glass
2019-10-28  5:54   ` Bin Meng
2019-11-02  9:42     ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 013/108] x86: spi: Add helper functions for Intel Fast SPI Simon Glass
2019-11-02  4:13   ` Bin Meng
2019-11-02 21:04     ` Simon Glass
2019-11-02 23:18       ` Bin Meng
2019-11-03 14:36         ` Simon Glass
2019-11-03 23:40           ` Simon Glass
2019-10-21  3:31 ` [U-Boot] [PATCH v3 014/108] spi: Add support for memory-mapped flash Simon Glass
2019-11-02  4:13   ` Bin Meng
2019-11-02  9:42     ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 015/108] dm: doc: Correct of-platdata driver name Simon Glass
2019-10-28  5:59   ` Bin Meng
2019-11-02  9:42     ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 016/108] fdt: Show the preprocessed .dts file on error Simon Glass
2019-10-28  6:47   ` Bin Meng
2019-11-02 18:02     ` Simon Glass
2019-11-04  8:28       ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 017/108] RFC: sandbox: net: Suppress the MAC-address warnings Simon Glass
2019-10-21  3:31 ` [U-Boot] [PATCH v3 018/108] Revert "RFC: sandbox: net: Suppress the MAC-address warnings" Simon Glass
2019-10-28  6:16   ` Bin Meng
2019-11-02 18:07     ` Simon Glass
2019-10-21  3:31 ` [U-Boot] [PATCH v3 019/108] spl: Add a size check for TPL Simon Glass
2019-10-28  6:34   ` Bin Meng
2019-11-02  9:47     ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 020/108] sandbox: pci: Create a new sandbox_pci_read_bar() function Simon Glass
2019-10-28  6:36   ` Bin Meng
2019-10-21  3:31 ` [U-Boot] [PATCH v3 021/108] x86: timer: Set up the timer in timer_early_get_count() Simon Glass
2019-10-28  7:12   ` Bin Meng
2019-11-02  9:47     ` Bin Meng
2019-10-28  3:27 ` [U-Boot] [PATCH v3 001/108] binman: Correct symbol calculation with non-zero image base Bin Meng
2019-11-02  9:38   ` Bin Meng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEUhbmXur0cKe3dauy9Cp31UiR-MrPkmFp+42uFJu3uMqXCTrA@mail.gmail.com \
    --to=bmeng.cn@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.