Commit c7033ab5 authored by Mark A. Greer's avatar Mark A. Greer Committed by Linus Torvalds

[PATCH] ppc32: support for Force CPCI-690 board

This patch adds support for the Force CPCI-690 cPCI board.
Signed-off-by: default avatarMark A. Greer <mgreer@mvista.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 216df828
......@@ -503,6 +503,11 @@ config APUS
config WILLOW
bool "Cogent-Willow"
config CPCI690
bool "Force-CPCI690"
help
Select CPCI690 if configuring a Force CPCI690 cPCI board.
config PCORE
bool "Force-PowerCore"
......@@ -693,7 +698,7 @@ config FORCE
config GT64260
bool
depends on EV64260
depends on EV64260 || CPCI690
default y
config MV64X60
......
......@@ -47,6 +47,12 @@ clear_L2_L3 := $(srctree)/$(boot)/simple/clear.S
# See arch/ppc/kconfig and arch/ppc/platforms/Kconfig
# for definition of what platform each config option refer to.
#----------------------------------------------------------------------------
zimage-$(CONFIG_CPCI690) := zImage-STRIPELF
zimageinitrd-$(CONFIG_CPCI690) := zImage.initrd-STRIPELF
extra.o-$(CONFIG_CPCI690) := misc-cpci690.o mv64x60_stub.o
end-$(CONFIG_CPCI690) := cpci690
cacheflag-$(CONFIG_CPCI690) := -include $(clear_L2_L3)
zimage-$(CONFIG_IBM_OPENBIOS) := zImage-TREE
zimageinitrd-$(CONFIG_IBM_OPENBIOS) := zImage.initrd-TREE
end-$(CONFIG_IBM_OPENBIOS) := treeboot
......
/*
* arch/ppc/boot/simple/misc-cpci690.c
*
* Add birec data for Force CPCI690 board.
*
* Author: Mark A. Greer <source@mvista.com>
*
* 2003 (c) MontaVista Software, Inc. This file is licensed under
* the terms of the GNU General Public License version 2. This program
* is licensed "as is" without any warranty of any kind, whether express
* or implied.
*/
#include <linux/types.h>
long mv64x60_mpsc_clk_freq = 133000000;
This diff is collapsed.
......@@ -23,6 +23,7 @@ obj-$(CONFIG_PREP_RESIDUAL) += residual.o
obj-$(CONFIG_ADIR) += adir_setup.o adir_pic.o adir_pci.o
obj-$(CONFIG_PQ2ADS) += pq2ads.o
obj-$(CONFIG_TQM8260) += tqm8260_setup.o
obj-$(CONFIG_CPCI690) += cpci690.o
obj-$(CONFIG_EV64260) += ev64260.o
obj-$(CONFIG_GEMINI) += gemini_pci.o gemini_setup.o gemini_prom.o
obj-$(CONFIG_K2) += k2.o
......
This diff is collapsed.
/*
* arch/ppc/platforms/cpci690.h
*
* Definitions for Force CPCI690
*
* Author: Mark A. Greer <mgreer@mvista.com>
*
* 2003 (c) MontaVista, Software, Inc. This file is licensed under
* the terms of the GNU General Public License version 2. This program
* is licensed "as is" without any warranty of any kind, whether express
* or implied.
*/
/*
* The GT64260 has 2 PCI buses each with 1 window from the CPU bus to
* PCI I/O space and 4 windows from the CPU bus to PCI MEM space.
*/
#ifndef __PPC_PLATFORMS_CPCI690_H
#define __PPC_PLATFORMS_CPCI690_H
/*
* Define bd_t to pass in the MAC addresses used by the GT64260's enet ctlrs.
*/
#define CPCI690_BI_MAGIC 0xFE8765DC
typedef struct board_info {
u32 bi_magic;
u8 bi_enetaddr[3][6];
} bd_t;
/* PCI bus Resource setup */
#define CPCI690_PCI0_MEM_START_PROC_ADDR 0x80000000
#define CPCI690_PCI0_MEM_START_PCI_HI_ADDR 0x00000000
#define CPCI690_PCI0_MEM_START_PCI_LO_ADDR 0x80000000
#define CPCI690_PCI0_MEM_SIZE 0x10000000
#define CPCI690_PCI0_IO_START_PROC_ADDR 0xa0000000
#define CPCI690_PCI0_IO_START_PCI_ADDR 0x00000000
#define CPCI690_PCI0_IO_SIZE 0x01000000
#define CPCI690_PCI1_MEM_START_PROC_ADDR 0x90000000
#define CPCI690_PCI1_MEM_START_PCI_HI_ADDR 0x00000000
#define CPCI690_PCI1_MEM_START_PCI_LO_ADDR 0x90000000
#define CPCI690_PCI1_MEM_SIZE 0x10000000
#define CPCI690_PCI1_IO_START_PROC_ADDR 0xa1000000
#define CPCI690_PCI1_IO_START_PCI_ADDR 0x01000000
#define CPCI690_PCI1_IO_SIZE 0x01000000
/* Board Registers */
#define CPCI690_BR_BASE 0xf0000000
#define CPCI690_BR_SIZE_ACTUAL 0x8
#define CPCI690_BR_SIZE max(GT64260_WINDOW_SIZE_MIN, \
CPCI690_BR_SIZE_ACTUAL)
#define CPCI690_BR_LED_CNTL 0x00
#define CPCI690_BR_SW_RESET 0x01
#define CPCI690_BR_MISC_STATUS 0x02
#define CPCI690_BR_SWITCH_STATUS 0x03
#define CPCI690_BR_MEM_CTLR 0x04
#define CPCI690_BR_LAST_RESET_1 0x05
#define CPCI690_BR_LAST_RESET_2 0x06
#define CPCI690_TODC_BASE 0xf0100000
#define CPCI690_TODC_SIZE_ACTUAL 0x8000 /* Size or NVRAM + RTC */
#define CPCI690_TODC_SIZE max(GT64260_WINDOW_SIZE_MIN, \
CPCI690_TODC_SIZE_ACTUAL)
#define CPCI690_MAC_OFFSET 0x7c10 /* MAC in RTC NVRAM */
#define CPCI690_IPMI_BASE 0xf0200000
#define CPCI690_IPMI_SIZE_ACTUAL 0x10 /* 16 bytes of IPMI */
#define CPCI690_IPMI_SIZE max(GT64260_WINDOW_SIZE_MIN, \
CPCI690_IPMI_SIZE_ACTUAL)
#endif /* __PPC_PLATFORMS_CPCI690_H */
......@@ -39,6 +39,7 @@ obj-$(CONFIG_PPC_CHRP) += open_pic.o indirect_pci.o i8259.o
obj-$(CONFIG_PPC_PREP) += open_pic.o indirect_pci.o i8259.o todc_time.o
obj-$(CONFIG_ADIR) += i8259.o indirect_pci.o pci_auto.o \
todc_time.o
obj-$(CONFIG_CPCI690) += todc_time.o pci_auto.o
obj-$(CONFIG_EBONY) += indirect_pci.o pci_auto.o todc_time.o
obj-$(CONFIG_EV64260) += todc_time.o pci_auto.o
obj-$(CONFIG_GEMINI) += open_pic.o indirect_pci.o
......@@ -77,6 +78,9 @@ ifeq ($(CONFIG_PPC_GEN550),y)
obj-$(CONFIG_KGDB) += gen550_kgdb.o gen550_dbg.o
obj-$(CONFIG_SERIAL_TEXT_DEBUG) += gen550_dbg.o
endif
ifeq ($(CONFIG_SERIAL_MPSC_CONSOLE),y)
obj-$(CONFIG_SERIAL_TEXT_DEBUG) += mv64x60_dbg.o
endif
obj-$(CONFIG_BOOTX_TEXT) += btext.o
obj-$(CONFIG_MPC10X_BRIDGE) += mpc10x_common.o indirect_pci.o
obj-$(CONFIG_MPC10X_OPENPIC) += open_pic.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment