Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1490819

Re: powerpc64: Enable CONFIG_E500 and CONFIG_PPC_E500MC for e5500/e6500

From Scott Wood <oss@buserror.net>
Newsgroups linux.kernel
Subject Re: powerpc64: Enable CONFIG_E500 and CONFIG_PPC_E500MC for e5500/e6500
Date 2016-09-25 08:30 +0200
Message-ID <slb6N-35R-5@gated-at.bofh.it> (permalink)
References <s8YRH-7Bq-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Aug 22, 2016 at 04:46:43PM +0200, David Engraf wrote:
> The PowerPC e5500/e6500 architecture is based on the e500mc core. Enable
> CONFIG_E500 and CONFIG_PPC_E500MC when e5500/e6500 is used.
> 
> This will also fix using CONFIG_PPC_QEMU_E500 on PPC64.
> 
> Signed-off-by: David Engraf <david.engraf@sysgo.com>
> ---
>  arch/powerpc/platforms/Kconfig.cputype | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
> index f32edec..0382da7 100644
> --- a/arch/powerpc/platforms/Kconfig.cputype
> +++ b/arch/powerpc/platforms/Kconfig.cputype
> @@ -125,11 +125,13 @@ config POWER8_CPU
>  
>  config E5500_CPU
>  	bool "Freescale e5500"
> -	depends on E500
> +	select E500
> +	select PPC_E500MC
>  
>  config E6500_CPU
>  	bool "Freescale e6500"
> -	depends on E500
> +	select E500
> +	select PPC_E500MC

These config symbols are for setting -mcpu.  Kernels built with
CONFIG_GENERIC_CPU should also work on e5500/e6500.

The problem is that CONFIG_PPC_QEMU_E500 doesn't select E500 (I didn't
notice it before because usually CORENET_GENERIC is enabled as well).

Note that your patch, by eliminating the dependency on E500, would make
it possible to build a book3s kernel with E5500_CPU/E6500_CPU, which
doesn't make any sense.

-Scott

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: powerpc64: Enable CONFIG_E500 and CONFIG_PPC_E500MC for  e5500/e6500 Scott Wood <oss@buserror.net> - 2016-09-25 08:30 +0200
  Re: powerpc64: Enable CONFIG_E500 and CONFIG_PPC_E500MC for  e5500/e6500 David Engraf <david.engraf@sysgo.com> - 2016-09-26 10:50 +0200
    Re: powerpc64: Enable CONFIG_E500 and CONFIG_PPC_E500MC for  e5500/e6500 Scott Wood <oss@buserror.net> - 2016-09-27 01:20 +0200
      Re: powerpc64: Enable CONFIG_E500 and CONFIG_PPC_E500MC for  e5500/e6500 David Engraf <david.engraf@sysgo.com> - 2016-10-07 11:10 +0200

csiph-web