mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 23:45:26 +07:00
ce78179ea6
This is a simple move of all header files that are no longer included by anything else from the include/mach directory to the platform directory itself as preparation for multiplatform support. The mach/uncompress.h headers are left in place for now, and are mildly modified to be independent of the other headers. They will be removed entirely when ARCH_MULTIPLATFORM gets enabled and they become obsolete. Rather than updating the path names inside of the comments of each header, I delete those comments to avoid having to update them again, should they get moved or copied another time. Link: https://lore.kernel.org/r/20190731195713.3150463-13-arnd@arndb.de Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
98 lines
2.1 KiB
C
98 lines
2.1 KiB
C
/*
|
|
* arch/arm/mach-dove/cm-a510.c
|
|
*
|
|
* Copyright (C) 2010 CompuLab, Ltd.
|
|
* Konstantin Sinyuk <kostyas@compulab.co.il>
|
|
*
|
|
* Based on Marvell DB-MV88AP510-BP Development Board Setup
|
|
*
|
|
* 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/kernel.h>
|
|
#include <linux/init.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/ata_platform.h>
|
|
#include <linux/mv643xx_eth.h>
|
|
#include <linux/spi/spi.h>
|
|
#include <linux/spi/flash.h>
|
|
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include "dove.h"
|
|
#include "common.h"
|
|
|
|
static struct mv643xx_eth_platform_data cm_a510_ge00_data = {
|
|
.phy_addr = MV643XX_ETH_PHY_ADDR_DEFAULT,
|
|
};
|
|
|
|
static struct mv_sata_platform_data cm_a510_sata_data = {
|
|
.n_ports = 1,
|
|
};
|
|
|
|
/*
|
|
* SPI Devices:
|
|
* SPI0: 1M Flash Winbond w25q32bv
|
|
*/
|
|
static const struct flash_platform_data cm_a510_spi_flash_data = {
|
|
.type = "w25q32bv",
|
|
};
|
|
|
|
static struct spi_board_info __initdata cm_a510_spi_flash_info[] = {
|
|
{
|
|
.modalias = "m25p80",
|
|
.platform_data = &cm_a510_spi_flash_data,
|
|
.irq = -1,
|
|
.max_speed_hz = 20000000,
|
|
.bus_num = 0,
|
|
.chip_select = 0,
|
|
},
|
|
};
|
|
|
|
static int __init cm_a510_pci_init(void)
|
|
{
|
|
if (machine_is_cm_a510())
|
|
dove_pcie_init(1, 1);
|
|
|
|
return 0;
|
|
}
|
|
|
|
subsys_initcall(cm_a510_pci_init);
|
|
|
|
/* Board Init */
|
|
static void __init cm_a510_init(void)
|
|
{
|
|
/*
|
|
* Basic Dove setup. Needs to be called early.
|
|
*/
|
|
dove_init();
|
|
|
|
dove_ge00_init(&cm_a510_ge00_data);
|
|
dove_ehci0_init();
|
|
dove_ehci1_init();
|
|
dove_sata_init(&cm_a510_sata_data);
|
|
dove_sdio0_init();
|
|
dove_sdio1_init();
|
|
dove_spi0_init();
|
|
dove_spi1_init();
|
|
dove_uart0_init();
|
|
dove_uart1_init();
|
|
dove_i2c_init();
|
|
spi_register_board_info(cm_a510_spi_flash_info,
|
|
ARRAY_SIZE(cm_a510_spi_flash_info));
|
|
}
|
|
|
|
MACHINE_START(CM_A510, "Compulab CM-A510 Board")
|
|
.atag_offset = 0x100,
|
|
.nr_irqs = DOVE_NR_IRQS,
|
|
.init_machine = cm_a510_init,
|
|
.map_io = dove_map_io,
|
|
.init_early = dove_init_early,
|
|
.init_irq = dove_init_irq,
|
|
.init_time = dove_timer_init,
|
|
.restart = dove_restart,
|
|
MACHINE_END
|