Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97396
b: refs/heads/master
c: a0ed3d8
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Haavard Skinnemoen committed May 26, 2008
1 parent 3a7d1cc commit c58ffb5
Show file tree
Hide file tree
Showing 71 changed files with 742 additions and 1,187 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: edb2301f2903e96beadc333f9584222c05858518
refs/heads/master: a0ed3d8d94b6a28c886cf9c023693afa3bb773f2
2 changes: 1 addition & 1 deletion trunk/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 26
EXTRAVERSION = -rc4
EXTRAVERSION = -rc3
NAME = Funky Weasel is Jiggy wit it

# *DOCUMENTATION*
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/avr32/kernel/avr32_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ EXPORT_SYMBOL(__avr32_asr64);
*/
EXPORT_SYMBOL(memset);
EXPORT_SYMBOL(memcpy);

EXPORT_SYMBOL(clear_page);
EXPORT_SYMBOL(copy_page);

/*
* Userspace access stuff.
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ config CPU_SUBTYPE_SH7723
select CPU_SH4A
select CPU_SHX2
select ARCH_SPARSEMEM_ENABLE
select SYS_SUPPORTS_NUMA
help
Select SH7723 if you have an SH-MobileR2 CPU.

Expand Down
39 changes: 38 additions & 1 deletion trunk/arch/sh/boards/renesas/rts7751r2d/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/ata_platform.h>
#include <linux/serial_8250.h>
#include <linux/sm501.h>
#include <linux/sm501-regs.h>
#include <linux/pm.h>
Expand Down Expand Up @@ -108,6 +109,27 @@ static struct platform_device heartbeat_device = {
.resource = heartbeat_resources,
};

static struct plat_serial8250_port uart_platform_data[] = {
{
.membase = (void __iomem *)0xb3e30000,
.mapbase = 0xb3e30000,
.iotype = UPIO_MEM,
.irq = IRQ_VOYAGER,
.flags = UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ,
.regshift = 2,
.uartclk = (9600 * 16),
},
{ 0 },
};

static struct platform_device uart_device = {
.name = "serial8250",
.id = PLAT8250_DEV_PLATFORM,
.dev = {
.platform_data = uart_platform_data,
},
};

static struct resource sm501_resources[] = {
[0] = {
.start = 0x10000000,
Expand Down Expand Up @@ -163,7 +185,11 @@ static struct sm501_platdata_fb sm501_fb_pdata = {
};

static struct sm501_initdata sm501_initdata = {
.devices = SM501_USE_USB_HOST | SM501_USE_UART0,
.gpio_high = {
.set = 0x00001fe0,
.mask = 0x0,
},
.devices = SM501_USE_USB_HOST,
};

static struct sm501_platdata sm501_platform_data = {
Expand All @@ -182,6 +208,7 @@ static struct platform_device sm501_device = {
};

static struct platform_device *rts7751r2d_devices[] __initdata = {
&uart_device,
&sm501_device,
&heartbeat_device,
&spi_sh_sci_device,
Expand Down Expand Up @@ -245,6 +272,16 @@ static void __init rts7751r2d_setup(char **cmdline_p)

sm501_reg = (void __iomem *)0xb3e00000 + SM501_DRAM_CONTROL;
writel(readl(sm501_reg) | 0x00f107c0, sm501_reg);

/*
* Power Mode Gate - Enable UART0
*/

sm501_reg = (void __iomem *)0xb3e00000 + SM501_POWER_MODE_0_GATE;
writel(readl(sm501_reg) | (1 << SM501_GATE_UART0), sm501_reg);

sm501_reg = (void __iomem *)0xb3e00000 + SM501_POWER_MODE_1_GATE;
writel(readl(sm501_reg) | (1 << SM501_GATE_UART0), sm501_reg);
}

/*
Expand Down
Loading

0 comments on commit c58ffb5

Please sign in to comment.