-
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: 68203 b: refs/heads/master c: 94807a3 h: refs/heads/master i: 68201: 87c6221 68199: 32f845c v: v3
- Loading branch information
Paul Mundt
committed
Sep 21, 2007
1 parent
870d466
commit 6c758ed
Showing
5 changed files
with
61 additions
and
1 deletion.
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: 8d797cd191397b2a92b190228f07c7715c1c832a | ||
refs/heads/master: 94807a33dc4aaf522d3eab62db225361e5a97b2a |
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 @@ | ||
obj-y += setup.o |
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,54 @@ | ||
/* | ||
* arch/sh/boards/renesas/x3proto/setup.c | ||
* | ||
* Renesas SH-X3 Prototype Board Support. | ||
* | ||
* Copyright (C) 2007 Paul Mundt | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
#include <linux/init.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/kernel.h> | ||
#include <linux/io.h> | ||
|
||
static struct resource heartbeat_resources[] = { | ||
[0] = { | ||
.start = 0xb8140020, | ||
.end = 0xb8140020 + 8 - 1, | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
}; | ||
|
||
static struct platform_device heartbeat_device = { | ||
.name = "heartbeat", | ||
.id = -1, | ||
.num_resources = ARRAY_SIZE(heartbeat_resources), | ||
.resource = heartbeat_resources, | ||
}; | ||
|
||
static struct platform_device *x3proto_devices[] __initdata = { | ||
&heartbeat_device, | ||
}; | ||
|
||
static int __init x3proto_devices_setup(void) | ||
{ | ||
return platform_add_devices(x3proto_devices, | ||
ARRAY_SIZE(x3proto_devices)); | ||
} | ||
device_initcall(x3proto_devices_setup); | ||
|
||
static void __init x3proto_init_irq(void) | ||
{ | ||
plat_irq_setup_pins(IRQ_MODE_IRL3210); | ||
|
||
/* Set ICR0.LVLMODE */ | ||
ctrl_outl(ctrl_inl(0xfe410000) | (1 << 21), 0xfe410000); | ||
} | ||
|
||
static struct sh_machine_vector mv_x3proto __initmv = { | ||
.mv_name = "x3proto", | ||
.mv_init_irq = x3proto_init_irq, | ||
}; |