Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326415
b: refs/heads/master
c: 234323b
h: refs/heads/master
i:
  326413: 18e9dfc
  326411: cd7ee40
  326407: fcf6592
  326399: 0640209
v: v3
  • Loading branch information
Linus Walleij committed Aug 13, 2012
1 parent 8324047 commit 6c53cca
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 67 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: 651728507140246e9cf4e809f1877cb2eddbc84e
refs/heads/master: 234323ba4f226d9d3d90d5c30f7883362a810a20
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-u300/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ obj-m :=
obj-n :=
obj- :=

obj-$(CONFIG_ARCH_U300) += u300.o
obj-$(CONFIG_SPI_PL022) += spi.o
obj-$(CONFIG_MACH_U300_SPIDUMMY) += dummyspichip.o
obj-$(CONFIG_I2C_STU300) += i2c.o
Expand Down
22 changes: 18 additions & 4 deletions trunk/arch/arm/mach-u300/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@
#include <asm/hardware/vic.h>
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>

#include <mach/coh901318.h>
#include <mach/hardware.h>
#include <mach/syscon.h>
#include <mach/dma_channels.h>

#include "timer.h"
#include "spi.h"
#include "i2c.h"
#include "u300-gpio.h"
Expand Down Expand Up @@ -76,7 +79,7 @@ static struct map_desc u300_io_desc[] __initdata = {
},
};

void __init u300_map_io(void)
static void __init u300_map_io(void)
{
iotable_init(u300_io_desc, ARRAY_SIZE(u300_io_desc));
/* We enable a real big DMA buffer if need be. */
Expand Down Expand Up @@ -1600,7 +1603,7 @@ static struct platform_device *platform_devs[] __initdata = {
* together so some interrupts are connected to the first one and some
* to the second one.
*/
void __init u300_init_irq(void)
static void __init u300_init_irq(void)
{
u32 mask[2] = {0, 0};
struct clk *clk;
Expand Down Expand Up @@ -1742,7 +1745,7 @@ static void __init u300_assign_physmem(void)
}
}

void __init u300_init_devices(void)
static void __init u300_init_machine(void)
{
int i;
u16 val;
Expand Down Expand Up @@ -1783,7 +1786,7 @@ void __init u300_init_devices(void)
/* Forward declare this function from the watchdog */
void coh901327_watchdog_reset(void);

void u300_restart(char mode, const char *cmd)
static void u300_restart(char mode, const char *cmd)
{
switch (mode) {
case 's':
Expand All @@ -1799,3 +1802,14 @@ void u300_restart(char mode, const char *cmd)
/* Wait for system do die/reset. */
while (1);
}

MACHINE_START(U300, "Ericsson AB U335 S335/B335 Prototype Board")
/* Maintainer: Linus Walleij <linus.walleij@stericsson.com> */
.atag_offset = 0x100,
.map_io = u300_map_io,
.init_irq = u300_init_irq,
.handle_irq = vic_handle_irq,
.timer = &u300_timer,
.init_machine = u300_init_machine,
.restart = u300_restart,
MACHINE_END
20 changes: 0 additions & 20 deletions trunk/arch/arm/mach-u300/include/mach/platform.h

This file was deleted.

2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-u300/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include <asm/mach/time.h>
#include <asm/mach/irq.h>

#include "timer.h"

/*
* APP side special timer registers
* This timer contains four timers which can fire an interrupt each.
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-u300/timer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern struct sys_timer u300_timer;
41 changes: 0 additions & 41 deletions trunk/arch/arm/mach-u300/u300.c

This file was deleted.

0 comments on commit 6c53cca

Please sign in to comment.