mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
powerpc/p5020: Add various p5020 related defines (and p5010)
There are various locations that we have chip specific info: * Makefile for which ddr code to build * Added p5020 & p5010 to cpu_type_list and SVR list * Added number of LAWs for p5020 * Set CONFIG_MAX_CPUS to 2 for p5020 Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
7eda1f8eed
commit
19dbcc96c0
5 changed files with 12 additions and 1 deletions
|
@ -59,6 +59,7 @@ COBJS-$(CONFIG_P1022) += ddr-gen3.o
|
|||
COBJS-$(CONFIG_P2010) += ddr-gen3.o
|
||||
COBJS-$(CONFIG_P2020) += ddr-gen3.o
|
||||
COBJS-$(CONFIG_PPC_P4080) += ddr-gen3.o
|
||||
COBJS-$(CONFIG_PPC_P5020) += ddr-gen3.o
|
||||
|
||||
COBJS-$(CONFIG_CPM2) += ether_fcc.o
|
||||
COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
|
||||
|
|
|
@ -84,6 +84,10 @@ struct cpu_type cpu_type_list [] = {
|
|||
CPU_TYPE_ENTRY(P4040, P4040_E, 4),
|
||||
CPU_TYPE_ENTRY(P4080, P4080, 8),
|
||||
CPU_TYPE_ENTRY(P4080, P4080_E, 8),
|
||||
CPU_TYPE_ENTRY(P5010, P5010, 1),
|
||||
CPU_TYPE_ENTRY(P5010, P5010_E, 1),
|
||||
CPU_TYPE_ENTRY(P5020, P5020, 2),
|
||||
CPU_TYPE_ENTRY(P5020, P5020_E, 2),
|
||||
#elif defined(CONFIG_MPC86xx)
|
||||
CPU_TYPE_ENTRY(8610, 8610, 1),
|
||||
CPU_TYPE_ENTRY(8641, 8641, 2),
|
||||
|
|
|
@ -46,6 +46,8 @@
|
|||
#define CONFIG_MAX_CPUS 2
|
||||
#elif defined(CONFIG_PPC_P4080)
|
||||
#define CONFIG_MAX_CPUS 8
|
||||
#elif defined(CONFIG_PPC_P5020)
|
||||
#define CONFIG_MAX_CPUS 2
|
||||
#else
|
||||
#define CONFIG_MAX_CPUS 1
|
||||
#endif
|
||||
|
|
|
@ -1056,6 +1056,10 @@
|
|||
#define SVR_P4040_E 0x820900
|
||||
#define SVR_P4080 0x820000
|
||||
#define SVR_P4080_E 0x820800
|
||||
#define SVR_P5010 0x822100
|
||||
#define SVR_P5010_E 0x822900
|
||||
#define SVR_P5020 0x822000
|
||||
#define SVR_P5020_E 0x822800
|
||||
|
||||
#define SVR_8610 0x80A000
|
||||
#define SVR_8641 0x809000
|
||||
|
|
|
@ -43,7 +43,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||
defined(CONFIG_P1013) || defined(CONFIG_P1022) || \
|
||||
defined(CONFIG_P2010) || defined(CONFIG_P2020)
|
||||
#define FSL_HW_NUM_LAWS 12
|
||||
#elif defined(CONFIG_PPC_P4080)
|
||||
#elif defined(CONFIG_PPC_P4080) || defined(CONFIG_PPC_P5020)
|
||||
#define FSL_HW_NUM_LAWS 32
|
||||
#else
|
||||
#error FSL_HW_NUM_LAWS not defined for this platform
|
||||
|
|
Loading…
Reference in a new issue