Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191772
b: refs/heads/master
c: 9e4e7fe
h: refs/heads/master
v: v3
  • Loading branch information
Rabin Vincent authored and Russell King committed May 4, 2010
1 parent c9081d9 commit a94d2cd
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d48fd006e6d9394e9abd14f4747034f73bb6a386
refs/heads/master: 9e4e7fe1a97191e373257ab59e3d6bbcce9a9f1e
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-ux500/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
#

obj-y := clock.o cpu.o devices.o
obj-$(CONFIG_ARCH_U8500) += cpu-u8500.o
obj-$(CONFIG_ARCH_U8500) += cpu-u8500.o devices-db8500.o
obj-$(CONFIG_MACH_U8500_MOP) += board-mop500.o
obj-$(CONFIG_SMP) += platsmp.o headsmp.o localtimer.o
21 changes: 4 additions & 17 deletions trunk/arch/arm/mach-ux500/board-mop500.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <mach/hardware.h>
#include <mach/setup.h>
#include <mach/devices.h>

#define __MEM_4K_RESOURCE(x) \
.res = {.start = (x), .end = (x) + SZ_4K - 1, .flags = IORESOURCE_MEM}
Expand Down Expand Up @@ -91,22 +92,6 @@ static struct pl022_ssp_controller ssp0_platform_data = {
.num_chipselect = 5,
};

static struct amba_device pl022_device = {
.dev = {
.coherent_dma_mask = ~0,
.init_name = "ssp0",
.platform_data = &ssp0_platform_data,
},
.res = {
.start = U8500_SSP0_BASE,
.end = U8500_SSP0_BASE + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
.irq = {IRQ_SSP0, NO_IRQ },
/* ST-Ericsson modified id */
.periphid = SSP_PER_ID,
};

#define U8500_I2C_RESOURCES(id, size) \
static struct resource u8500_i2c_resources_##id[] = { \
[0] = { \
Expand Down Expand Up @@ -175,7 +160,7 @@ static struct amba_device *amba_devs[] __initdata = {
&uart0_device,
&uart1_device,
&uart2_device,
&pl022_device,
&u8500_ssp0_device,
};

/* add any platform devices here - TODO */
Expand All @@ -190,6 +175,8 @@ static void __init u8500_init_machine(void)
{
int i;

u8500_ssp0_device.dev.platform_data = &ssp0_platform_data;

/* Register the active AMBA devices on this board */
for (i = 0; i < ARRAY_SIZE(amba_devs); i++)
amba_device_register(amba_devs[i], &iomem_resource);
Expand Down
30 changes: 30 additions & 0 deletions trunk/arch/arm/mach-ux500/devices-db8500.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* 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/kernel.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/amba/bus.h>

#include <mach/hardware.h>
#include <mach/setup.h>

struct amba_device u8500_ssp0_device = {
.dev = {
.coherent_dma_mask = ~0,
.init_name = "ssp0",
},
.res = {
.start = U8500_SSP0_BASE,
.end = U8500_SSP0_BASE + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
.irq = {IRQ_SSP0, NO_IRQ },
/* ST-Ericsson modified id */
.periphid = SSP_PER_ID,
};
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-ux500/include/mach/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ struct platform_device;
struct amba_device;

extern struct amba_device ux500_pl031_device;
extern struct amba_device u8500_ssp0_device;

#endif

0 comments on commit a94d2cd

Please sign in to comment.