lwmon.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Liebherr LWMON board specific definitions
  3. *
  4. * Copyright (c) 2001 Wolfgang Denk (wd@denx.de)
  5. */
  6. #ifndef __MACH_LWMON_H
  7. #define __MACH_LWMON_H
  8. #include <asm/ppcboot.h>
  9. #define IMAP_ADDR 0xFFF00000 /* physical base address of IMMR area */
  10. #define IMAP_SIZE (64 * 1024) /* mapped size of IMMR area */
  11. /*-----------------------------------------------------------------------
  12. * PCMCIA stuff
  13. *-----------------------------------------------------------------------
  14. *
  15. */
  16. #define PCMCIA_MEM_SIZE ( 64 << 20 )
  17. #define MAX_HWIFS 1 /* overwrite default in include/asm-ppc/ide.h */
  18. /*
  19. * Definitions for IDE0 Interface
  20. */
  21. #define IDE0_BASE_OFFSET 0
  22. #define IDE0_DATA_REG_OFFSET (PCMCIA_MEM_SIZE + 0x320)
  23. #define IDE0_ERROR_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 1)
  24. #define IDE0_NSECTOR_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 2)
  25. #define IDE0_SECTOR_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 3)
  26. #define IDE0_LCYL_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 4)
  27. #define IDE0_HCYL_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 5)
  28. #define IDE0_SELECT_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 6)
  29. #define IDE0_STATUS_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 7)
  30. #define IDE0_CONTROL_REG_OFFSET 0x0106
  31. #define IDE0_IRQ_REG_OFFSET 0x000A /* not used */
  32. #define IDE0_INTERRUPT 13
  33. /*
  34. * Definitions for I2C devices
  35. */
  36. #define I2C_ADDR_AUDIO 0x28 /* Audio volume control */
  37. #define I2C_ADDR_SYSMON 0x2E /* LM87 System Monitor */
  38. #define I2C_ADDR_RTC 0x51 /* PCF8563 RTC */
  39. #define I2C_ADDR_POWER_A 0x52 /* PCMCIA/USB power switch, channel A */
  40. #define I2C_ADDR_POWER_B 0x53 /* PCMCIA/USB power switch, channel B */
  41. #define I2C_ADDR_KEYBD 0x56 /* PIC LWE keyboard */
  42. #define I2C_ADDR_PICIO 0x57 /* PIC IO Expander */
  43. #define I2C_ADDR_EEPROM 0x58 /* EEPROM AT24C164 */
  44. /* We don't use the 8259.
  45. */
  46. #define NR_8259_INTS 0
  47. #endif /* __MACH_LWMON_H */