On Monday 21 July 2008, Marvin wrote:
> --- a/arch/powerpc/platforms/Kconfig.cputype
> +++ b/arch/powerpc/platforms/Kconfig.cputype
> @@ -115,13 +115,30 @@ config OPT_EXCLUSIVE
>           
>           If you are unsure, select no.
>  
> -config BATS64
> +config PPC64_GEN
>         depends on PPC64
> -       def_bool y if !POWER4_ONLY
> +       int
> +       default "1" if !OPT_EXCLUSIVE
> +       default "2" if TUNE_RS64
> +       default "3" if TUNE_POWER3
> +       default "4" if TUNE_POWER4 || TUNE_CELL || TUNE_970
> +       default "5" if TUNE_POWER5
> +       default "6" if TUNE_POWER6

Unfortunately, the world is not this easy, e.g. POWER5 doesn't have
all the features that Cell and 970 have (or vice versa), and PA6T
doesn't fit in here either.

If you want to model this correctly, you need to have each CPU
as a separate option, and then deduce the feature set from that,
like:

menuconfig "CPU selection"

config MIN_POWER3
        bool "Power 3 support"

config MIN_POWER4
        bool "Power 4 support"

config MIN_CELL
        bool "Cell Broadband Engine support"


and so on. All this has nothing to do with the tuning option,
except that you may want to make sure a CPU is enabled if you
want to be able to tune for it.

> @@ -185,7 +202,7 @@ config PHYS_64BIT
>  
>  config ALTIVEC
>         bool "AltiVec Support"
> -       depends on CLASSIC32 || POWER4
> +       depends on CLASSIC32 || PPC64
>         ---help---
>           This option enables kernel support for the Altivec extensions to the
>           PowerPC processor. The kernel currently supports saving and 
> restoring

If you know exactly what CPUs are supported, you can do this
automatically: Altivec works only on G4 (mpc74xx and mpc86xx),
G5 (970), Cell, Power6 and PA6T.

> @@ -201,7 +218,7 @@ config ALTIVEC
>  
>  config VSX
>         bool "VSX Support"
> -       depends on POWER4 && ALTIVEC && PPC_FPU
> +       depends on PPC64 && ALTIVEC && PPC_FPU
>         ---help---
>  
>           This option enables kernel support for the Vector Scaler extensions

Similarly, VSX is available only on Power6.

        Arnd <><
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to