Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106857
b: refs/heads/master
c: 9ca6eca
h: refs/heads/master
i:
  106855: 5e75c89
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Jul 28, 2008
1 parent 8d5784b commit db70832
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 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: de9254263b8c8b1809520a1009dd516e41976519
refs/heads/master: 9ca6ecac505002d0c34b47b394f39aa14b0e6fb6
12 changes: 0 additions & 12 deletions trunk/arch/sh/boards/renesas/ap325rxa/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,8 @@ static int __init ap325rxa_devices_setup(void)
}
device_initcall(ap325rxa_devices_setup);

#define MSTPCR0 (0xA4150030)
#define MSTPCR1 (0xA4150034)
#define MSTPCR2 (0xA4150038)

static void __init ap325rxa_setup(char **cmdline_p)
{
/* enable VEU0 + VEU1 */
ctrl_outl(ctrl_inl(MSTPCR2) & ~0x00000044, MSTPCR2); /* bit 2 + 6 */

/* enable MERAM */
ctrl_outl(ctrl_inl(MSTPCR0) & ~0x00000001, MSTPCR0); /* bit 0 */

/* I2C */
ctrl_outl(ctrl_inl(MSTPCR1) & ~0x00000200, MSTPCR1);
}

static struct sh_machine_vector mv_ap325rxa __initmv = {
Expand Down
16 changes: 16 additions & 0 deletions trunk/arch/sh/kernel/cpu/sh4a/setup-sh7723.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/mm.h>
#include <linux/serial_sci.h>
#include <linux/uio_driver.h>
#include <asm/clock.h>
#include <asm/mmzone.h>

static struct uio_info vpu_platform_data = {
Expand Down Expand Up @@ -230,9 +231,24 @@ static struct platform_device *sh7723_devices[] __initdata = {

static int __init sh7723_devices_setup(void)
{
clk_always_enable("mstp031"); /* TLB */
clk_always_enable("mstp030"); /* IC */
clk_always_enable("mstp029"); /* OC */
clk_always_enable("mstp024"); /* FPU */
clk_always_enable("mstp022"); /* INTC */
clk_always_enable("mstp020"); /* SuperHyway */
clk_always_enable("mstp000"); /* MERAM */
clk_always_enable("mstp109"); /* I2C */
clk_always_enable("mstp108"); /* RTC */
clk_always_enable("mstp211"); /* USB */
clk_always_enable("mstp206"); /* VEU2H1 */
clk_always_enable("mstp202"); /* VEU2H0 */
clk_always_enable("mstp201"); /* VPU */

platform_resource_setup_memory(&vpu_device, "vpu", 2 << 20);
platform_resource_setup_memory(&veu0_device, "veu0", 2 << 20);
platform_resource_setup_memory(&veu1_device, "veu1", 2 << 20);

return platform_add_devices(sh7723_devices,
ARRAY_SIZE(sh7723_devices));
}
Expand Down

0 comments on commit db70832

Please sign in to comment.