From: Mauro Condarelli Date: Thu, 13 Feb 2020 11:18:39 +0100 Subject: [PATCH v5] Add support for SoM "VoCore2". In-Reply-To: References: <20200212153016.25420-1-mc5686@mclink.it> <1581561150.26858.65.camel@mcddlt001> Message-ID: <8fcb1c41-50ad-e676-56fd-3a9cfac4cd39@mclink.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Weijie, On 2/13/20 10:09 AM, Mauro Condarelli wrote: >>> +}; >>> diff --git a/arch/mips/mach-mtmips/Kconfig b/arch/mips/mach-mtmips/Kconfig >>> index bcd635f438..489e466daf 100644 >>> --- a/arch/mips/mach-mtmips/Kconfig >>> +++ b/arch/mips/mach-mtmips/Kconfig >>> @@ -83,6 +83,13 @@ config BOARD_MT7628_RFB >>> SPI-NOR flash, 1 built-in switch with 5 ports, 1 UART, 1 USB host, >>> 1 SDXC, 1 PCIe socket and JTAG pins. >>> >>> +config BOARD_VOCORE2 >>> + bool "VoCore2" >>> + depends on SOC_MT7628 >>> + help >>> + VoCore VoCore2 board has a MT7628 SoC with 128 MiB of RAM >>> + and 16 MiB of flash (SPI). >>> + >> if CONFIG_SPL_UART2_SPIS_PINMUX is the only uart pinmux used by the >> board, you can add "select CONFIG_SPL_UART2_SPIS_PINMUX" here. > I thought about this, but I was unsure. > Will do in v6. While testing this I noticed it's possible to select SPL_UART2_SPIS_PINMUX *without* SPL_SERIAL_SUPPORT, leading to an invalid configuration. IMHO we should have either a: ? "depends on SPL_SERIAL_SUPPORT" or (perhaps better) a: ? "select SPL_SERIAL_SUPPORT" in definition of SPL_UART2_SPIS_PINMUX. I can provide a separate patch as this is not board-specific, but it seems to be Your call. Alternatively I can add "select SPL_SERIAL_SUPPORT" to my board definition, but this doesn't look right to me. Please advise. Many Thanks Mauro