Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * include/asm/opsput_lcd.h |
| 3 | * |
| 4 | * OPSPUT-LCD board |
| 5 | * |
| 6 | * Copyright (c) 2002 Takeo Takahashi |
| 7 | * |
| 8 | * This file is subject to the terms and conditions of the GNU General |
| 9 | * Public License. See the file "COPYING" in the main directory of |
| 10 | * this archive for more details. |
| 11 | * |
| 12 | * $Id: opsput_lcd.h,v 1.1 2004/07/27 06:54:20 sakugawa Exp $ |
| 13 | */ |
| 14 | |
| 15 | #ifndef _OPSPUT_OPSPUT_LCD_H |
| 16 | #define _OPSPUT_OPSPUT_LCD_H |
| 17 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
| 19 | #ifndef __ASSEMBLY__ |
| 20 | /* |
| 21 | * C functions use non-cache address. |
| 22 | */ |
| 23 | #define OPSPUT_LCD_BASE (0x10000000 /* + NONCACHE_OFFSET */) |
| 24 | #else |
| 25 | #define OPSPUT_LCD_BASE (0x10000000 + NONCACHE_OFFSET) |
| 26 | #endif /* __ASSEMBLY__ */ |
| 27 | |
| 28 | /* |
| 29 | * ICU |
| 30 | */ |
| 31 | #define OPSPUT_LCD_IRQ_BAT_INT (OPSPUT_LCD_PLD_IRQ_BASE + 1) |
| 32 | #define OPSPUT_LCD_IRQ_USB_INT1 (OPSPUT_LCD_PLD_IRQ_BASE + 2) |
| 33 | #define OPSPUT_LCD_IRQ_AUDT0 (OPSPUT_LCD_PLD_IRQ_BASE + 3) |
| 34 | #define OPSPUT_LCD_IRQ_AUDT2 (OPSPUT_LCD_PLD_IRQ_BASE + 4) |
| 35 | #define OPSPUT_LCD_IRQ_BATSIO_RCV (OPSPUT_LCD_PLD_IRQ_BASE + 16) |
| 36 | #define OPSPUT_LCD_IRQ_BATSIO_SND (OPSPUT_LCD_PLD_IRQ_BASE + 17) |
| 37 | #define OPSPUT_LCD_IRQ_ASNDSIO_RCV (OPSPUT_LCD_PLD_IRQ_BASE + 18) |
| 38 | #define OPSPUT_LCD_IRQ_ASNDSIO_SND (OPSPUT_LCD_PLD_IRQ_BASE + 19) |
| 39 | #define OPSPUT_LCD_IRQ_ACNLSIO_SND (OPSPUT_LCD_PLD_IRQ_BASE + 21) |
| 40 | |
| 41 | #define OPSPUT_LCD_ICUISTS __reg16(OPSPUT_LCD_BASE + 0x300002) |
| 42 | #define OPSPUT_LCD_ICUISTS_VECB_MASK (0xf000) |
| 43 | #define OPSPUT_LCD_VECB(x) ((x) & OPSPUT_LCD_ICUISTS_VECB_MASK) |
| 44 | #define OPSPUT_LCD_ICUISTS_ISN_MASK (0x07c0) |
| 45 | #define OPSPUT_LCD_ICUISTS_ISN(x) ((x) & OPSPUT_LCD_ICUISTS_ISN_MASK) |
| 46 | #define OPSPUT_LCD_ICUIREQ0 __reg16(OPSPUT_LCD_BASE + 0x300004) |
| 47 | #define OPSPUT_LCD_ICUIREQ1 __reg16(OPSPUT_LCD_BASE + 0x300006) |
| 48 | #define OPSPUT_LCD_ICUCR1 __reg16(OPSPUT_LCD_BASE + 0x300020) |
| 49 | #define OPSPUT_LCD_ICUCR2 __reg16(OPSPUT_LCD_BASE + 0x300022) |
| 50 | #define OPSPUT_LCD_ICUCR3 __reg16(OPSPUT_LCD_BASE + 0x300024) |
| 51 | #define OPSPUT_LCD_ICUCR4 __reg16(OPSPUT_LCD_BASE + 0x300026) |
| 52 | #define OPSPUT_LCD_ICUCR16 __reg16(OPSPUT_LCD_BASE + 0x300030) |
| 53 | #define OPSPUT_LCD_ICUCR17 __reg16(OPSPUT_LCD_BASE + 0x300032) |
| 54 | #define OPSPUT_LCD_ICUCR18 __reg16(OPSPUT_LCD_BASE + 0x300034) |
| 55 | #define OPSPUT_LCD_ICUCR19 __reg16(OPSPUT_LCD_BASE + 0x300036) |
| 56 | #define OPSPUT_LCD_ICUCR21 __reg16(OPSPUT_LCD_BASE + 0x30003a) |
| 57 | |
| 58 | #endif /* _OPSPUT_OPSPUT_LCD_H */ |