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

[PATCH] ppc32: Artesyn Katana platform update

- Adds MTD support for the soldered FLASH
- Adds cmdline parsing
- Turns on the Blue LED when the system is halted
- Moves some of the device window left by the firmware to proper alignments
- Handles possibility of different frequencies for TCLK & SysCLK in 64460
- Misc. code clean up
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 8c883a6b
# #
# Automatically generated make config: don't edit # Automatically generated make config: don't edit
# Linux kernel version: 2.6.11-rc2 # Linux kernel version: 2.6.11-rc4
# Tue Jan 25 16:31:13 2005 # Tue Feb 15 14:27:12 2005
# #
CONFIG_MMU=y CONFIG_MMU=y
CONFIG_GENERIC_HARDIRQS=y CONFIG_GENERIC_HARDIRQS=y
...@@ -152,8 +152,8 @@ CONFIG_KERNEL_START=0xc0000000 ...@@ -152,8 +152,8 @@ CONFIG_KERNEL_START=0xc0000000
CONFIG_TASK_SIZE=0x80000000 CONFIG_TASK_SIZE=0x80000000
CONFIG_CONSISTENT_START_BOOL=y CONFIG_CONSISTENT_START_BOOL=y
CONFIG_CONSISTENT_START=0xf0000000 CONFIG_CONSISTENT_START=0xf0000000
# CONFIG_CONSISTENT_SIZE_BOOL is not set CONFIG_CONSISTENT_SIZE_BOOL=y
CONFIG_CONSISTENT_SIZE=0x00200000 CONFIG_CONSISTENT_SIZE=0x00400000
# CONFIG_BOOT_LOAD_BOOL is not set # CONFIG_BOOT_LOAD_BOOL is not set
CONFIG_BOOT_LOAD=0x00800000 CONFIG_BOOT_LOAD=0x00800000
...@@ -171,7 +171,82 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y ...@@ -171,7 +171,82 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
# #
# Memory Technology Devices (MTD) # Memory Technology Devices (MTD)
# #
# CONFIG_MTD is not set CONFIG_MTD=y
# CONFIG_MTD_DEBUG is not set
CONFIG_MTD_PARTITIONS=y
CONFIG_MTD_CONCAT=y
# CONFIG_MTD_REDBOOT_PARTS is not set
# CONFIG_MTD_CMDLINE_PARTS is not set
#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLOCK=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=y
CONFIG_MTD_CFI_ADV_OPTIONS=y
CONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not set
CONFIG_MTD_CFI_GEOMETRY=y
# CONFIG_MTD_MAP_BANK_WIDTH_1 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_2 is not set
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
# CONFIG_MTD_CFI_I1 is not set
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
CONFIG_MTD_CFI_INTELEXT=y
# CONFIG_MTD_CFI_AMDSTD is not set
# CONFIG_MTD_CFI_STAA is not set
CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_XIP is not set
#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_START=0xe0000000
CONFIG_MTD_PHYSMAP_LEN=0x0
CONFIG_MTD_PHYSMAP_BANKWIDTH=4
#
# Self-contained MTD device drivers
#
# CONFIG_MTD_PMC551 is not set
# CONFIG_MTD_SLRAM is not set
CONFIG_MTD_PHRAM=y
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLKMTD is not set
# CONFIG_MTD_BLOCK2MTD is not set
#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOC2000 is not set
# CONFIG_MTD_DOC2001 is not set
# CONFIG_MTD_DOC2001PLUS is not set
#
# NAND Flash Device Drivers
#
# CONFIG_MTD_NAND is not set
# #
# Parallel port support # Parallel port support
...@@ -531,7 +606,6 @@ CONFIG_GEN_RTC=y ...@@ -531,7 +606,6 @@ CONFIG_GEN_RTC=y
# #
# CONFIG_VGA_CONSOLE is not set # CONFIG_VGA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y CONFIG_DUMMY_CONSOLE=y
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
# #
# Sound # Sound
...@@ -573,6 +647,10 @@ CONFIG_EXT2_FS=y ...@@ -573,6 +647,10 @@ CONFIG_EXT2_FS=y
# CONFIG_JBD is not set # CONFIG_JBD is not set
# CONFIG_REISERFS_FS is not set # CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set # CONFIG_JFS_FS is not set
#
# XFS support
#
# CONFIG_XFS_FS is not set # CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set # CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set # CONFIG_ROMFS_FS is not set
...@@ -619,6 +697,8 @@ CONFIG_RAMFS=y ...@@ -619,6 +697,8 @@ CONFIG_RAMFS=y
# CONFIG_BEFS_FS is not set # CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set # CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set # CONFIG_EFS_FS is not set
# CONFIG_JFFS_FS is not set
# CONFIG_JFFS2_FS is not set
# CONFIG_CRAMFS is not set # CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set # CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set # CONFIG_HPFS_FS is not set
...@@ -637,7 +717,6 @@ CONFIG_NFS_V3=y ...@@ -637,7 +717,6 @@ CONFIG_NFS_V3=y
CONFIG_ROOT_NFS=y CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y CONFIG_LOCKD_V4=y
# CONFIG_EXPORTFS is not set
CONFIG_SUNRPC=y CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set # CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set # CONFIG_RPCSEC_GSS_SPKM3 is not set
......
This diff is collapsed.
...@@ -19,18 +19,17 @@ ...@@ -19,18 +19,17 @@
* PCI I/O space and 4 windows from the CPU bus to PCI MEM space. * PCI I/O space and 4 windows from the CPU bus to PCI MEM space.
* We'll only use one PCI MEM window on each PCI bus. * We'll only use one PCI MEM window on each PCI bus.
* *
* This is the CPU physical memory map (windows must be at least 1MB and start * This is the CPU physical memory map (windows must be at least 64 KB and start
* on a boundary that is a multiple of the window size): * on a boundary that is a multiple of the window size):
* *
* 0xff800000-0xffffffff - Boot window * 0xff800000-0xffffffff - Boot window
* 0xf8400000-0xf85fffff - Internal SRAM * 0xf8400000-0xf85fffff - Internal SRAM
* 0xf8200000-0xf823ffff - CPLD * 0xf8200000-0xf83fffff - CPLD
* 0xf8100000-0xf810ffff - MV64360 Registers * 0xf8100000-0xf810ffff - MV64360 Registers (CONFIG_MV64X60_NEW_BASE)
* 0xf8000000-0xf80fffff - PLCC socket * 0xf8000000-0xf80fffff - Socketed FLASH
* 0xf0000000-0xf01fffff - Consistent memory pool * 0xe0000000-0xefffffff - Soldered FLASH
* 0xe8000000-0xefffffff - soldered flash * 0xc0000000-0xc3ffffff - PCI I/O (second hose)
* 0xc0000000-0xc0ffffff - PCI I/O * 0x80000000-0xbfffffff - PCI MEM (second hose)
* 0x80000000-0xbfffffff - PCI MEM
*/ */
#ifndef __PPC_PLATFORMS_KATANA_H #ifndef __PPC_PLATFORMS_KATANA_H
...@@ -38,33 +37,22 @@ ...@@ -38,33 +37,22 @@
/* CPU Physical Memory Map setup. */ /* CPU Physical Memory Map setup. */
#define KATANA_BOOT_WINDOW_BASE 0xff800000 #define KATANA_BOOT_WINDOW_BASE 0xff800000
#define KATANA_BOOT_WINDOW_SIZE 0x00800000 /* 8 MB */
#define KATANA_INTERNAL_SRAM_BASE 0xf8400000 #define KATANA_INTERNAL_SRAM_BASE 0xf8400000
#define KATANA_CPLD_BASE 0xf8200000 #define KATANA_CPLD_BASE 0xf8200000
#define KATANA_BRIDGE_REG_BASE 0xf8100000 #define KATANA_CPLD_SIZE 0x00200000 /* 2 MB */
#define KATANA_SOCKET_BASE 0xf8000000 #define KATANA_SOCKET_BASE 0xf8000000
#define KATANA_SOLDERED_FLASH_BASE 0xe8000000 #define KATANA_SOCKETED_FLASH_SIZE 0x00100000 /* 1 MB */
#define KATANA_SOLDERED_FLASH_BASE 0xe0000000
#define KATANA_BOOT_WINDOW_SIZE_ACTUAL 0x00800000 /* 8MB */ #define KATANA_SOLDERED_FLASH_SIZE 0x10000000 /* 256 MB */
#define KATANA_CPLD_SIZE_ACTUAL 0x00020000 /* 128KB */
#define KATANA_SOCKETED_FLASH_SIZE_ACTUAL 0x00080000 /* 512KB */
#define KATANA_SOLDERED_FLASH_SIZE_ACTUAL 0x02000000 /* 32MB */
#define KATANA_BOOT_WINDOW_SIZE max(MV64360_WINDOW_SIZE_MIN, \
KATANA_BOOT_WINDOW_SIZE_ACTUAL)
#define KATANA_CPLD_SIZE max(MV64360_WINDOW_SIZE_MIN, \
KATANA_CPLD_SIZE_ACTUAL)
#define KATANA_SOCKETED_FLASH_SIZE max(MV64360_WINDOW_SIZE_MIN, \
KATANA_SOCKETED_FLASH_SIZE_ACTUAL)
#define KATANA_SOLDERED_FLASH_SIZE max(MV64360_WINDOW_SIZE_MIN, \
KATANA_SOLDERED_FLASH_SIZE_ACTUAL)
#define KATANA_PCI1_MEM_START_PROC_ADDR 0x80000000 #define KATANA_PCI1_MEM_START_PROC_ADDR 0x80000000
#define KATANA_PCI1_MEM_START_PCI_HI_ADDR 0x00000000 #define KATANA_PCI1_MEM_START_PCI_HI_ADDR 0x00000000
#define KATANA_PCI1_MEM_START_PCI_LO_ADDR 0x80000000 #define KATANA_PCI1_MEM_START_PCI_LO_ADDR 0x80000000
#define KATANA_PCI1_MEM_SIZE 0x40000000 #define KATANA_PCI1_MEM_SIZE 0x40000000 /* 1 GB */
#define KATANA_PCI1_IO_START_PROC_ADDR 0xc0000000 #define KATANA_PCI1_IO_START_PROC_ADDR 0xc0000000
#define KATANA_PCI1_IO_START_PCI_ADDR 0x00000000 #define KATANA_PCI1_IO_START_PCI_ADDR 0x00000000
#define KATANA_PCI1_IO_SIZE 0x01000000 #define KATANA_PCI1_IO_SIZE 0x04000000 /* 64 MB */
/* Board-specific IRQ info */ /* Board-specific IRQ info */
#define KATANA_PCI_INTA_IRQ_3750 64+8 #define KATANA_PCI_INTA_IRQ_3750 64+8
...@@ -138,6 +126,8 @@ ...@@ -138,6 +126,8 @@
#define HSL_PLD_J4SGA_REG_OFF 0 #define HSL_PLD_J4SGA_REG_OFF 0
#define HSL_PLD_J4GA_REG_OFF 1 #define HSL_PLD_J4GA_REG_OFF 1
#define HSL_PLD_J2GA_REG_OFF 2 #define HSL_PLD_J2GA_REG_OFF 2
#define HSL_PLD_HOT_SWAP_OFF 6
#define HSL_PLD_HOT_SWAP_LED_BIT 0x1
#define GA_MASK 0x1f #define GA_MASK 0x1f
#define HSL_PLD_SIZE 0x1000 #define HSL_PLD_SIZE 0x1000
#define K3750_GPP_GEO_ADDR_PINS 0xf8000000 #define K3750_GPP_GEO_ADDR_PINS 0xf8000000
...@@ -162,7 +152,8 @@ ...@@ -162,7 +152,8 @@
#define KATANA_DEFAULT_BAUD 9600 #define KATANA_DEFAULT_BAUD 9600
#define KATANA_MPSC_CLK_SRC 8 /* TCLK */ #define KATANA_MPSC_CLK_SRC 8 /* TCLK */
#define KATANA_MPSC_CLK_FREQ 133333333 /* 133.3333... MHz */
#define KATANA_MTD_MONITOR_SIZE (1 << 20) /* 1 MB */
#define KATANA_ETH0_PHY_ADDR 12 #define KATANA_ETH0_PHY_ADDR 12
#define KATANA_ETH1_PHY_ADDR 11 #define KATANA_ETH1_PHY_ADDR 11
......
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
#define GT64260_WINDOW_SIZE_MIN 0x00100000 #define GT64260_WINDOW_SIZE_MIN 0x00100000
#define MV64360_WINDOW_SIZE_MIN 0x00010000 #define MV64360_WINDOW_SIZE_MIN 0x00010000
#define MV64x60_TCLK_FREQ_MAX 133333333U
/* IRQ's for embedded controllers */ /* IRQ's for embedded controllers */
#define MV64x60_IRQ_DEV 1 #define MV64x60_IRQ_DEV 1
#define MV64x60_IRQ_CPU_ERR 3 #define MV64x60_IRQ_CPU_ERR 3
...@@ -303,7 +305,7 @@ ...@@ -303,7 +305,7 @@
#define MV64360_SRAM_ERR_DATA_HI 0x03a0 #define MV64360_SRAM_ERR_DATA_HI 0x03a0
#define MV64360_SRAM_ERR_PARITY 0x03a8 #define MV64360_SRAM_ERR_PARITY 0x03a8
#define MV64360_SRAM_SIZE 0x00040000 /* 256 KB of SRAM */ #define MV64360_SRAM_SIZE 0x00200000 /* 2 MB of SRAM */
/* /*
***************************************************************************** *****************************************************************************
......
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