mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Renaud Barbier <renaud.barbier@ge.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/9] Preparation stage to support multiple PPC architectures.
Date: Wed, 25 Jan 2012 18:33:15 +0100	[thread overview]
Message-ID: <20120125173315.GZ5446@pengutronix.de> (raw)
In-Reply-To: <1327408443-3519-2-git-send-email-renaud.barbier@ge.com>

On Tue, Jan 24, 2012 at 12:33:55PM +0000, Renaud Barbier wrote:
> Rework arch/ppc/Kconfig to select processor types.
> Move MPC5200 configuration to architecture sub-directory.
> pcm030 configuration file is updated to reflect changes.
> 
> Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
> ---
>  arch/ppc/Kconfig                  |   48 +++++++++---------------------------
>  arch/ppc/configs/pcm030_defconfig |    3 ++
>  arch/ppc/mach-mpc5xxx/Kconfig     |   46 +++++++++++++++++++++++++++++++++++
>  3 files changed, 61 insertions(+), 36 deletions(-)
> 
> diff --git a/arch/ppc/Kconfig b/arch/ppc/Kconfig
> index 4c7b7cd..ea38af6 100644
> --- a/arch/ppc/Kconfig
> +++ b/arch/ppc/Kconfig
> @@ -1,53 +1,29 @@
> -
> -config BOARDINFO
> -	default "Phytec Phycore mpc5200b tiny" if MACH_PHYCORE_MPC5200B_TINY
> -	
> -config ARCH_TEXT_BASE
> -	hex
> -	default 0x00000000 if RELOCATABLE
> -	default 0x01000000 if MACH_PHYCORE_MPC5200B_TINY
> -
> +#
> +#
> +#
>  config PPC
>  	bool
>  	select HAVE_CONFIGURABLE_TEXT_BASE
>  	select HAS_KALLSYMS
>  	select HAS_MODULES
>  	select HAVE_CONFIGURABLE_MEMORY_LAYOUT
> -	select HAVE_CONFIGURABLE_TEXT_BASE
>  	default y
>  
> -# Uh, we should decide which one we want to use
> -config ARCH_MPC5200
> -	bool
> -
> -config MPC5200
> -	bool
> -
> -config MPC5xxx
> -	bool
> +menu "Architecture Type"
>  
> -config CACHELINE_SIZE
> -	int
> -	default 32 if ARCH_MPC5200

We should hardcode this. It is only used in a mpc5200 specific file.

> +choice
> +	prompt "PPC Architecture type"
>  
> -config HAS_REGINFO
> -	bool
> -	default y if ARCH_MPC5200
> +config ARCH_MPC8XXX
> +	bool "Freescale MPC85xx"
>  
> -choice
> -	prompt "Select your board"
> +config ARCH_MPC5XXX
> +	bool "Freescale MPC5xxx"
>  
> -config MACH_PHYCORE_MPC5200B_TINY
> -	bool "Phycore mpc5200b tiny"
> -	select ARCH_MPC5200
> -	select MPC5200
> -	select MPC5xxx
> -	select HAS_CFI
> -	help
> -	  Say Y here if you are using the Phytec Phycore MPC5200B Tiny
> -	  board aka pcm030
>  endchoice
>  
> +endmenu
> +
>  source arch/ppc/mach-mpc5xxx/Kconfig
>  source common/Kconfig
>  source commands/Kconfig
> diff --git a/arch/ppc/configs/pcm030_defconfig b/arch/ppc/configs/pcm030_defconfig
> index 5de1c75..c037502 100644
> --- a/arch/ppc/configs/pcm030_defconfig
> +++ b/arch/ppc/configs/pcm030_defconfig
> @@ -32,6 +32,9 @@ CONFIG_NET=y
>  CONFIG_NET_DHCP=y
>  CONFIG_NET_PING=y
>  CONFIG_NET_TFTP=y
> +CONFIG_ARCH_MPC5XXX=y
> +CONFIG_MACH_PHYCORE_MPC5200B_TINY=y
> +CONFIG_DRIVER_NET_MPC5200=y
>  CONFIG_DRIVER_CFI=y
>  CONFIG_CFI_BUFFER_WRITE=y
>  CONFIG_ZLIB=y
> diff --git a/arch/ppc/mach-mpc5xxx/Kconfig b/arch/ppc/mach-mpc5xxx/Kconfig
> index 632fb85..1473211 100644
> --- a/arch/ppc/mach-mpc5xxx/Kconfig
> +++ b/arch/ppc/mach-mpc5xxx/Kconfig
> @@ -1,3 +1,47 @@
> +if ARCH_MPC5XXX
> +
> +config BOARDINFO
> +	default "Phytec Phycore mpc5200b tiny" if MACH_PHYCORE_MPC5200B_TINY
> +
> +config ARCH_TEXT_BASE
> +	hex
> +	default 0x00000000 if RELOCATABLE
> +	default 0x01000000 if MACH_PHYCORE_MPC5200B_TINY
> +
> +config HAS_REGINFO
> +	bool
> +	default y if ARCH_MPC5200
> +
> +config CACHELINE_SIZE
> +	int
> +	default 32 if ARCH_MPC5200
> +
> +choice
> +	prompt "Select your board"
> +
> +config MACH_PHYCORE_MPC5200B_TINY
> +	bool "Phycore mpc5200b tiny"
> +	select HAS_CFI
> +	help
> +	  Say Y here if you are using the Phytec Phycore MPC5200B Tiny
> +	  board aka pcm030
> +endchoice
> +
> +config MPC5200
> +	bool
> +	depends on MACH_PHYCORE_MPC5200B_TINY
> +    default y

Your editor seems to have problems with whitespaces. Please run
checkpatch.pl to catch this and other occurences.

> +
> +config ARCH_MPC5200
> +	bool
> +	depends on MACH_PHYCORE_MPC5200B_TINY
> +    default y
> +
> +config MPC5xxx
> +	bool
> +	depends on MACH_PHYCORE_MPC5200B_TINY
> +    default y
> +
>  menu "Board specific settings       "
>  
>  config MACH_PHYCORE_MPC5200B_TINY_REV
> @@ -10,3 +54,5 @@ config MACH_PHYCORE_MPC5200B_TINY_REV
>  	  old board you should set this option to 1
>  
>  endmenu
> +
> +endif
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-01-25 17:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-24 12:33 [PATCH 0/9] MPC8xxx support Renaud Barbier
2012-01-24 12:33 ` [PATCH 1/9] Preparation stage to support multiple PPC architectures Renaud Barbier
2012-01-25 17:33   ` Sascha Hauer [this message]
2012-01-24 12:33 ` [PATCH 2/9] Define clock source shift and mask Renaud Barbier
2012-01-25 17:36   ` Sascha Hauer
2012-01-24 12:33 ` [PATCH 3/9] Added support for the mpc8xxx architecture Renaud Barbier
2012-01-24 12:33 ` [PATCH 4/9] Header files added to support " Renaud Barbier
2012-01-24 12:33 ` [PATCH 5/9] Update to existing header files Renaud Barbier
2012-01-24 12:34 ` [PATCH 6/9] Add file and compilation of strmhz Renaud Barbier
2012-01-24 12:34 ` [PATCH 7/9] Add-ons to the PPC library to support the mpc8xxx Renaud Barbier
2012-01-24 12:34 ` [PATCH 8/9] Update (ppc) Makefile and Kconfig Renaud Barbier
2012-01-24 12:34 ` [PATCH 9/9] P1_P2 platform support code and configuratin file for the P2020RDB Renaud Barbier
2012-01-25 19:33 ` [PATCH 0/9] MPC8xxx support Sascha Hauer

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=20120125173315.GZ5446@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=renaud.barbier@ge.com \
    /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