[PATCH] powerpc/booke: Add support for new e500mc core
Olof Johansson
olof at lixom.net
Tue Jun 17 05:26:13 EST 2008
On Jun 16, 2008, at 10:46 AM, Kumar Gala wrote:
>
> --- a/arch/powerpc/kernel/cputable.c
> +++ b/arch/powerpc/kernel/cputable.c
> @@ -1522,6 +1522,21 @@ static struct cpu_spec __initdata cpu_specs[]
> = {
> .machine_check = machine_check_e500,
> .platform = "ppc8548",
> },
> + { /* e500mc */
> + .pvr_mask = 0xffff0000,
> + .pvr_value = 0x80230000,
> + .cpu_name = "e500mc",
> + /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
> + .cpu_features = CPU_FTRS_E500MC,
> + .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
> + .icache_bsize = 64,
> + .dcache_bsize = 64,
> + .num_pmcs = 4,
> + .oprofile_cpu_type = "ppc/e500", /* xxx - galak, e500mc? */
> + .oprofile_type = PPC_OPROFILE_FSL_EMB,
> + .machine_check = machine_check_e500,
> + .platform = "ppc4080",
Do you really want the platform to be this specific?
> diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/
> platforms/Kconfig.cputype
> index f7efaa9..9e67cf1 100644
> --- a/arch/powerpc/platforms/Kconfig.cputype
> +++ b/arch/powerpc/platforms/Kconfig.cputype
> @@ -95,6 +95,12 @@ config E500
> select FSL_EMB_PERFMON
> bool
>
> +config PPC_E500MC
> + bool "e500mc Support"
> + select PPC_FPU
> + depends on E500
> + default n
> +
> config PPC_FPU
> bool
> default y if PPC64
> @@ -157,7 +163,7 @@ config ALTIVEC
>
> config SPE
> bool "SPE Support"
> - depends on E200 || E500
> + depends on E200 || (E500 && !PPC_E500MC)
Why make E500MC a config option, if it's so similar? This way you
can't make a kernel with SPE support that can boot on both e500{,v2}
and e500mc...
> config SMP
> - depends on PPC_STD_MMU
> + depends on PPC_STD_MMU || FSL_BOOKE
Isn't there quite a bit more needed than just enabling this config
option for SMP to work? I.e. why not save this for when the rest is
posted?
-Olof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080616/7a02e4fc/attachment.htm>
More information about the Linuxppc-dev
mailing list