public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH 28/30] spi: Enable missing CONFIG_SPL_DM_SPI support
Date: Thu, 11 Jun 2020 08:17:41 -0400	[thread overview]
Message-ID: <20200611121741.GS24893@bill-the-cat> (raw)
In-Reply-To: <CAHCN7xLLZb5Wk5VQYgp_RJ3szcWcJ6hdADYaaVjxWn9Uor_Z2g@mail.gmail.com>

On Thu, Jun 11, 2020 at 05:38:15AM -0500, Adam Ford wrote:
> On Wed, Jun 10, 2020 at 3:17 PM Tom Rini <trini@konsulko.com> wrote:
> >
> > Due to how the Makefile logic is we currently get DM_SPI support in SPL
> > enabled by having DM_SPI enabled for full U-Boot but not having
> > CONFIG_SPL_DM_SPI set.  Add this missing option to boards that were
> > inadvertently making use of it.
> 
> Not knowing exactly which patches to apply to see the Makefile changes
> in question, I'm just doing a code review instead of the test.
> >
> > Cc: Adam Ford <aford173@gmail.com>
> [snip]
> 
> Acked-by: Adam Ford <aford173@gmail.com> #da850evm
> 
> > Signed-off-by: Tom Rini <trini@konsulko.com>
> > ---
> 
> >  configs/da850evm_defconfig                                     | 1 +
> >  configs/da850evm_nand_defconfig                                | 1 +
> 
> The da850evm_defconfig is setup to boot from SPI Flash, so that board
> will need it.  Thank you.
> 
> The da850evm_nand_defconfig is set to boot from NAND via the NAND
> controller and not SPI, so it's probably not necessary, but  I don't
> think it hurts anything. I may go through later and remove the
> CONFIG_SPL_DM_SPI from the nand version later.
> 
> [snip]
> 
> > diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig
> > index 1a6a97ed161a..12768065f3ab 100644
> > --- a/configs/da850evm_defconfig
> > +++ b/configs/da850evm_defconfig
> > @@ -12,6 +12,7 @@ CONFIG_ENV_OFFSET=0x80000
> >  CONFIG_ENV_SECT_SIZE=0x10000
> >  CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000
> >  CONFIG_DM_GPIO=y
> > +CONFIG_SPL_DM_SPI=y
> 
> Thank you, we'll need this.
> 
> >  CONFIG_SPL_SERIAL_SUPPORT=y
> >  CONFIG_NR_DRAM_BANKS=1
> >  CONFIG_SPL=y
> > diff --git a/configs/da850evm_nand_defconfig b/configs/da850evm_nand_defconfig
> > index e805f2c10eda..13026fd1ea2c 100644
> > --- a/configs/da850evm_nand_defconfig
> > +++ b/configs/da850evm_nand_defconfig
> > @@ -11,6 +11,7 @@ CONFIG_ENV_SIZE=0x20000
> >  CONFIG_ENV_OFFSET=0x0
> >  CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000
> >  CONFIG_DM_GPIO=y
> > +CONFIG_SPL_DM_SPI=y
> 
> If you do a V2 for some reason and don't want to add this here in the
> future, I wouldn't object.  If not, I'll do some testing later with
> this removed.

This is similar to the socfpga case Marek pointed out.  Today, the
platforms are building with SPI support enabled and are implicitly
getting SPL_DM_SPI enabled too
http://patchwork.ozlabs.org/project/uboot/patch/20200610201634.8457-30-trini at konsulko.com/
is the Makefile patch but it's just dropping in to the DM or not-DM side
based on SPL/TPL_DM and not just DM in main U-Boot.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200611/519edce2/attachment.sig>

  reply	other threads:[~2020-06-11 12:17 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-10 20:16 [PATCH 00/30] Finish some Kconfig migrations Tom Rini
2020-06-10 20:16 ` [PATCH 01/30] Convert CONFIG_AM335X_LCD to Kconfig Tom Rini
2020-06-10 20:16 ` [PATCH 02/30] Convert CONFIG_ARCH_MISC_INIT " Tom Rini
2020-06-10 20:16 ` [PATCH 03/30] Convert CONFIG_ARM_PL180_MMCI " Tom Rini
2020-06-10 20:16 ` [PATCH 04/30] Convert CONFIG_ARMV7_PSCI et al " Tom Rini
2020-06-10 20:16 ` [PATCH 05/30] Convert CONFIG_AT91_GPIO " Tom Rini
2020-06-10 20:16 ` [PATCH 06/30] Convert CONFIG_ATMEL_HLCD " Tom Rini
2020-06-10 20:16 ` [PATCH 07/30] Convert CONFIG_ATMEL_NAND_HW_PMECC et al " Tom Rini
2020-06-10 20:16 ` [PATCH 08/30] Convert CONFIG_ATMEL_USART " Tom Rini
2020-06-10 20:16 ` [PATCH 09/30] bk4r1: Re-convert CONFIG_AUTOBOOT_PROMPT et al " Tom Rini
2020-06-10 20:16 ` [PATCH 10/30] Convert CONFIG_BAUDRATE " Tom Rini
2020-06-10 20:16 ` [PATCH 11/30] Convert CONFIG_BOARD_EARLY_INIT_F et al " Tom Rini
2020-06-10 20:16 ` [PATCH 12/30] Convert CONFIG_BOOTARGS " Tom Rini
2020-06-10 20:16 ` [PATCH 13/30] Convert CONFIG_BCH " Tom Rini
2020-06-10 20:16 ` [PATCH 14/30] Convert CONFIG_BOARD_TYPES " Tom Rini
2020-06-10 20:16 ` [PATCH 15/30] arm: capricorn: Convert CONFIG_BOOTCOUNT_ENV et al " Tom Rini
2020-06-10 20:16 ` [PATCH 16/30] arm: abb secu1: Convert CONFIG_BOOTDELAY " Tom Rini
2020-06-12  7:26   ` Holger Brunck
2020-06-10 20:16 ` [PATCH 17/30] Convert CONFIG_BOOTP_DNS2 " Tom Rini
2020-06-10 20:16 ` [PATCH 18/30] Convert CONFIG_BOUNCE_BUFFER " Tom Rini
2020-06-10 20:16 ` [PATCH 19/30] Convert CONFIG_BUILD_TARGET " Tom Rini
2020-06-10 20:16 ` [PATCH 20/30] Convert CONFIG_CMDLINE_EDITING " Tom Rini
2020-06-10 20:16 ` [PATCH 21/30] Convert CONFIG_CONS_INDEX " Tom Rini
2020-06-10 20:16 ` [PATCH 22/30] arm: toradex: Convert CONFIG_CONSOLE_MUX " Tom Rini
2020-06-11 14:35   ` Igor Opaniuk
2020-06-10 20:16 ` [PATCH 23/30] Convert CONFIG_CONSOLE_SCROLL_LINES " Tom Rini
2020-06-10 20:16 ` [PATCH 24/30] arm: imx: Finish migration of CONFIG_CSF_SIZE " Tom Rini
2020-06-11  5:28   ` [EXT] " Ye Li
2020-06-11 12:11     ` Tom Rini
2020-06-11 21:16       ` Tom Rini
2020-06-10 20:16 ` [PATCH 25/30] arm: imx: Finish migration from CONFIG_SECURE_BOOT to CONFIG_IMX_HAB Tom Rini
2020-06-11 19:31   ` Vladimir Oltean
2020-06-11 20:30     ` Tom Rini
2020-06-11 21:02       ` Vladimir Oltean
2020-06-11 21:07         ` Tom Rini
2020-06-10 20:16 ` [PATCH 26/30] Convert CONFIG_BOOTM_NETBSD to Kconfig Tom Rini
2020-06-10 20:16 ` [PATCH 27/30] Kconfig: Remove CONFIG_CLOCKS_IN_MHZ Tom Rini
2020-06-10 20:16 ` [PATCH 28/30] spi: Enable missing CONFIG_SPL_DM_SPI support Tom Rini
2020-06-10 20:38   ` Marek Vasut
2020-06-10 21:01     ` Tom Rini
2020-06-10 21:48       ` Tom Rini
2020-06-10 21:52         ` Marek Vasut
2020-06-10 22:01           ` Tom Rini
2020-06-11  7:28   ` Patrick DELAUNAY
2020-06-11 10:38   ` Adam Ford
2020-06-11 12:17     ` Tom Rini [this message]
2020-06-12  2:09       ` Adam Ford
2020-06-12  2:24         ` Adam Ford
2020-06-12  7:59   ` Luca Ceresoli
2020-06-10 20:16 ` [PATCH 29/30] spi: Update build guard for DM objects to cover SPL/TPL Tom Rini
2020-06-10 20:16 ` [PATCH 30/30] Convert CONFIG_CADENCE_QSPI to Kconfig Tom Rini

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=20200611121741.GS24893@bill-the-cat \
    --to=trini@konsulko.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox