Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40189
b: refs/heads/master
c: 8270953
h: refs/heads/master
i:
  40187: 424fd10
v: v3
  • Loading branch information
Gerrit Renker authored and David S. Miller committed Oct 22, 2006
1 parent 0fae08e commit b1b8e8e
Show file tree
Hide file tree
Showing 50 changed files with 407 additions and 290 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: d0b72a0817b0164986d35366c8ffe92fd985f713
refs/heads/master: 82709531a800fcf8de71bb8c5d8e92462fb81f84
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/hp6xx/hp6xx_apm.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <asm/io.h>
#include <asm/apm.h>
#include <asm/adc.h>
#include <asm/hp6xx.h>
#include <asm/hp6xx/hp6xx.h>

#define SH7709_PGDR 0xa400012c

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/hp6xx/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <linux/time.h>
#include <asm/io.h>
#include <asm/hd64461.h>
#include <asm/hp6xx.h>
#include <asm/hp6xx/hp6xx.h>
#include <asm/cpu/dac.h>
#include <asm/pm.h>

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/hp6xx/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <asm/hd64461.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/hp6xx.h>
#include <asm/hp6xx/hp6xx.h>
#include <asm/cpu/dac.h>

#define SCPCR 0xa4000116
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/renesas/hs7751rvoip/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <linux/module.h>
#include <linux/pci.h>
#include <asm/io.h>
#include <asm/hs7751rvoip.h>
#include <asm/hs7751rvoip/hs7751rvoip.h>
#include <asm/addrspace.h>

extern void *area6_io8_base; /* Area 6 8bit I/O Base address */
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/renesas/hs7751rvoip/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <linux/irq.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/hs7751rvoip.h>
#include <asm/hs7751rvoip/hs7751rvoip.h>

static int mask_pos[] = {8, 9, 10, 11, 12, 13, 0, 1, 2, 3, 4, 5, 6, 7};

Expand Down
7 changes: 6 additions & 1 deletion trunk/arch/sh/boards/renesas/hs7751rvoip/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <linux/hdreg.h>
#include <linux/ide.h>
#include <linux/pm.h>
#include <asm/hs7751rvoip.h>
#include <asm/io.h>
#include <asm/hs7751rvoip/hs7751rvoip.h>
#include <asm/machvec.h>
#include <asm/rtc.h>
#include <asm/irq.h>

static void __init hs7751rvoip_init_irq(void)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/renesas/r7780rp/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <asm/r7780rp.h>
#include <asm/r7780rp/r7780rp.h>
#include <asm/addrspace.h>
#include <asm/io.h>

Expand Down
9 changes: 4 additions & 5 deletions trunk/arch/sh/boards/renesas/r7780rp/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
*/
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <asm/r7780rp.h>
#include <asm/io.h>

#ifdef CONFIG_SH_R7780MP
static int mask_pos[] = {12, 11, 9, 14, 15, 8, 13, 6, 5, 4, 3, 2, 0, 0, 1, 0};
Expand All @@ -33,7 +32,7 @@ static void disable_r7780rp_irq(unsigned int irq)
}

static struct irq_chip r7780rp_irq_chip __read_mostly = {
.name = "R7780RP",
.name = "r7780rp",
.mask = disable_r7780rp_irq,
.unmask = enable_r7780rp_irq,
.mask_ack = disable_r7780rp_irq,
Expand All @@ -48,8 +47,8 @@ void __init init_r7780rp_IRQ(void)

for (i = 0; i < 15; i++) {
disable_irq_nosync(i);
set_irq_chip_and_handler_name(i, &r7780rp_irq_chip,
handle_level_irq, "level");
set_irq_chip_and_handler(i, &r7780rp_irq_chip,
handle_level_irq);
enable_r7780rp_irq(i);
}
}
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/renesas/r7780rp/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <linux/init.h>
#include <linux/platform_device.h>
#include <asm/machvec.h>
#include <asm/r7780rp.h>
#include <asm/r7780rp/r7780rp.h>
#include <asm/clock.h>
#include <asm/io.h>

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/sh/boards/renesas/rts7751r2d/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/io.h>
#include <asm/rts7751r2d.h>
#include <asm/rts7751r2d/rts7751r2d.h>
#include <asm/io.h>
#include <asm/addrspace.h>

/*
Expand Down
6 changes: 4 additions & 2 deletions trunk/arch/sh/boards/renesas/rts7751r2d/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
* Modified for RTS7751R2D by
* Atom Create Engineering Co., Ltd. 2002.
*/

#include <linux/init.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <asm/rts7751r2d.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/rts7751r2d/rts7751r2d.h>

#if defined(CONFIG_RTS7751R2D_REV11)
static int mask_pos[] = {11, 9, 8, 12, 10, 6, 5, 4, 7, 14, 13, 0, 0, 0, 0};
Expand Down
15 changes: 13 additions & 2 deletions trunk/arch/sh/boards/renesas/rts7751r2d/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
*
* This file contains Renesas Technology Sales RTS7751R2D specific LED code.
*/
#include <linux/io.h>

#include <asm/io.h>
#include <asm/rts7751r2d/rts7751r2d.h>

#ifdef CONFIG_HEARTBEAT

#include <linux/sched.h>
#include <asm/rts7751r2d.h>

/* Cycle the LED's in the clasic Knightriger/Sun pattern */
void heartbeat_rts7751r2d(void)
Expand Down Expand Up @@ -42,3 +46,10 @@ void heartbeat_rts7751r2d(void)
else
bit--;
}
#endif /* CONFIG_HEARTBEAT */

void rts7751r2d_led(unsigned short value)
{
ctrl_outw(value, PA_OUTPORT);
}

2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/renesas/rts7751r2d/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#include <linux/platform_device.h>
#include <linux/serial_8250.h>
#include <linux/pm.h>
#include <asm/io.h>
#include <asm/machvec.h>
#include <asm/mach/rts7751r2d.h>
#include <asm/io.h>
#include <asm/voyagergx.h>

extern void heartbeat_rts7751r2d(void);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/shmin/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
#include <linux/init.h>
#include <asm/machvec.h>
#include <asm/shmin.h>
#include <asm/shmin/shmin.h>
#include <asm/clock.h>
#include <asm/irq.h>
#include <asm/io.h>
Expand Down
22 changes: 17 additions & 5 deletions trunk/arch/sh/cchips/voyagergx/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,29 @@
Copyright 2003 (c) Lineo uSolutions,Inc.
*/
/* -------------------------------------------------------------------- */

#undef DEBUG

#include <linux/sched.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/irq.h>

#include <asm/io.h>
#include <asm/irq.h>
#include <asm/voyagergx.h>
#include <asm/rts7751r2d.h>

static void disable_voyagergx_irq(unsigned int irq)
{
unsigned long val;
unsigned long mask = 1 << (irq - VOYAGER_IRQ_BASE);

pr_debug("disable_voyagergx_irq(%d): mask=%lx\n", irq, mask);
pr_debug("disable_voyagergx_irq(%d): mask=%x\n", irq, mask);
val = inl(VOYAGER_INT_MASK);
val &= ~mask;
outl(val, VOYAGER_INT_MASK);
Expand All @@ -39,7 +50,7 @@ static void enable_voyagergx_irq(unsigned int irq)
unsigned long val;
unsigned long mask = 1 << (irq - VOYAGER_IRQ_BASE);

pr_debug("disable_voyagergx_irq(%d): mask=%lx\n", irq, mask);
pr_debug("disable_voyagergx_irq(%d): mask=%x\n", irq, mask);
val = inl(VOYAGER_INT_MASK);
val |= mask;
outl(val, VOYAGER_INT_MASK);
Expand Down Expand Up @@ -126,7 +137,7 @@ int voyagergx_irq_demux(int irq)
} else {
printk("Unexpected IRQ irq = %d status = 0x%08lx\n", irq, val);
}
pr_debug("voyagergx_irq_demux %ld\n", i);
pr_debug("voyagergx_irq_demux %d \n", i);
#else
for (bit = 1, i = 0 ; i < VOYAGER_IRQ_NUM ; bit <<= 1, i++)
if (val & bit)
Expand Down Expand Up @@ -174,3 +185,4 @@ void __init setup_voyagergx_irq(void)

setup_irq(IRQ_VOYAGER, &irq0);
}

2 changes: 1 addition & 1 deletion trunk/arch/sh/drivers/pci/ops-r7780rp.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <asm/r7780rp.h>
#include <asm/r7780rp/r7780rp.h>
#include <asm/io.h>
#include "pci-sh4.h"

Expand Down
24 changes: 14 additions & 10 deletions trunk/arch/sh/drivers/pci/ops-rts7751r2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,28 @@
*
* PCI initialization for the Renesas SH7751R RTS7751R2D board
*/

#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/io.h>
#include <asm/rts7751r2d.h>
#include <linux/module.h>
#include <asm/rts7751r2d/rts7751r2d.h>
#include <asm/io.h>
#include "pci-sh4.h"

static u8 rts7751r2d_irq_tab[] __initdata = {
IRQ_PCISLOT1,
IRQ_PCISLOT2,
IRQ_PCMCIA,
IRQ_PCIETH,
};

int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin)
{
return rts7751r2d_irq_tab[slot];
switch (slot) {
case 0: return IRQ_PCISLOT1; /* PCI Extend slot #1 */
case 1: return IRQ_PCISLOT2; /* PCI Extend slot #2 */
case 2: return IRQ_PCMCIA; /* PCI Cardbus Bridge */
case 3: return IRQ_PCIETH; /* Realtek Ethernet controller */
default:
printk("PCI: Bad IRQ mapping request for slot %d\n", slot);
return -1;
}
}

static struct resource sh7751_io_resource = {
Expand Down
Loading

0 comments on commit b1b8e8e

Please sign in to comment.