sh: Add some missing board headers.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 19 Oct 2006 08:31:22 +0000 (17:31 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 19 Oct 2006 08:31:22 +0000 (17:31 +0900)
Some of these were dropped in the header directory rework, add
the few missing ones back in.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/edosk7705.h [new file with mode: 0644]
include/asm-sh/hp6xx.h [new file with mode: 0644]
include/asm-sh/hs7751rvoip.h [new file with mode: 0644]
include/asm-sh/r7780rp.h [new file with mode: 0644]
include/asm-sh/rts7751r2d.h [new file with mode: 0644]
include/asm-sh/shmin.h [new file with mode: 0644]

diff --git a/include/asm-sh/edosk7705.h b/include/asm-sh/edosk7705.h
new file mode 100644 (file)
index 0000000..a1089a6
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * include/asm-sh/edosk7705/io.h
+ *
+ * Modified version of io_se.h for the EDOSK7705 specific functions.
+ *
+ * May be copied or modified under the terms of the GNU General Public
+ * License.  See linux/COPYING for more information.
+ *
+ * IO functions for an Hitachi EDOSK7705 development board
+ */
+
+#ifndef __ASM_SH_EDOSK7705_IO_H
+#define __ASM_SH_EDOSK7705_IO_H
+
+#include <asm/io_generic.h>
+
+extern unsigned char sh_edosk7705_inb(unsigned long port);
+extern unsigned int sh_edosk7705_inl(unsigned long port);
+
+extern void sh_edosk7705_outb(unsigned char value, unsigned long port);
+extern void sh_edosk7705_outl(unsigned int value, unsigned long port);
+
+extern void sh_edosk7705_insb(unsigned long port, void *addr, unsigned long count);
+extern void sh_edosk7705_insl(unsigned long port, void *addr, unsigned long count);
+extern void sh_edosk7705_outsb(unsigned long port, const void *addr, unsigned long count);
+extern void sh_edosk7705_outsl(unsigned long port, const void *addr, unsigned long count);
+
+extern unsigned long sh_edosk7705_isa_port2addr(unsigned long offset);
+
+#endif /* __ASM_SH_EDOSK7705_IO_H */
diff --git a/include/asm-sh/hp6xx.h b/include/asm-sh/hp6xx.h
new file mode 100644 (file)
index 0000000..f35134c
--- /dev/null
@@ -0,0 +1,80 @@
+#ifndef __ASM_SH_HP6XX_H
+#define __ASM_SH_HP6XX_H
+
+/*
+ * Copyright (C) 2003, 2004, 2005  Andriy Skulysh
+ *
+ * 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.
+ *
+ */
+
+#define HP680_BTN_IRQ          IRQ0_IRQ
+#define HP680_TS_IRQ           IRQ3_IRQ
+#define HP680_HD64461_IRQ      IRQ4_IRQ
+
+#define DAC_LCD_BRIGHTNESS     0
+#define DAC_SPEAKER_VOLUME     1
+
+#define PGDR_OPENED            0x01
+#define PGDR_MAIN_BATTERY_OUT  0x04
+#define PGDR_PLAY_BUTTON       0x08
+#define PGDR_REWIND_BUTTON     0x10
+#define PGDR_RECORD_BUTTON     0x20
+
+#define PHDR_TS_PEN_DOWN       0x08
+
+#define PJDR_LED_BLINK         0x02
+
+#define PKDR_LED_GREEN         0x10
+
+#define SCPDR_TS_SCAN_ENABLE   0x20
+#define SCPDR_TS_SCAN_Y                0x02
+#define SCPDR_TS_SCAN_X                0x01
+
+#define SCPCR_TS_ENABLE                0x405
+#define SCPCR_TS_MASK          0xc0f
+
+#define ADC_CHANNEL_TS_Y       1
+#define ADC_CHANNEL_TS_X       2
+#define ADC_CHANNEL_BATTERY    3
+#define ADC_CHANNEL_BACKUP     4
+#define ADC_CHANNEL_CHARGE     5
+
+#define HD64461_GPADR_SPEAKER  0x01
+#define HD64461_GPADR_PCMCIA0  (0x02|0x08)
+
+#define HD64461_GPBDR_LCDOFF   0x01
+#define HD64461_GPBDR_LCD_CONTRAST_MASK        0x78
+#define HD64461_GPBDR_LED_RED  0x80
+
+#include <asm/hd64461.h>
+#include <asm/io.h>
+
+#define PJDR   0xa4000130
+#define PKDR   0xa4000132
+
+static inline void hp6xx_led_red(int on)
+{
+       u16 v16;
+       v16 = ctrl_inw(CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000);
+       if (on)
+           ctrl_outw(v16 & (~HD64461_GPBDR_LED_RED), CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000);
+       else
+           ctrl_outw(v16 | HD64461_GPBDR_LED_RED, CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000);
+}
+
+static inline void hp6xx_led_green(int on)
+{
+       u8 v8;
+
+       v8 = ctrl_inb(PKDR);
+       if (on)
+           ctrl_outb(v8 & (~PKDR_LED_GREEN), PKDR);
+       else
+           ctrl_outb(v8 | PKDR_LED_GREEN, PKDR);
+}
+
+
+#endif /* __ASM_SH_HP6XX_H */
diff --git a/include/asm-sh/hs7751rvoip.h b/include/asm-sh/hs7751rvoip.h
new file mode 100644 (file)
index 0000000..c4cff9d
--- /dev/null
@@ -0,0 +1,54 @@
+#ifndef __ASM_SH_RENESAS_HS7751RVOIP_H
+#define __ASM_SH_RENESAS_HS7751RVOIP_H
+
+/*
+ * linux/include/asm-sh/hs7751rvoip/hs7751rvoip.h
+ *
+ * Copyright (C) 2000  Atom Create Engineering Co., Ltd.
+ *
+ * Renesas Technology Sales HS7751RVoIP support
+ */
+
+/* Box specific addresses.  */
+
+#define PA_BCR         0xa4000000      /* FPGA */
+#define PA_SLICCNTR1   0xa4000006      /* SLIC PIO Control 1 */
+#define PA_SLICCNTR2   0xa4000008      /* SLIC PIO Control 2 */
+#define PA_DMACNTR     0xa400000a      /* USB DMA Control */
+#define PA_INPORTR     0xa400000c      /* Input Port Register */
+#define PA_OUTPORTR    0xa400000e      /* Output Port Reguster */
+#define PA_VERREG      0xa4000014      /* FPGA Version Register */
+
+#define PA_IDE_OFFSET  0x1f0           /* CF IDE Offset */
+
+#define IRLCNTR1       (PA_BCR + 0)    /* Interrupt Control Register1 */
+#define IRLCNTR2       (PA_BCR + 2)    /* Interrupt Control Register2 */
+#define IRLCNTR3       (PA_BCR + 4)    /* Interrupt Control Register3 */
+#define IRLCNTR4       (PA_BCR + 16)   /* Interrupt Control Register4 */
+#define IRLCNTR5       (PA_BCR + 18)   /* Interrupt Control Register5 */
+
+#define IRQ_PCIETH     6               /* PCI Ethernet IRQ */
+#define IRQ_PCIHUB     7               /* PCI Ethernet Hub IRQ */
+#define IRQ_USBCOM     8               /* USB Comunication IRQ */
+#define IRQ_USBCON     9               /* USB Connect IRQ */
+#define IRQ_USBDMA     10              /* USB DMA IRQ */
+#define IRQ_CFCARD     11              /* CF Card IRQ */
+#define IRQ_PCMCIA     12              /* PCMCIA IRQ */
+#define IRQ_PCISLOT    13              /* PCI Slot #1 IRQ */
+#define IRQ_ONHOOK1    0               /* ON HOOK1 IRQ */
+#define IRQ_OFFHOOK1   1               /* OFF HOOK1 IRQ */
+#define IRQ_ONHOOK2    2               /* ON HOOK2 IRQ */
+#define IRQ_OFFHOOK2   3               /* OFF HOOK2 IRQ */
+#define        IRQ_RINGING     4               /* Ringing IRQ */
+#define        IRQ_CODEC       5               /* CODEC IRQ */
+
+#define __IO_PREFIX    hs7751rvoip
+#include <asm/io_generic.h>
+
+/* arch/sh/boards/renesas/hs7751rvoip/irq.c */
+void init_hs7751rvoip_IRQ(void);
+
+/* arch/sh/boards/renesas/hs7751rvoip/io.c */
+void *hs7751rvoip_ioremap(unsigned long, unsigned long);
+
+#endif  /* __ASM_SH_RENESAS_HS7751RVOIP */
Simple merge
Simple merge
Simple merge