Skip to contentSkip to conversation

Base support for 440GX Taishan eval board

PATCH In review Benjamin Herrenschmidt 2 participants 2 messages Dec 21, 2007 – Dec 22, 2007

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

PATCH 10/21 Base support for 440GX Taishan eval board

From: Hugh Blemings <[email protected]>

This patch adds base support for the AMCC Taishan 440GX evaluation board.

---

 arch/powerpc/Kconfig.debug             |    6 
 arch/powerpc/boot/Makefile             |    5 
 arch/powerpc/boot/cuboot-taishan.c     |   56 ++
 arch/powerpc/boot/dts/taishan.dts      |  375 +++++++++++++++
 arch/powerpc/configs/taishan_defconfig |  787 +++++++++++++++++++++++++++++++++
 arch/powerpc/platforms/44x/Kconfig     |   14 
 arch/powerpc/platforms/44x/Makefile    |    1 
 arch/powerpc/platforms/44x/taishan.c   |   74 +++
 8 files changed, 1316 insertions(+), 2 deletions(-)
arch/powerpc/boot/Makefile +4 -1
@@ -37,8 +37,10 @@ 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)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405
 
+
 zlib       := inffast.c inflate.c inftrees.c
 zlibheader := inffast.h inffixed.h inflate.h inftrees.h infutil.h
 zliblinuxheader := zlib.h zconf.h zutil.h
@@ -58,7 +60,7 @@ 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
+		fixed-head.S ep88xc.c cuboot-hpc2.c ep405.c cuboot-taishan.c
 src-boot := $(src-wlib) $(src-plat) empty.c
 
 src-boot := $(addprefix $(obj)/, $(src-boot))
@@ -199,6 +201,7 @@ image-$(CONFIG_EBONY)			+= treeImage.ebo
 image-$(CONFIG_BAMBOO)			+= treeImage.bamboo cuImage.bamboo
 image-$(CONFIG_SEQUOIA)			+= cuImage.sequoia
 image-$(CONFIG_WALNUT)			+= treeImage.walnut
+image-$(CONFIG_TAISHAN)			+= cuImage.taishan
 endif
 
 # For 32-bit powermacs, build the COFF and miboot images
arch/powerpc/Kconfig.debug +5 -1
Index: linux-merge/arch/powerpc/Kconfig.debug
===================================================================
@@ -225,7 +225,8 @@ config PPC_EARLY_DEBUG_44x
 	depends on 44x
 	help
 	  Select this to enable early debugging for IBM 44x chips via the
-	  inbuilt serial port.
+	  inbuilt serial port.  If you enable this, ensure you set
+          PPC_EARLY_DEBUG_44x_PHYSLOW below to suit your target board.
 
 config PPC_EARLY_DEBUG_40x
 	bool "Early serial debugging for IBM/AMCC 40x CPUs"
@@ -250,6 +251,9 @@ config PPC_EARLY_DEBUG_44x_PHYSLOW
 	hex "Low 32 bits of early debug UART physical address"
 	depends on PPC_EARLY_DEBUG_44x
 	default "0x40000200"
+	help
+	  You probably want 0x40000200 for ebony boards and
+          0x40000300 for taishan
 
 config PPC_EARLY_DEBUG_44x_PHYSHIGH
 	hex "EPRN of early debug UART physical address"
arch/powerpc/platforms/44x/Kconfig +14 -0
Index: linux-merge/arch/powerpc/platforms/44x/Kconfig
===================================================================
@@ -23,6 +23,16 @@ config SEQUOIA
 	help
 	  This option enables support for the AMCC PPC440EPX evaluation board.
 
+config TAISHAN
+	bool "Taishan"
+	depends on 44x
+	default n
+	select 440GX
+	select PCI
+	help
+	  This option enables support for the AMCC PPC440GX "Taishan"
+	  evaluation board.
+
 #config LUAN
 #	bool "Luan"
 #	depends on 44x
@@ -59,6 +69,10 @@ config 440GP
 
 config 440GX
 	bool
+        select IBM_NEW_EMAC_EMAC4
+	select IBM_NEW_EMAC_RGMII
+        select IBM_NEW_EMAC_ZMII #test only
+        select IBM_NEW_EMAC_TAH  #test only
 
 config 440SP
 	bool
arch/powerpc/platforms/44x/Makefile +1 -0
Index: linux-merge/arch/powerpc/platforms/44x/Makefile
===================================================================
@@ -1,4 +1,5 @@
 obj-$(CONFIG_44x)	:= misc_44x.o
 obj-$(CONFIG_EBONY)	+= ebony.o
+obj-$(CONFIG_TAISHAN)	+= taishan.o
 obj-$(CONFIG_BAMBOO) += bamboo.o
 obj-$(CONFIG_SEQUOIA)	+= sequoia.o
arch/powerpc/platforms/44x/taishan.c new file +74 -0

74 lines not on this page · raw message

arch/powerpc/boot/dts/taishan.dts new file +375 -0

375 lines not on this page · raw message

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

56 lines not on this page · raw message

arch/powerpc/configs/taishan_defconfig new file +787 -0

787 lines not on this page · raw message

#1 lore raw

Review

Quoted 4 lines · On Fri, 21 Dec 2007 15:39:28 +1100 Benjamin Herrenschmidt…

+++ linux-merge/arch/powerpc/platforms/44x/taishan.c 2007-12-21 14:20:04.000000000 +1100

(quoted diff) +2 -0
+
+static struct of_device_id taishan_of_bus[] = {

__initdata (preferably) or const, please.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/