m32700ut_lcd.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * include/asm/m32700ut_lcd.h
  3. *
  4. * M32700UT-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$
  13. */
  14. #ifndef _M32700UT_M32700UT_LCD_H
  15. #define _M32700UT_M32700UT_LCD_H
  16. #include <linux/config.h>
  17. #ifndef __ASSEMBLY__
  18. /*
  19. * C functions use non-cache address.
  20. */
  21. #define M32700UT_LCD_BASE (0x10000000 /* + NONCACHE_OFFSET */)
  22. #else
  23. #define M32700UT_LCD_BASE (0x10000000 + NONCACHE_OFFSET)
  24. #endif /* __ASSEMBLY__ */
  25. /*
  26. * ICU
  27. */
  28. #define M32700UT_LCD_IRQ_BAT_INT (M32700UT_LCD_PLD_IRQ_BASE + 1)
  29. #define M32700UT_LCD_IRQ_USB_INT1 (M32700UT_LCD_PLD_IRQ_BASE + 2)
  30. #define M32700UT_LCD_IRQ_AUDT0 (M32700UT_LCD_PLD_IRQ_BASE + 3)
  31. #define M32700UT_LCD_IRQ_AUDT2 (M32700UT_LCD_PLD_IRQ_BASE + 4)
  32. #define M32700UT_LCD_IRQ_BATSIO_RCV (M32700UT_LCD_PLD_IRQ_BASE + 16)
  33. #define M32700UT_LCD_IRQ_BATSIO_SND (M32700UT_LCD_PLD_IRQ_BASE + 17)
  34. #define M32700UT_LCD_IRQ_ASNDSIO_RCV (M32700UT_LCD_PLD_IRQ_BASE + 18)
  35. #define M32700UT_LCD_IRQ_ASNDSIO_SND (M32700UT_LCD_PLD_IRQ_BASE + 19)
  36. #define M32700UT_LCD_IRQ_ACNLSIO_SND (M32700UT_LCD_PLD_IRQ_BASE + 21)
  37. #define M32700UT_LCD_ICUISTS __reg16(M32700UT_LCD_BASE + 0x300002)
  38. #define M32700UT_LCD_ICUISTS_VECB_MASK (0xf000)
  39. #define M32700UT_LCD_VECB(x) ((x) & M32700UT_LCD_ICUISTS_VECB_MASK)
  40. #define M32700UT_LCD_ICUISTS_ISN_MASK (0x07c0)
  41. #define M32700UT_LCD_ICUISTS_ISN(x) ((x) & M32700UT_LCD_ICUISTS_ISN_MASK)
  42. #define M32700UT_LCD_ICUIREQ0 __reg16(M32700UT_LCD_BASE + 0x300004)
  43. #define M32700UT_LCD_ICUIREQ1 __reg16(M32700UT_LCD_BASE + 0x300006)
  44. #define M32700UT_LCD_ICUCR1 __reg16(M32700UT_LCD_BASE + 0x300020)
  45. #define M32700UT_LCD_ICUCR2 __reg16(M32700UT_LCD_BASE + 0x300022)
  46. #define M32700UT_LCD_ICUCR3 __reg16(M32700UT_LCD_BASE + 0x300024)
  47. #define M32700UT_LCD_ICUCR4 __reg16(M32700UT_LCD_BASE + 0x300026)
  48. #define M32700UT_LCD_ICUCR16 __reg16(M32700UT_LCD_BASE + 0x300030)
  49. #define M32700UT_LCD_ICUCR17 __reg16(M32700UT_LCD_BASE + 0x300032)
  50. #define M32700UT_LCD_ICUCR18 __reg16(M32700UT_LCD_BASE + 0x300034)
  51. #define M32700UT_LCD_ICUCR19 __reg16(M32700UT_LCD_BASE + 0x300036)
  52. #define M32700UT_LCD_ICUCR21 __reg16(M32700UT_LCD_BASE + 0x30003a)
  53. #endif /* _M32700UT_M32700UT_LCD_H */