[PATCH] Support for AMCC Yosemite 440EP Eval Board

2005-07-27 Thread John Otken
This patch adds support for the new AMCC Yosemite 440EP Eval
Board.  I tested it on the both Bamboo and Yosemite boards
using the 2.6.12 kernel.

This patch has three dependencies:
 2005-04-07 Wade Farnsworth's PPC440EP SoC and Bamboo board support
 2005-07-20 My fix invalid function name usb_hcd_put in ohci-ppc-soc.c
 2005-07-27 My Support 440EP On-Chip OHCI USB Host Controller

http://patchwork.ozlabs.org/linuxppc/patch?id=1311
http://patchwork.ozlabs.org/linuxppc/patch?id=1803
http://patchwork.ozlabs.org/linuxppc/patch?id=1855

Comments are welcome.

Signed-off-by: John Otken jotken at softadvances.com


diff -uprN c/arch/ppc/configs/yosemite_defconfig 
d/arch/ppc/configs/yosemite_defconfig
--- c/arch/ppc/configs/yosemite_defconfig   1969-12-31 17:00:00.0 
-0700
+++ d/arch/ppc/configs/yosemite_defconfig   2005-07-26 09:49:51.0 
-0500
@@ -0,0 +1,874 @@
+#
+# Automatically generated make config: don't edit
+# Linux kernel version: 2.6.12
+# Wed Jul 13 20:59:13 2005
+#
+CONFIG_MMU=y
+CONFIG_GENERIC_HARDIRQS=y
+CONFIG_RWSEM_XCHGADD_ALGORITHM=y
+CONFIG_GENERIC_CALIBRATE_DELAY=y
+CONFIG_HAVE_DEC_LOCK=y
+CONFIG_PPC=y
+CONFIG_PPC32=y
+CONFIG_GENERIC_NVRAM=y
+CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
+
+#
+# Code maturity level options
+#
+CONFIG_EXPERIMENTAL=y
+CONFIG_CLEAN_COMPILE=y
+CONFIG_BROKEN_ON_SMP=y
+CONFIG_INIT_ENV_ARG_LIMIT=32
+
+#
+# General setup
+#
+CONFIG_LOCALVERSION=
+CONFIG_SWAP=y
+CONFIG_SYSVIPC=y
+# CONFIG_POSIX_MQUEUE is not set
+# CONFIG_BSD_PROCESS_ACCT is not set
+CONFIG_SYSCTL=y
+# CONFIG_AUDIT is not set
+# CONFIG_HOTPLUG is not set
+CONFIG_KOBJECT_UEVENT=y
+# CONFIG_IKCONFIG is not set
+CONFIG_EMBEDDED=y
+CONFIG_KALLSYMS=y
+# CONFIG_KALLSYMS_ALL is not set
+# CONFIG_KALLSYMS_EXTRA_PASS is not set
+CONFIG_PRINTK=y
+CONFIG_BUG=y
+CONFIG_BASE_FULL=y
+CONFIG_FUTEX=y
+CONFIG_EPOLL=y
+# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
+CONFIG_SHMEM=y
+CONFIG_CC_ALIGN_FUNCTIONS=0
+CONFIG_CC_ALIGN_LABELS=0
+CONFIG_CC_ALIGN_LOOPS=0
+CONFIG_CC_ALIGN_JUMPS=0
+# CONFIG_TINY_SHMEM is not set
+CONFIG_BASE_SMALL=0
+
+#
+# Loadable module support
+#
+CONFIG_MODULES=y
+CONFIG_MODULE_UNLOAD=y
+# CONFIG_MODULE_FORCE_UNLOAD is not set
+CONFIG_OBSOLETE_MODPARM=y
+# CONFIG_MODVERSIONS is not set
+# CONFIG_MODULE_SRCVERSION_ALL is not set
+CONFIG_KMOD=y
+
+#
+# Processor
+#
+# CONFIG_6xx is not set
+# CONFIG_40x is not set
+CONFIG_44x=y
+# CONFIG_POWER3 is not set
+# CONFIG_POWER4 is not set
+# CONFIG_8xx is not set
+# CONFIG_E500 is not set
+CONFIG_PPC_FPU=y
+CONFIG_BOOKE=y
+CONFIG_PTE_64BIT=y
+CONFIG_PHYS_64BIT=y
+# CONFIG_MATH_EMULATION is not set
+# CONFIG_CPU_FREQ is not set
+CONFIG_4xx=y
+
+#
+# IBM 4xx options
+#
+# CONFIG_BAMBOO is not set
+# CONFIG_EBONY is not set
+# CONFIG_LUAN is not set
+# CONFIG_OCOTEA is not set
+# CONFIG_YELLOWSTONE is not set
+CONFIG_YOSEMITE=y
+CONFIG_440EP=y
+CONFIG_440_FPU=y
+CONFIG_IBM440EP_ERR42=y
+CONFIG_IBM_OCP=y
+# CONFIG_PPC4xx_DMA is not set
+CONFIG_PPC_GEN550=y
+# CONFIG_PM is not set
+CONFIG_NOT_COHERENT_CACHE=y
+
+#
+# Platform options
+#
+# CONFIG_PC_KEYBOARD is not set
+# CONFIG_SMP is not set
+# CONFIG_PREEMPT is not set
+# CONFIG_HIGHMEM is not set
+CONFIG_BINFMT_ELF=y
+# CONFIG_BINFMT_MISC is not set
+CONFIG_CMDLINE_BOOL=y
+CONFIG_CMDLINE=ip=on root=/dev/ram rw ramdisk=49152
+CONFIG_ISA_DMA_API=y
+
+#
+# Bus options
+#
+CONFIG_PCI=y
+CONFIG_PCI_DOMAINS=y
+# CONFIG_PCI_LEGACY_PROC is not set
+# CONFIG_PCI_NAMES is not set
+# CONFIG_PCI_DEBUG is not set
+
+#
+# PCCARD (PCMCIA/CardBus) support
+#
+# CONFIG_PCCARD is not set
+
+#
+# Advanced setup
+#
+# CONFIG_ADVANCED_OPTIONS is not set
+
+#
+# Default settings for advanced configuration options are used
+#
+CONFIG_HIGHMEM_START=0xfe00
+CONFIG_LOWMEM_SIZE=0x3000
+CONFIG_KERNEL_START=0xc000
+CONFIG_TASK_SIZE=0x8000
+CONFIG_CONSISTENT_START=0xff10
+CONFIG_CONSISTENT_SIZE=0x0020
+CONFIG_BOOT_LOAD=0x0100
+
+#
+# Device Drivers
+#
+
+#
+# Generic Driver Options
+#
+# CONFIG_STANDALONE is not set
+CONFIG_PREVENT_FIRMWARE_BUILD=y
+# CONFIG_FW_LOADER is not set
+# CONFIG_DEBUG_DRIVER is not set
+
+#
+# Memory Technology Devices (MTD)
+#
+# CONFIG_MTD is not set
+
+#
+# Parallel port support
+#
+# CONFIG_PARPORT is not set
+
+#
+# Plug and Play support
+#
+
+#
+# Block devices
+#
+# CONFIG_BLK_DEV_FD is not set
+# CONFIG_BLK_CPQ_DA is not set
+# CONFIG_BLK_CPQ_CISS_DA is not set
+# CONFIG_BLK_DEV_DAC960 is not set
+# CONFIG_BLK_DEV_UMEM is not set
+# CONFIG_BLK_DEV_COW_COMMON is not set
+# CONFIG_BLK_DEV_LOOP is not set
+# CONFIG_BLK_DEV_NBD is not set
+# CONFIG_BLK_DEV_SX8 is not set
+# CONFIG_BLK_DEV_UB is not set
+CONFIG_BLK_DEV_RAM=y
+CONFIG_BLK_DEV_RAM_COUNT=16
+CONFIG_BLK_DEV_RAM_SIZE=4096
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_INITRAMFS_SOURCE=
+# CONFIG_LBD is not set
+# CONFIG_CDROM_PKTCDVD is not set
+
+#
+# IO Schedulers
+#
+CONFIG_IOSCHED_NOOP=y
+CONFIG_IOSCHED_AS=y
+CONFIG_IOSCHED_DEADLINE=y
+CONFIG_IOSCHED_CFQ=y
+# CONFIG_ATA_OVER_ETH is not set
+
+#
+# ATA/ATAPI/MFM/RLL 

[PATCH] Support for AMCC Yosemite 440EP Eval Board

2005-07-27 Thread Stefan Roese
Hi John,

On Wednesday 27 July 2005 13:58, John Otken wrote:
 This patch adds support for the new AMCC Yosemite 440EP Eval
 Board.  I tested it on the both Bamboo and Yosemite boards
 using the 2.6.12 kernel.

How about a patch against a more recent kernel?

 This patch has three dependencies:
  2005-04-07 Wade Farnsworth's PPC440EP SoC and Bamboo board support

Please use the patches Wade sent yesterday to this list.

  2005-07-20 My fix invalid function name usb_hcd_put in ohci-ppc-soc.c
  2005-07-27 My Support 440EP On-Chip OHCI USB Host Controller

 http://patchwork.ozlabs.org/linuxppc/patch?id=1311
 http://patchwork.ozlabs.org/linuxppc/patch?id=1803
 http://patchwork.ozlabs.org/linuxppc/patch?id=1855

 Comments are welcome.

OK, here we go...

snip

 diff -uprN c/arch/ppc/platforms/4xx/bamboo.c
 d/arch/ppc/platforms/4xx/bamboo.c ---
 c/arch/ppc/platforms/4xx/bamboo.c 2005-07-25 06:34:52.0 -0500 +++
 d/arch/ppc/platforms/4xx/bamboo.c 2005-07-26 10:31:37.0 -0500 @@
 -59,6 +59,20 @@
   */
  #include ../../../../drivers/net/ibm_emac/ibm_emac_phy.h

 +#if defined(CONFIG_BAMBOO)
 +static const int bamboo = 1;
 +static const char cpu_name[] = {440EP};
 +static const char brd_name[] = {Bamboo};
 +#elif defined(CONFIG_YELLOWSTONE)
 +static const int bamboo = 0;
 +static const char cpu_name[] = {440GR};
 +static const char brd_name[] = {Yellowstone};
 +#else
 +static const int bamboo = 0;
 +static const char cpu_name[] = {440EP};
 +static const char brd_name[] = {Yosemite};
 +#endif
 +

Hmmm. You seem to include not only the Yosemite but also the Yellowstone with 
a different processor type (440GR) into the bamboo platform file. I would 
prefer seperate platform files for the different boards, especially since the 
differences are not marginal.

snip

 diff -uprN c/arch/ppc/platforms/4xx/Makefile
 d/arch/ppc/platforms/4xx/Makefile ---
 c/arch/ppc/platforms/4xx/Makefile 2005-07-24 16:14:36.0 -0500 +++
 d/arch/ppc/platforms/4xx/Makefile 2005-07-26 10:51:35.0 -0500 @@
 -15,6 +15,7 @@ obj-$(CONFIG_REDWOOD_6)+= redwood6.o
  obj-$(CONFIG_SYCAMORE)   += sycamore.o
  obj-$(CONFIG_WALNUT) += walnut.o
  obj-$(CONFIG_XILINX_ML300)   += xilinx_ml300.o
 +obj-$(CONFIG_YOSEMITE)   += bamboo.o

Please see above.

Best regards,
Stefan



[PATCH] Support for AMCC Yosemite 440EP Eval Board

2005-07-27 Thread Eugene Surovegin
On Wed, Jul 27, 2005 at 06:58:21AM -0500, John Otken wrote:
 This patch adds support for the new AMCC Yosemite 440EP Eval
 Board.  I tested it on the both Bamboo and Yosemite boards
 using the 2.6.12 kernel.
 
 This patch has three dependencies:
 2005-04-07 Wade Farnsworth's PPC440EP SoC and Bamboo board support

Why this old one? Updated patch was posted yesterday.

 2005-07-20 My fix invalid function name usb_hcd_put in ohci-ppc-soc.c
 2005-07-27 My Support 440EP On-Chip OHCI USB Host Controller
 
 http://patchwork.ozlabs.org/linuxppc/patch?id=1311
 http://patchwork.ozlabs.org/linuxppc/patch?id=1803
 http://patchwork.ozlabs.org/linuxppc/patch?id=1855
 
 Comments are welcome.

Well, why don't you make separate board port instead if hacking 
Bamboo one? 

IMHO, direction you are going is creating a lot of mess. If there is 
some common parts between Bamboo and Yosemite, the right way is to 
factor out this stuff from Bamboo port.

Also, your patch is mangled - some lines are wrapped.

-- 
Eugene




[PATCH] Support for AMCC Yosemite 440EP Eval Board

2005-07-27 Thread Matt Porter
On Wed, Jul 27, 2005 at 08:59:51AM -0700, Eugene Surovegin wrote:
 On Wed, Jul 27, 2005 at 06:58:21AM -0500, John Otken wrote:
  This patch adds support for the new AMCC Yosemite 440EP Eval
  Board.  I tested it on the both Bamboo and Yosemite boards
  using the 2.6.12 kernel.
  
  This patch has three dependencies:
  2005-04-07 Wade Farnsworth's PPC440EP SoC and Bamboo board support
 
 Why this old one? Updated patch was posted yesterday.

It should be noted that yesterday's patch is what I'm splitting to
send upstream.

-Matt