[ARM] add Marvell 78xx0 ARM SoC support
The Marvell Discovery Duo (MV78xx0) is a family of ARM SoCs featuring
(depending on the model) one or two Feroceon CPU cores with 512K of L2
cache and VFP coprocessors running at (depending on the model) between
800 MHz and 1.2 GHz, and features a DDR2 controller, two PCIe
interfaces that can each run either in x4 or quad x1 mode, three USB
2.0 interfaces, two 3Gb/s SATA II interfaces, a SPI interface, two
TWSI interfaces, a crypto accelerator, IDMA/XOR engines, a SPI
interface, four UARTs, and depending on the model, two or four gigabit
ethernet interfaces.
This patch adds basic support for the platform, and allows booting
on the MV78x00 development board, with functional UARTs, SATA, PCIe,
GigE and USB ports.
Signed-off-by: Stanislav Samsonov <samsonov@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 03:45:10 +07:00
|
|
|
/*
|
|
|
|
* arch/arm/mach-mv78xx0/common.h
|
|
|
|
*
|
|
|
|
* Core functions for Marvell MV78xx0 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_MV78XX0_COMMON_H
|
|
|
|
#define __ARCH_MV78XX0_COMMON_H
|
|
|
|
|
2013-07-09 06:01:40 +07:00
|
|
|
#include <linux/reboot.h>
|
|
|
|
|
[ARM] add Marvell 78xx0 ARM SoC support
The Marvell Discovery Duo (MV78xx0) is a family of ARM SoCs featuring
(depending on the model) one or two Feroceon CPU cores with 512K of L2
cache and VFP coprocessors running at (depending on the model) between
800 MHz and 1.2 GHz, and features a DDR2 controller, two PCIe
interfaces that can each run either in x4 or quad x1 mode, three USB
2.0 interfaces, two 3Gb/s SATA II interfaces, a SPI interface, two
TWSI interfaces, a crypto accelerator, IDMA/XOR engines, a SPI
interface, four UARTs, and depending on the model, two or four gigabit
ethernet interfaces.
This patch adds basic support for the platform, and allows booting
on the MV78x00 development board, with functional UARTs, SATA, PCIe,
GigE and USB ports.
Signed-off-by: Stanislav Samsonov <samsonov@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 03:45:10 +07:00
|
|
|
struct mv643xx_eth_platform_data;
|
|
|
|
struct mv_sata_platform_data;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Basic MV78xx0 init functions used early by machine-setup.
|
|
|
|
*/
|
|
|
|
int mv78xx0_core_index(void);
|
|
|
|
void mv78xx0_map_io(void);
|
|
|
|
void mv78xx0_init(void);
|
2010-10-15 21:50:26 +07:00
|
|
|
void mv78xx0_init_early(void);
|
[ARM] add Marvell 78xx0 ARM SoC support
The Marvell Discovery Duo (MV78xx0) is a family of ARM SoCs featuring
(depending on the model) one or two Feroceon CPU cores with 512K of L2
cache and VFP coprocessors running at (depending on the model) between
800 MHz and 1.2 GHz, and features a DDR2 controller, two PCIe
interfaces that can each run either in x4 or quad x1 mode, three USB
2.0 interfaces, two 3Gb/s SATA II interfaces, a SPI interface, two
TWSI interfaces, a crypto accelerator, IDMA/XOR engines, a SPI
interface, four UARTs, and depending on the model, two or four gigabit
ethernet interfaces.
This patch adds basic support for the platform, and allows booting
on the MV78x00 development board, with functional UARTs, SATA, PCIe,
GigE and USB ports.
Signed-off-by: Stanislav Samsonov <samsonov@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 03:45:10 +07:00
|
|
|
void mv78xx0_init_irq(void);
|
|
|
|
|
|
|
|
void mv78xx0_setup_cpu_mbus(void);
|
|
|
|
void mv78xx0_setup_pcie_io_win(int window, u32 base, u32 size,
|
|
|
|
int maj, int min);
|
|
|
|
void mv78xx0_setup_pcie_mem_win(int window, u32 base, u32 size,
|
|
|
|
int maj, int min);
|
|
|
|
|
2009-02-20 08:31:35 +07:00
|
|
|
void mv78xx0_pcie_id(u32 *dev, u32 *rev);
|
|
|
|
|
[ARM] add Marvell 78xx0 ARM SoC support
The Marvell Discovery Duo (MV78xx0) is a family of ARM SoCs featuring
(depending on the model) one or two Feroceon CPU cores with 512K of L2
cache and VFP coprocessors running at (depending on the model) between
800 MHz and 1.2 GHz, and features a DDR2 controller, two PCIe
interfaces that can each run either in x4 or quad x1 mode, three USB
2.0 interfaces, two 3Gb/s SATA II interfaces, a SPI interface, two
TWSI interfaces, a crypto accelerator, IDMA/XOR engines, a SPI
interface, four UARTs, and depending on the model, two or four gigabit
ethernet interfaces.
This patch adds basic support for the platform, and allows booting
on the MV78x00 development board, with functional UARTs, SATA, PCIe,
GigE and USB ports.
Signed-off-by: Stanislav Samsonov <samsonov@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 03:45:10 +07:00
|
|
|
void mv78xx0_ehci0_init(void);
|
|
|
|
void mv78xx0_ehci1_init(void);
|
|
|
|
void mv78xx0_ehci2_init(void);
|
|
|
|
void mv78xx0_ge00_init(struct mv643xx_eth_platform_data *eth_data);
|
|
|
|
void mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data);
|
|
|
|
void mv78xx0_ge10_init(struct mv643xx_eth_platform_data *eth_data);
|
|
|
|
void mv78xx0_ge11_init(struct mv643xx_eth_platform_data *eth_data);
|
|
|
|
void mv78xx0_pcie_init(int init_port0, int init_port1);
|
|
|
|
void mv78xx0_sata_init(struct mv_sata_platform_data *sata_data);
|
|
|
|
void mv78xx0_uart0_init(void);
|
|
|
|
void mv78xx0_uart1_init(void);
|
|
|
|
void mv78xx0_uart2_init(void);
|
|
|
|
void mv78xx0_uart3_init(void);
|
2009-03-04 02:13:50 +07:00
|
|
|
void mv78xx0_i2c_init(void);
|
2013-07-09 06:01:40 +07:00
|
|
|
void mv78xx0_restart(enum reboot_mode, const char *);
|
[ARM] add Marvell 78xx0 ARM SoC support
The Marvell Discovery Duo (MV78xx0) is a family of ARM SoCs featuring
(depending on the model) one or two Feroceon CPU cores with 512K of L2
cache and VFP coprocessors running at (depending on the model) between
800 MHz and 1.2 GHz, and features a DDR2 controller, two PCIe
interfaces that can each run either in x4 or quad x1 mode, three USB
2.0 interfaces, two 3Gb/s SATA II interfaces, a SPI interface, two
TWSI interfaces, a crypto accelerator, IDMA/XOR engines, a SPI
interface, four UARTs, and depending on the model, two or four gigabit
ethernet interfaces.
This patch adds basic support for the platform, and allows booting
on the MV78x00 development board, with functional UARTs, SATA, PCIe,
GigE and USB ports.
Signed-off-by: Stanislav Samsonov <samsonov@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 03:45:10 +07:00
|
|
|
|
2012-11-09 02:40:59 +07:00
|
|
|
extern void mv78xx0_timer_init(void);
|
[ARM] add Marvell 78xx0 ARM SoC support
The Marvell Discovery Duo (MV78xx0) is a family of ARM SoCs featuring
(depending on the model) one or two Feroceon CPU cores with 512K of L2
cache and VFP coprocessors running at (depending on the model) between
800 MHz and 1.2 GHz, and features a DDR2 controller, two PCIe
interfaces that can each run either in x4 or quad x1 mode, three USB
2.0 interfaces, two 3Gb/s SATA II interfaces, a SPI interface, two
TWSI interfaces, a crypto accelerator, IDMA/XOR engines, a SPI
interface, four UARTs, and depending on the model, two or four gigabit
ethernet interfaces.
This patch adds basic support for the platform, and allows booting
on the MV78x00 development board, with functional UARTs, SATA, PCIe,
GigE and USB ports.
Signed-off-by: Stanislav Samsonov <samsonov@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-23 03:45:10 +07:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|