-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 191779 b: refs/heads/master c: 591d8dd h: refs/heads/master i: 191777: 0c271fe 191775: 8b1b4c8 v: v3
- Loading branch information
Rabin Vincent
authored and
Russell King
committed
May 4, 2010
1 parent
87fd5f0
commit 0259060
Showing
10 changed files
with
167 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: cb165c52561fd5947747fdbdb0c7ad22c6138175 | ||
refs/heads/master: 591d8dd71cc265465ac706ac11e5f613c6181a43 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (C) ST-Ericsson SA 2010 | ||
* | ||
* Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson | ||
* License terms: GNU General Public License (GPL) version 2 | ||
*/ | ||
|
||
#include <linux/init.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/amba/bus.h> | ||
#include <linux/gpio.h> | ||
|
||
#include <asm/mach/arch.h> | ||
#include <asm/mach-types.h> | ||
|
||
#include <mach/hardware.h> | ||
#include <mach/devices.h> | ||
#include <mach/setup.h> | ||
|
||
static struct amba_device *amba_board_devs[] __initdata = { | ||
&ux500_uart0_device, | ||
&ux500_uart1_device, | ||
&ux500_uart2_device, | ||
}; | ||
|
||
static void __init u5500_init_machine(void) | ||
{ | ||
u5500_init_devices(); | ||
|
||
amba_add_devices(amba_board_devs, ARRAY_SIZE(amba_board_devs)); | ||
} | ||
|
||
MACHINE_START(U8500, "ST-Ericsson U5500 Platform") | ||
.phys_io = UX500_UART0_BASE, | ||
.io_pg_offst = (IO_ADDRESS(UX500_UART0_BASE) >> 18) & 0xfffc, | ||
.boot_params = 0x00000100, | ||
.map_io = u5500_map_io, | ||
.init_irq = ux500_init_irq, | ||
.timer = &ux500_timer, | ||
.init_machine = u5500_init_machine, | ||
MACHINE_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright (C) ST-Ericsson SA 2010 | ||
* | ||
* Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson | ||
* License terms: GNU General Public License (GPL) version 2 | ||
*/ | ||
|
||
#include <linux/platform_device.h> | ||
#include <linux/amba/bus.h> | ||
#include <linux/io.h> | ||
|
||
#include <asm/mach/map.h> | ||
|
||
#include <mach/hardware.h> | ||
#include <mach/devices.h> | ||
#include <mach/setup.h> | ||
|
||
static struct map_desc u5500_io_desc[] __initdata = { | ||
__IO_DEV_DESC(U5500_GPIO0_BASE, SZ_4K), | ||
__IO_DEV_DESC(U5500_GPIO1_BASE, SZ_4K), | ||
__IO_DEV_DESC(U5500_GPIO2_BASE, SZ_4K), | ||
__IO_DEV_DESC(U5500_GPIO3_BASE, SZ_4K), | ||
__IO_DEV_DESC(U5500_GPIO4_BASE, SZ_4K), | ||
}; | ||
|
||
static struct platform_device *u5500_platform_devs[] __initdata = { | ||
&u5500_gpio_devs[0], | ||
&u5500_gpio_devs[1], | ||
&u5500_gpio_devs[2], | ||
&u5500_gpio_devs[3], | ||
&u5500_gpio_devs[4], | ||
&u5500_gpio_devs[5], | ||
&u5500_gpio_devs[6], | ||
&u5500_gpio_devs[7], | ||
}; | ||
|
||
void __init u5500_map_io(void) | ||
{ | ||
ux500_map_io(); | ||
|
||
iotable_init(u5500_io_desc, ARRAY_SIZE(u5500_io_desc)); | ||
} | ||
|
||
void __init u5500_init_devices(void) | ||
{ | ||
ux500_init_devices(); | ||
|
||
platform_add_devices(u5500_platform_devs, | ||
ARRAY_SIZE(u5500_platform_devs)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (C) ST-Ericsson SA 2010 | ||
* | ||
* Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson | ||
* License terms: GNU General Public License (GPL) version 2 | ||
*/ | ||
|
||
#include <linux/platform_device.h> | ||
#include <linux/interrupt.h> | ||
#include <linux/gpio.h> | ||
|
||
#include <mach/hardware.h> | ||
#include <mach/devices.h> | ||
|
||
static struct nmk_gpio_platform_data u5500_gpio_data[] = { | ||
GPIO_DATA("GPIO-0-31", 0), | ||
GPIO_DATA("GPIO-32-63", 32), /* 36..63 not routed to pin */ | ||
GPIO_DATA("GPIO-64-95", 64), /* 83..95 not routed to pin */ | ||
GPIO_DATA("GPIO-96-127", 96), /* 102..127 not routed to pin */ | ||
GPIO_DATA("GPIO-128-159", 128), /* 149..159 not routed to pin */ | ||
GPIO_DATA("GPIO-160-191", 160), | ||
GPIO_DATA("GPIO-192-223", 192), | ||
GPIO_DATA("GPIO-224-255", 224), /* 228..255 not routed to pin */ | ||
}; | ||
|
||
static struct resource u5500_gpio_resources[] = { | ||
GPIO_RESOURCE(0), | ||
GPIO_RESOURCE(1), | ||
GPIO_RESOURCE(2), | ||
GPIO_RESOURCE(3), | ||
GPIO_RESOURCE(4), | ||
GPIO_RESOURCE(5), | ||
GPIO_RESOURCE(6), | ||
GPIO_RESOURCE(7), | ||
}; | ||
|
||
struct platform_device u5500_gpio_devs[] = { | ||
GPIO_DEVICE(0), | ||
GPIO_DEVICE(1), | ||
GPIO_DEVICE(2), | ||
GPIO_DEVICE(3), | ||
GPIO_DEVICE(4), | ||
GPIO_DEVICE(5), | ||
GPIO_DEVICE(6), | ||
GPIO_DEVICE(7), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters