4 * ADM5120 specific platform definitions
6 * Copyright (C) 2007 OpenWrt.org
7 * Copyright (C) 2007 Gabor Juhos <juhosg@freemail.hu>
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
25 #ifndef _ADM5120_PLATFORM_H_
26 #define _ADM5120_PLATFORM_H_
28 #include <linux/device.h>
29 #include <linux/platform_device.h>
31 #include <linux/mtd/mtd.h>
32 #include <linux/mtd/map.h>
33 #include <linux/mtd/partitions.h>
35 #include <linux/amba/bus.h>
36 #include <linux/amba/serial.h>
38 struct adm5120_flash_platform_data
{
39 void (*set_vpp
)(struct map_info
*, int);
40 void (*switch_bank
)(unsigned);
41 #ifdef CONFIG_MTD_PARTITIONS
42 unsigned int nr_parts
;
43 struct mtd_partition
*parts
;
47 struct adm5120_nand_platform_data
{
48 /* TODO : not yet implemented */
51 struct adm5120_switch_platform_data
{
52 /* TODO: not yet implemented */
55 struct adm5120_pci_irq
{
62 struct adm5120_pci_platform_data
{
64 struct adm5120_pci_irq
*irqs
;
67 extern struct adm5120_flash_platform_data adm5120_flash0_data
;
68 extern struct adm5120_flash_platform_data adm5120_flash1_data
;
69 extern struct adm5120_nand_platform_data adm5120_nand_data
;
70 extern struct adm5120_pci_platform_data adm5120_pci_data
;
71 extern struct adm5120_switch_platform_data adm5120_switch_data
;
72 extern struct amba_pl010_data adm5120_uart0_data
;
73 extern struct amba_pl010_data adm5120_uart1_data
;
75 extern struct platform_device adm5120_flash0_device
;
76 extern struct platform_device adm5120_flash1_device
;
77 extern struct platform_device adm5120_nand_device
;
78 extern struct platform_device adm5120_usbc_device
;
79 extern struct platform_device adm5120_pci_device
;
80 extern struct platform_device adm5120_switch_device
;
81 extern struct amba_device adm5120_uart0_device
;
82 extern struct amba_device adm5120_uart1_device
;
85 #endif /* _ADM5120_PLATFORM_H_ */