neponset.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * linux/include/asm-arm/arch-sa1100/neponset.h
  3. *
  4. * Created 2000/06/05 by Nicolas Pitre <nico@cam.org>
  5. *
  6. * This file contains the hardware specific definitions for Assabet
  7. * Only include this file from SA1100-specific files.
  8. *
  9. * 2000/05/23 John Dorsey <john+@cs.cmu.edu>
  10. * Definitions for Neponset added.
  11. */
  12. #ifndef __ASM_ARCH_NEPONSET_H
  13. #define __ASM_ARCH_NEPONSET_H
  14. /*
  15. * Neponset definitions:
  16. */
  17. #define NEPONSET_CPLD_BASE (0x10000000)
  18. #define Nep_p2v( x ) ((x) - NEPONSET_CPLD_BASE + 0xf3000000)
  19. #define Nep_v2p( x ) ((x) - 0xf3000000 + NEPONSET_CPLD_BASE)
  20. #define _IRR 0x10000024 /* Interrupt Reason Register */
  21. #define _AUD_CTL 0x100000c0 /* Audio controls (RW) */
  22. #define _MDM_CTL_0 0x100000b0 /* Modem control 0 (RW) */
  23. #define _MDM_CTL_1 0x100000b4 /* Modem control 1 (RW) */
  24. #define _NCR_0 0x100000a0 /* Control Register (RW) */
  25. #define _KP_X_OUT 0x10000090 /* Keypad row write (RW) */
  26. #define _KP_Y_IN 0x10000080 /* Keypad column read (RO) */
  27. #define _SWPK 0x10000020 /* Switch pack (RO) */
  28. #define _WHOAMI 0x10000000 /* System ID Register (RO) */
  29. #define _LEDS 0x10000010 /* LEDs [31:0] (WO) */
  30. #define IRR (*((volatile u_char *) Nep_p2v(_IRR)))
  31. #define AUD_CTL (*((volatile u_char *) Nep_p2v(_AUD_CTL)))
  32. #define MDM_CTL_0 (*((volatile u_char *) Nep_p2v(_MDM_CTL_0)))
  33. #define MDM_CTL_1 (*((volatile u_char *) Nep_p2v(_MDM_CTL_1)))
  34. #define NCR_0 (*((volatile u_char *) Nep_p2v(_NCR_0)))
  35. #define KP_X_OUT (*((volatile u_char *) Nep_p2v(_KP_X_OUT)))
  36. #define KP_Y_IN (*((volatile u_char *) Nep_p2v(_KP_Y_IN)))
  37. #define SWPK (*((volatile u_char *) Nep_p2v(_SWPK)))
  38. #define WHOAMI (*((volatile u_char *) Nep_p2v(_WHOAMI)))
  39. #define LEDS (*((volatile Word *) Nep_p2v(_LEDS)))
  40. #define IRR_ETHERNET (1<<0)
  41. #define IRR_USAR (1<<1)
  42. #define IRR_SA1111 (1<<2)
  43. #define AUD_SEL_1341 (1<<0)
  44. #define AUD_MUTE_1341 (1<<1)
  45. #define MDM_CTL0_RTS1 (1 << 0)
  46. #define MDM_CTL0_DTR1 (1 << 1)
  47. #define MDM_CTL0_RTS2 (1 << 2)
  48. #define MDM_CTL0_DTR2 (1 << 3)
  49. #define MDM_CTL1_CTS1 (1 << 0)
  50. #define MDM_CTL1_DSR1 (1 << 1)
  51. #define MDM_CTL1_DCD1 (1 << 2)
  52. #define MDM_CTL1_CTS2 (1 << 3)
  53. #define MDM_CTL1_DSR2 (1 << 4)
  54. #define MDM_CTL1_DCD2 (1 << 5)
  55. #define NCR_GP01_OFF (1<<0)
  56. #define NCR_TP_PWR_EN (1<<1)
  57. #define NCR_MS_PWR_EN (1<<2)
  58. #define NCR_ENET_OSC_EN (1<<3)
  59. #define NCR_SPI_KB_WK_UP (1<<4)
  60. #define NCR_A0VPP (1<<5)
  61. #define NCR_A1VPP (1<<6)
  62. #endif