Skip to contentSkip to conversation

Add PPC4xx L2-cache support (440GX)

PATCH New Stefan Roese 1 participant 1 message Mar 26, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 Add PPC4xx L2-cache support (440GX)

This patch adds support for the 256k L2 cache found on some IBM/AMCC 4xx PPC's. It introduces a common 4xx SoC file (sysdev/ppc4xx_soc.c) which currently "only" adds the L2 cache init code. Other common 4xx stuff can be added later here.

The L2 cache handling code is a copy of Eugene's code in arch/ppc with small modifications.

Tested on AMCC Taishan 440GX.

---
ver3:
- Change global variable name from dcrbase to dcrbase_l2c
- Get l2 cache-size from node property

ver2:
Small changes included as suggested by Stephen Rothwell. It also removes mentioning 460EX/GT, since L2 cache handling on these PPC's is not clear right now.

 arch/powerpc/Kconfig               |    3 +
 arch/powerpc/platforms/44x/Kconfig |    2 +
 arch/powerpc/sysdev/Makefile       |    1 +
 arch/powerpc/sysdev/ppc4xx_soc.c   |  189 ++++++++++++++++++++++++++++++++++++
 include/asm-powerpc/dcr-regs.h     |   78 ++++++++++++++++
 5 files changed, 258 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/sysdev/ppc4xx_soc.c
arch/powerpc/Kconfig +3 -0
index 1189d8d..69d4738 100644
@@ -490,6 +490,9 @@ config FSL_PCI
  	bool
 	select PPC_INDIRECT_PCI
 
+config 4xx_SOC
+	bool
+
 # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
 config MCA
 	bool
arch/powerpc/platforms/44x/Kconfig +1 -0
index 83155fe..061ba3c 100644
@@ -120,6 +120,7 @@ config 440GP
 
 config 440GX
 	bool
+	select 4xx_SOC
 	select IBM_NEW_EMAC_EMAC4
 	select IBM_NEW_EMAC_RGMII
 	select IBM_NEW_EMAC_ZMII #test only
arch/powerpc/sysdev/Makefile +1 -0
index 15f3e85..851a0be 100644
@@ -27,6 +27,7 @@ obj-$(CONFIG_PPC_INDIRECT_PCI)	+= indirect_pci.o
 obj-$(CONFIG_PPC_I8259)		+= i8259.o
 obj-$(CONFIG_IPIC)		+= ipic.o
 obj-$(CONFIG_4xx)		+= uic.o
+obj-$(CONFIG_4xx_SOC)		+= ppc4xx_soc.o
 obj-$(CONFIG_XILINX_VIRTEX)	+= xilinx_intc.o
 obj-$(CONFIG_OF_RTC)		+= of_rtc.o
 ifeq ($(CONFIG_PCI),y)
arch/powerpc/sysdev/ppc4xx_soc.c new file +189 -0

189 lines not on this page · raw message

include/asm-powerpc/dcr-regs.h +78 -0

82 lines not on this page · raw message

Signature · 1 line
1.5.4.4