powerpc/cputable: Split cpu_specs[] out of cputable.h
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 19 Sep 2022 17:01:30 +0000 (19:01 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 12:47:13 +0000 (22:47 +1000)
commite320a76db4b02e1160eb4bfb17d8d1bc57979955
tree0373b669c2eceef2d32774be4207a2e300e5dbb6
parent76b719881a26fec3b77652134f19cf1dfcc96318
powerpc/cputable: Split cpu_specs[] out of cputable.h

cpu_specs[] is full of #ifdefs depending on the different
types of CPU.

CPUs are mutually exclusive, it is therefore possible to split
cpu_specs[] into smaller more readable pieces.

Create cpu_specs_XXX.h that will each be dedicated on one
of the following mutually exclusive families:
- 40x
- 44x
- 47x
- 8xx
- e500
- book3s/32
- book3s/64

In book3s/32, the block for 603 has been moved in front in order
to not have two 604 blocks.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Fix CONFIG_47x to be CONFIG_PPC_47x, tweak some formatting]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a44b865e0318286155273b10cdf524ab697928c1.1663606875.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/cpu_specs.h [new file with mode: 0644]
arch/powerpc/kernel/cpu_specs_40x.h [new file with mode: 0644]
arch/powerpc/kernel/cpu_specs_44x.h [new file with mode: 0644]
arch/powerpc/kernel/cpu_specs_47x.h [new file with mode: 0644]
arch/powerpc/kernel/cpu_specs_8xx.h [new file with mode: 0644]
arch/powerpc/kernel/cpu_specs_book3s_32.h [new file with mode: 0644]
arch/powerpc/kernel/cpu_specs_book3s_64.h [new file with mode: 0644]
arch/powerpc/kernel/cpu_specs_e500.h [new file with mode: 0644]
arch/powerpc/kernel/cputable.c