Skip to contentSkip to conversation

Base support for 440SPe "Katmai" eval board

PATCH In review Benjamin Herrenschmidt 1 participant 1 message Dec 13, 2007

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

PATCH 17/20 Base support for 440SPe "Katmai" eval board

This adds base support for the Katmai board, including PCI-X and PCI-Express (but no RTC, nvram, etc... yet).

---

As for Taishan, the bootwrapper code can be simplified. In fact, we probably don't need to probe clocks & memsize off the chip and just trust what uboot tells us.

 arch/powerpc/boot/Makefile            |    5 
 arch/powerpc/boot/cuboot-katmai.c     |   56 ++
 arch/powerpc/boot/dts/katmai.dts      |  393 ++++++++++++++++
 arch/powerpc/configs/katmai_defconfig |  789 ++++++++++++++++++++++++++++++++++
 arch/powerpc/platforms/44x/Kconfig    |   13 
 arch/powerpc/platforms/44x/Makefile   |    3 
 arch/powerpc/platforms/44x/katmai.c   |   63 ++
 7 files changed, 1320 insertions(+), 2 deletions(-)
arch/powerpc/platforms/44x/Kconfig +13 -0
@@ -31,6 +31,15 @@ config TAISHAN
 	  This option enables support for the AMCC PPC440GX "Taishan"
 	  evaluation board.
 
+config KATMAI
+	bool "Katmai"
+	depends on 44x
+	default n
+	select 440SPe
+	select PPC4xx_PCI_EXPRESS
+	help
+	  This option enables support for the AMCC PPC440SPe evaluation board.
+
 #config LUAN
 #	bool "Luan"
 #	depends on 44x
@@ -75,6 +84,10 @@ config 440GX
 config 440SP
 	bool
 
+config 440SPe
+        select IBM_NEW_EMAC_EMAC4
+	bool
+
 # 44x errata/workaround config symbols, selected by the CPU models above
 config IBM440EP_ERR42
 	bool
arch/powerpc/platforms/44x/Makefile +2 -1
Index: linux-merge/arch/powerpc/platforms/44x/Makefile
===================================================================
@@ -1,5 +1,6 @@
 obj-$(CONFIG_44x)	:= misc_44x.o
 obj-$(CONFIG_EBONY)	+= ebony.o
 obj-$(CONFIG_TAISHAN)	+= taishan.o
-obj-$(CONFIG_BAMBOO) += bamboo.o
+obj-$(CONFIG_BAMBOO)	+= bamboo.o
 obj-$(CONFIG_SEQUOIA)	+= sequoia.o
+obj-$(CONFIG_KATMAI)	+= katmai.o
arch/powerpc/boot/dts/katmai.dts new file +393 -0

393 lines not on this page · raw message

arch/powerpc/platforms/44x/katmai.c new file +63 -0

63 lines not on this page · raw message

arch/powerpc/boot/cuboot-katmai.c new file +56 -0

56 lines not on this page · raw message

arch/powerpc/boot/Makefile +4 -1
Index: linux-merge/arch/powerpc/boot/Makefile
===================================================================
@@ -38,6 +38,7 @@ BOOTCFLAGS	+= -I$(obj) -I$(srctree)/$(ob
 $(obj)/4xx.o: BOOTCFLAGS += -mcpu=440
 $(obj)/ebony.o: BOOTCFLAGS += -mcpu=440
 $(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=440
+$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=440
 $(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405
 
 
@@ -60,7 +61,8 @@ src-plat := of.c cuboot-52xx.c cuboot-83
 		cuboot-ebony.c treeboot-ebony.c prpmc2800.c \
 		ps3-head.S ps3-hvcall.S ps3.c treeboot-bamboo.c cuboot-8xx.c \
 		cuboot-pq2.c cuboot-sequoia.c treeboot-walnut.c cuboot-bamboo.c \
-		fixed-head.S ep88xc.c cuboot-hpc2.c ep405.c cuboot-taishan.c
+		fixed-head.S ep88xc.c cuboot-hpc2.c ep405.c cuboot-taishan.c \
+		cuboot-katmai.c
 src-boot := $(src-wlib) $(src-plat) empty.c
 
 src-boot := $(addprefix $(obj)/, $(src-boot))
@@ -167,6 +169,7 @@ image-$(CONFIG_BAMBOO)			+= treeImage.ba
 image-$(CONFIG_SEQUOIA)			+= cuImage.sequoia
 image-$(CONFIG_WALNUT)			+= treeImage.walnut
 image-$(CONFIG_TAISHAN)			+= cuImage.taishan
+image-$(CONFIG_KATMAI)			+= cuImage.katmai
 endif
 
 # For 32-bit powermacs, build the COFF and miboot images
arch/powerpc/configs/katmai_defconfig new file +789 -0

789 lines not on this page · raw message