Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36232
b: refs/heads/master
c: 3530570
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Sep 27, 2006
1 parent 0034d5d commit cb7d9e8
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 59 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: 5c930e8cbfaa9dfdf9fa082fd891c6e3ab6ef2fc
refs/heads/master: 3530570fd43632b60b00e5ea17519d2bd69d1434
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/renesas/systemh/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <asm/io.h>

#include <linux/pci.h>
#include "../../drivers/pci/pci-sh7751.h"
#include "../../../drivers/pci/pci-sh7751.h"

/*
* The 7751 SystemH Engine uses the built-in PCI controller (PCIC)
Expand Down
6 changes: 5 additions & 1 deletion trunk/arch/sh/boards/se/73180/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ bad_outb(struct iop *p, unsigned char value, unsigned long port)
badio(inw, port);
}

#ifdef CONFIG_SMC91X
/* MSTLANEX01 LAN at 0xb400:0000 */
static struct iop laniop = {
.start = 0x300,
Expand All @@ -110,6 +111,7 @@ static struct iop laniop = {
.outb = simple_outb,
.outw = simple_outw,
};
#endif

/* NE2000 pc card NIC */
static struct iop neiop = {
Expand All @@ -123,6 +125,7 @@ static struct iop neiop = {
.outw = simple_outw,
};

#ifdef CONFIG_IDE
/* CF in CF slot */
static struct iop cfiop = {
.base = 0xb0600000,
Expand All @@ -132,12 +135,13 @@ static struct iop cfiop = {
.outb = pcc_outb,
.outw = simple_outw,
};
#endif

static __inline__ struct iop *
port2iop(unsigned long port)
{
if (0) ;
#if defined(CONFIG_SMC91111)
#if defined(CONFIG_SMC91X)
else if (laniop.check(&laniop, port))
return &laniop;
#endif
Expand Down
9 changes: 0 additions & 9 deletions trunk/arch/sh/boards/se/73180/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Modified for SH-Mobile SolutionEngine 73180 Support
* by YOSHII Takashi <yoshii-takashi@hitachi-ul.co.jp>
*
*
*/

#include <linux/init.h>
Expand All @@ -16,14 +15,6 @@
#include <asm/io.h>
#include <asm/mach/se73180.h>

static int
intreq2irq(int i)
{
if (i == 5)
return 10;
return 32 + 7 - i;
}

static int
irq2intreq(int irq)
{
Expand Down
15 changes: 1 addition & 14 deletions trunk/arch/sh/boards/se/73180/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,8 @@
#include <linux/sched.h>
#include <asm/mach/se73180.h>

static void
mach_led(int position, int value)
{
volatile unsigned short *p = (volatile unsigned short *) PA_LED;

if (value) {
*p |= (1 << LED_SHIFT);
} else {
*p &= ~(1 << LED_SHIFT);
}
}

/* Cycle the LED's in the clasic Knightrider/Sun pattern */
void
heartbeat_73180se(void)
void heartbeat_73180se(void)
{
static unsigned int cnt = 0, period = 0;
volatile unsigned short *p = (volatile unsigned short *) PA_LED;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/sh/boards/se/770x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
# Makefile for the 770x SolutionEngine specific parts of the kernel
#

obj-y := mach.o setup.o io.o irq.o led.o
obj-y := mach.o setup.o io.o irq.o

obj-$(CONFIG_HEARTBEAT) += led.o
17 changes: 1 addition & 16 deletions trunk/arch/sh/boards/se/770x/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,8 @@
* This file contains Solution Engine specific LED code.
*/

#include <asm/se/se.h>

static void mach_led(int position, int value)
{
volatile unsigned short* p = (volatile unsigned short*)PA_LED;

if (value) {
*p |= (1<<8);
} else {
*p &= ~(1<<8);
}
}

#ifdef CONFIG_HEARTBEAT

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

/* Cycle the LED's in the clasic Knightrider/Sun pattern */
void heartbeat_se(void)
Expand Down Expand Up @@ -64,4 +50,3 @@ void heartbeat_se(void)
*p = 1<<(bit+8);

}
#endif /* CONFIG_HEARTBEAT */
3 changes: 2 additions & 1 deletion trunk/arch/sh/boards/se/7751/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# Makefile for the 7751 SolutionEngine specific parts of the kernel
#

obj-y := mach.o setup.o io.o irq.o led.o
obj-y := mach.o setup.o io.o irq.o

obj-$(CONFIG_PCI) += pci.o
obj-$(CONFIG_HEARTBEAT) += led.o

15 changes: 0 additions & 15 deletions trunk/arch/sh/boards/se/7751/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@
*/

#include <asm/se7751/se7751.h>

static void mach_led(int position, int value)
{
volatile unsigned short* p = (volatile unsigned short*)PA_LED;

if (value) {
*p |= (1<<8);
} else {
*p &= ~(1<<8);
}
}

#ifdef CONFIG_HEARTBEAT

#include <linux/sched.h>

/* Cycle the LED's in the clasic Knightrider/Sun pattern */
Expand Down Expand Up @@ -64,4 +50,3 @@ void heartbeat_7751se(void)
*p = 1<<(bit+8);

}
#endif /* CONFIG_HEARTBEAT */

0 comments on commit cb7d9e8

Please sign in to comment.