mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	 e320a76db4
			
		
	
	
		e320a76db4
		
	
	
	
	
		
			
			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
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			596 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			596 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-or-later */
 | |
| /*
 | |
|  *  Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org)
 | |
|  */
 | |
| 
 | |
| static struct cpu_spec cpu_specs[] __initdata = {
 | |
| 	{	/* 8xx */
 | |
| 		.pvr_mask		= 0xffff0000,
 | |
| 		.pvr_value		= PVR_8xx,
 | |
| 		.cpu_name		= "8xx",
 | |
| 		/*
 | |
| 		 * CPU_FTR_MAYBE_CAN_DOZE is possible,
 | |
| 		 * if the 8xx code is there....
 | |
| 		 */
 | |
| 		.cpu_features		= CPU_FTRS_8XX,
 | |
| 		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
 | |
| 		.mmu_features		= MMU_FTR_TYPE_8xx,
 | |
| 		.icache_bsize		= 16,
 | |
| 		.dcache_bsize		= 16,
 | |
| 		.machine_check		= machine_check_8xx,
 | |
| 		.platform		= "ppc823",
 | |
| 	},
 | |
| };
 |