[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 00:45:06 +04:00
|
|
|
/*
|
|
|
|
* arch/arm/mach-kirkwood/common.h
|
|
|
|
*
|
|
|
|
* Core functions for Marvell Kirkwood SoCs
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ARCH_KIRKWOOD_COMMON_H
|
|
|
|
#define __ARCH_KIRKWOOD_COMMON_H
|
|
|
|
|
2008-09-25 18:23:48 +04:00
|
|
|
struct dsa_platform_data;
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 00:45:06 +04:00
|
|
|
struct mv643xx_eth_platform_data;
|
|
|
|
struct mv_sata_platform_data;
|
2009-02-14 11:15:55 +03:00
|
|
|
struct mvsdio_platform_data;
|
2009-06-01 23:36:36 +04:00
|
|
|
struct mtd_partition;
|
2010-04-20 13:26:19 +04:00
|
|
|
struct mtd_info;
|
2010-05-31 15:49:12 +04:00
|
|
|
struct kirkwood_asoc_platform_data;
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 00:45:06 +04:00
|
|
|
|
2010-06-08 15:21:34 +04:00
|
|
|
#define KW_PCIE0 (1 << 0)
|
|
|
|
#define KW_PCIE1 (1 << 1)
|
|
|
|
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 00:45:06 +04:00
|
|
|
/*
|
|
|
|
* Basic Kirkwood init functions used early by machine-setup.
|
|
|
|
*/
|
|
|
|
void kirkwood_map_io(void);
|
|
|
|
void kirkwood_init(void);
|
2010-10-15 18:50:26 +04:00
|
|
|
void kirkwood_init_early(void);
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 00:45:06 +04:00
|
|
|
void kirkwood_init_irq(void);
|
|
|
|
|
|
|
|
void kirkwood_setup_cpu_mbus(void);
|
|
|
|
|
2011-02-03 01:16:10 +03:00
|
|
|
void kirkwood_enable_pcie(void);
|
2008-09-15 11:40:35 +04:00
|
|
|
void kirkwood_pcie_id(u32 *dev, u32 *rev);
|
|
|
|
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 00:45:06 +04:00
|
|
|
void kirkwood_ehci_init(void);
|
|
|
|
void kirkwood_ge00_init(struct mv643xx_eth_platform_data *eth_data);
|
2008-10-20 01:10:14 +04:00
|
|
|
void kirkwood_ge01_init(struct mv643xx_eth_platform_data *eth_data);
|
2008-09-25 18:23:48 +04:00
|
|
|
void kirkwood_ge00_switch_init(struct dsa_platform_data *d, int irq);
|
2010-06-08 15:21:34 +04:00
|
|
|
void kirkwood_pcie_init(unsigned int portmask);
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 00:45:06 +04:00
|
|
|
void kirkwood_sata_init(struct mv_sata_platform_data *sata_data);
|
2009-02-14 11:15:55 +03:00
|
|
|
void kirkwood_sdio_init(struct mvsdio_platform_data *mvsdio_data);
|
2008-08-09 17:38:18 +04:00
|
|
|
void kirkwood_spi_init(void);
|
2009-03-23 21:13:21 +03:00
|
|
|
void kirkwood_i2c_init(void);
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 00:45:06 +04:00
|
|
|
void kirkwood_uart0_init(void);
|
|
|
|
void kirkwood_uart1_init(void);
|
2009-06-01 23:36:36 +04:00
|
|
|
void kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, int delay);
|
2010-04-20 13:26:19 +04:00
|
|
|
void kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts, int (*dev_ready)(struct mtd_info *));
|
2010-05-31 15:49:12 +04:00
|
|
|
void kirkwood_audio_init(void);
|
2011-11-05 14:03:47 +04:00
|
|
|
void kirkwood_restart(char, const char *);
|
2011-12-15 11:15:07 +04:00
|
|
|
void kirkwood_clk_init(void);
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 00:45:06 +04:00
|
|
|
|
2012-03-15 04:52:31 +04:00
|
|
|
/* board init functions for boards not fully converted to fdt */
|
|
|
|
#ifdef CONFIG_MACH_DREAMPLUG_DT
|
|
|
|
void dreamplug_init(void);
|
|
|
|
#else
|
|
|
|
static inline void dreamplug_init(void) {};
|
|
|
|
#endif
|
2012-05-12 16:57:59 +04:00
|
|
|
#ifdef CONFIG_MACH_TS219_DT
|
|
|
|
void qnap_dt_ts219_init(void);
|
|
|
|
#else
|
|
|
|
static inline void qnap_dt_ts219_init(void) {};
|
|
|
|
#endif
|
2012-03-15 04:52:31 +04:00
|
|
|
|
2012-04-18 14:06:40 +04:00
|
|
|
#ifdef CONFIG_MACH_DLINK_KIRKWOOD_DT
|
|
|
|
void dnskw_init(void);
|
|
|
|
#else
|
|
|
|
static inline void dnskw_init(void) {};
|
|
|
|
#endif
|
|
|
|
|
2012-04-19 01:16:41 +04:00
|
|
|
#ifdef CONFIG_MACH_ICONNECT_DT
|
|
|
|
void iconnect_init(void);
|
|
|
|
#else
|
|
|
|
static inline void iconnect_init(void) {};
|
|
|
|
#endif
|
|
|
|
|
2012-05-01 01:55:17 +04:00
|
|
|
#ifdef CONFIG_MACH_IB62X0_DT
|
|
|
|
void ib62x0_init(void);
|
|
|
|
#else
|
|
|
|
static inline void ib62x0_init(void) {};
|
|
|
|
#endif
|
|
|
|
|
2012-08-15 00:43:41 +04:00
|
|
|
#ifdef CONFIG_MACH_DOCKSTAR_DT
|
|
|
|
void dockstar_dt_init(void);
|
|
|
|
#else
|
|
|
|
static inline void dockstar_dt_init(void) {};
|
|
|
|
#endif
|
|
|
|
|
2012-07-16 13:52:50 +04:00
|
|
|
#ifdef CONFIG_MACH_GOFLEXNET_DT
|
|
|
|
void goflexnet_init(void);
|
|
|
|
#else
|
|
|
|
static inline void goflexnet_init(void) {};
|
|
|
|
#endif
|
|
|
|
|
2012-07-17 09:25:55 +04:00
|
|
|
#ifdef CONFIG_MACH_LSXL_DT
|
|
|
|
void lsxl_init(void);
|
|
|
|
#else
|
|
|
|
static inline void lsxl_init(void) {};
|
|
|
|
#endif
|
|
|
|
|
2012-08-20 18:29:07 +04:00
|
|
|
#ifdef CONFIG_MACH_IOMEGA_IX2_200_DT
|
|
|
|
void iomega_ix2_200_init(void);
|
|
|
|
#else
|
|
|
|
static inline void iomega_ix2_200_init(void) {};
|
|
|
|
#endif
|
|
|
|
|
2012-09-04 13:55:02 +04:00
|
|
|
#ifdef CONFIG_MACH_KM_KIRKWOOD_DT
|
|
|
|
void km_kirkwood_init(void);
|
|
|
|
#else
|
|
|
|
static inline void km_kirkwood_init(void) {};
|
|
|
|
#endif
|
|
|
|
|
2012-03-15 04:52:31 +04:00
|
|
|
/* early init functions not converted to fdt yet */
|
2012-02-29 21:39:08 +04:00
|
|
|
char *kirkwood_id(void);
|
|
|
|
void kirkwood_l2_init(void);
|
|
|
|
void kirkwood_wdt_init(void);
|
|
|
|
void kirkwood_xor0_init(void);
|
|
|
|
void kirkwood_xor1_init(void);
|
|
|
|
void kirkwood_crypto_init(void);
|
|
|
|
|
2009-03-22 17:22:11 +03:00
|
|
|
extern int kirkwood_tclk;
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 00:45:06 +04:00
|
|
|
extern struct sys_timer kirkwood_timer;
|
|
|
|
|
2009-06-01 23:36:36 +04:00
|
|
|
#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 00:45:06 +04:00
|
|
|
|
|
|
|
#endif
|