2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
16 * Copyright (C) 2009 Hauke Mehrtens <hauke@hauke-m.de>
20 #include <linux/platform_device.h>
21 #include <asm/amazon/irq.h>
23 #define AMAZON_FLASH_START 0x13000000
24 #define AMAZON_FLASH_MAX 0x1000000
26 static struct platform_device amazon_mii
= {
28 .name
= "amazon_mii0",
30 // .platform_data = amazon_ethaddr,
34 static struct platform_device amazon_wdt
= {
39 static struct platform_device amazon_asc
= {
44 static struct resource amazon_mtd_resource
= {
45 .start
= AMAZON_FLASH_START
,
46 .end
= AMAZON_FLASH_START
+ AMAZON_FLASH_MAX
- 1,
47 .flags
= IORESOURCE_MEM
,
50 static struct platform_device amazon_mtd
= {
54 .resource
= &amazon_mtd_resource
,
58 struct platform_device
*amazon_devs
[] = {
59 &amazon_mii
, &amazon_mtd
, &amazon_wdt
, &amazon_asc
63 int __init
amazon_init_devices(void)
66 return platform_add_devices(amazon_devs
, 4);
69 arch_initcall(amazon_init_devices
);