From: Lokesh Vutla Date: Mon, 22 Feb 2021 11:38:21 +0530 Subject: [PATCH 2/3] am33xx: board: remove GPIO platforma data In-Reply-To: <20210213110047.29054-3-dariobin@libero.it> References: <20210213110047.29054-1-dariobin@libero.it> <20210213110047.29054-3-dariobin@libero.it> Message-ID: <71bfd7a1-31d7-4b24-4208-558b340d9fb2@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Dario, On 13/02/21 4:30 pm, Dario Binacchi wrote: > Since the board has been converted to driver model and DT is supported, > GPIO platform are no more required and can be removed. > > Signed-off-by: Dario Binacchi Not all am335x platforms are converted to DT. Due to SPL size constraints am335x_evm_defconfig is still using plat data. This patch will break such platforms no? Thanks and regards, Lokesh > --- > > arch/arm/mach-omap2/am33xx/board.c | 23 ----------------------- > 1 file changed, 23 deletions(-) > > diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c > index e17898d8fb..f48d4cefc4 100644 > --- a/arch/arm/mach-omap2/am33xx/board.c > +++ b/arch/arm/mach-omap2/am33xx/board.c > @@ -126,29 +126,6 @@ U_BOOT_DRVINFOS(am33xx_i2c) = { > }; > #endif > > -#if CONFIG_IS_ENABLED(DM_GPIO) > -static const struct omap_gpio_plat am33xx_gpio[] = { > - { 0, AM33XX_GPIO0_BASE }, > - { 1, AM33XX_GPIO1_BASE }, > - { 2, AM33XX_GPIO2_BASE }, > - { 3, AM33XX_GPIO3_BASE }, > -#ifdef CONFIG_AM43XX > - { 4, AM33XX_GPIO4_BASE }, > - { 5, AM33XX_GPIO5_BASE }, > -#endif > -}; > - > -U_BOOT_DRVINFOS(am33xx_gpios) = { > - { "gpio_omap", &am33xx_gpio[0] }, > - { "gpio_omap", &am33xx_gpio[1] }, > - { "gpio_omap", &am33xx_gpio[2] }, > - { "gpio_omap", &am33xx_gpio[3] }, > -#ifdef CONFIG_AM43XX > - { "gpio_omap", &am33xx_gpio[4] }, > - { "gpio_omap", &am33xx_gpio[5] }, > -#endif > -}; > -#endif > #if CONFIG_IS_ENABLED(DM_SPI) && !CONFIG_IS_ENABLED(OF_CONTROL) > static const struct omap3_spi_plat omap3_spi_pdata = { > .regs = (struct mcspi *)AM33XX_SPI0_OFFSET, >