linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Gregory CLEMENT <gregory.clement@bootlin.com>
Cc: Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>,
	Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	linux-mips@vger.kernel.org, Rob Herring <robh+dt@kernel.org>,
	devicetree@vger.kernel.org,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Lars Povlsen <lars.povlsen@microchip.com>,
	Steen.Hegelund@microchip.com
Subject: Re: [PATCH v2 3/9] MIPS: mscc: Prepare configuration to handle more SoCs
Date: Tue, 10 Nov 2020 13:30:42 +0100	[thread overview]
Message-ID: <20201110123042.GF1769536@piout.net> (raw)
In-Reply-To: <20201110114508.1197652-4-gregory.clement@bootlin.com>

On 10/11/2020 12:45:02+0100, Gregory CLEMENT wrote:
> Ocelot belongs to a family of SoC named the VCore III. In order to add
> these new Soc, use the new symbol SOC_VCOREIII instead of a one
> dedicated to Ocelot.
> 
> In order to avoid regression on driver building, the MSCC_OCELOT
> configuration symbol is kept until the driver will be converted.
> 
> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

> ---
>  arch/mips/boot/dts/Makefile      |  2 +-
>  arch/mips/boot/dts/mscc/Makefile |  2 +-
>  arch/mips/generic/Kconfig        | 11 ++++++++---
>  3 files changed, 10 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile
> index 19027129add8..0259238d7a2e 100644
> --- a/arch/mips/boot/dts/Makefile
> +++ b/arch/mips/boot/dts/Makefile
> @@ -6,7 +6,7 @@ subdir-$(CONFIG_FIT_IMAGE_FDT_BOSTON)	+= img
>  subdir-$(CONFIG_MACH_INGENIC)		+= ingenic
>  subdir-$(CONFIG_LANTIQ)			+= lantiq
>  subdir-$(CONFIG_MACH_LOONGSON64)	+= loongson
> -subdir-$(CONFIG_MSCC_OCELOT)		+= mscc
> +subdir-$(CONFIG_SOC_VCOREIII)		+= mscc
>  subdir-$(CONFIG_MIPS_MALTA)		+= mti
>  subdir-$(CONFIG_LEGACY_BOARD_SEAD3)	+= mti
>  subdir-$(CONFIG_NLM_XLP_BOARD)		+= netlogic
> diff --git a/arch/mips/boot/dts/mscc/Makefile b/arch/mips/boot/dts/mscc/Makefile
> index eb71515871f6..5015ccbbfb23 100644
> --- a/arch/mips/boot/dts/mscc/Makefile
> +++ b/arch/mips/boot/dts/mscc/Makefile
> @@ -1,4 +1,4 @@
>  # SPDX-License-Identifier: GPL-2.0-only
> -dtb-$(CONFIG_MSCC_OCELOT)	+= ocelot_pcb123.dtb ocelot_pcb120.dtb
> +dtb-$(CONFIG_SOC_VCOREIII)	+= ocelot_pcb123.dtb ocelot_pcb120.dtb
>  
>  obj-$(CONFIG_BUILTIN_DTB)	+= $(addsuffix .o, $(dtb-y))
> diff --git a/arch/mips/generic/Kconfig b/arch/mips/generic/Kconfig
> index 55d9aed7ced9..45431b88dded 100644
> --- a/arch/mips/generic/Kconfig
> +++ b/arch/mips/generic/Kconfig
> @@ -34,14 +34,19 @@ config LEGACY_BOARD_OCELOT
>  	bool "Support MSCC Ocelot boards"
>  	depends on LEGACY_BOARD_SEAD3=n
>  	select LEGACY_BOARDS
> -	select MSCC_OCELOT
> +	select SOC_VCOREIII
>  	select SYS_HAS_EARLY_PRINTK
>  	select USE_GENERIC_EARLY_PRINTK_8250
>  
> -config MSCC_OCELOT
> +config SOC_VCOREIII
>  	bool
>  	select GPIOLIB
>  	select MSCC_OCELOT_IRQ
> +	select MSCC_OCELOT #will be removed when driver no more use it
> +
> +#Will be removed when the driver using it will be converted to SOC_VCOREIII
> +config MSCC_OCELOT
> +	bool
>  
>  comment "FIT/UHI Boards"
>  
> @@ -67,7 +72,7 @@ config FIT_IMAGE_FDT_XILFPGA
>  
>  config FIT_IMAGE_FDT_OCELOT
>  	bool "Include FDT for Microsemi Ocelot development platforms"
> -	select MSCC_OCELOT
> +	select SOC_VCOREIII
>  	help
>  	  Enable this to include the FDT for the Ocelot development platforms
>  	  from Microsemi in the FIT kernel image.
> -- 
> 2.28.0
> 

-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2020-11-10 12:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-10 11:44 [PATCH v2 0/9] MIPS: Add support for more mscc SoCs: Luton, Serval and Jaguar2 Gregory CLEMENT
2020-11-10 11:45 ` [PATCH v2 1/9] dt-bindings: mips: Add Luton Gregory CLEMENT
2020-11-10 12:29   ` Alexandre Belloni
2020-11-10 11:45 ` [PATCH v2 2/9] dt-bindings: mips: Add Serval and Jaguar2 Gregory CLEMENT
2020-11-10 12:30   ` Alexandre Belloni
2020-11-10 11:45 ` [PATCH v2 3/9] MIPS: mscc: Prepare configuration to handle more SoCs Gregory CLEMENT
2020-11-10 12:30   ` Alexandre Belloni [this message]
2020-11-10 11:45 ` [PATCH v2 4/9] MIPS: mscc: Fix configuration name for ocelot legacy boards Gregory CLEMENT
2020-11-10 12:30   ` Alexandre Belloni
2020-11-10 11:45 ` [PATCH v2 5/9] MIPS: mscc: Add luton dtsi Gregory CLEMENT
2020-11-10 12:31   ` Alexandre Belloni
2020-11-10 12:32   ` Alexandre Belloni
2020-11-10 11:45 ` [PATCH v2 6/9] MIPS: mscc: Add luton PC0B91 device tree Gregory CLEMENT
2020-11-10 12:33   ` Alexandre Belloni
2020-11-10 11:45 ` [PATCH v2 7/9] MIPS: mscc: build FIT image for Luton Gregory CLEMENT
2020-11-10 12:33   ` Alexandre Belloni
2020-11-10 11:45 ` [PATCH v2 8/9] MIPS: mscc: Add jaguar2 support Gregory CLEMENT
2020-11-10 12:33   ` Alexandre Belloni
2020-11-10 11:45 ` [PATCH v2 9/9] MIPS: mscc: Add serval support Gregory CLEMENT
2020-11-10 12:34   ` Alexandre Belloni
2020-11-12 22:38 ` [PATCH v2 0/9] MIPS: Add support for more mscc SoCs: Luton, Serval and Jaguar2 Thomas Bogendoerfer

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=20201110123042.GF1769536@piout.net \
    --to=alexandre.belloni@bootlin.com \
    --cc=Steen.Hegelund@microchip.com \
    --cc=UNGLinuxDriver@microchip.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gregory.clement@bootlin.com \
    --cc=lars.povlsen@microchip.com \
    --cc=linux-mips@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=tsbogend@alpha.franken.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;
as well as URLs for NNTP newsgroup(s).