iop3xx.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * include/asm-arm/hardware/iop3xx.h
  3. *
  4. * Intel IOP32X and IOP33X register definitions
  5. *
  6. * Author: Rory Bolt <rorybolt@pacbell.net>
  7. * Copyright (C) 2002 Rory Bolt
  8. * Copyright (C) 2004 Intel Corp.
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #ifndef __IOP3XX_H
  15. #define __IOP3XX_H
  16. /*
  17. * IOP3XX processor registers
  18. */
  19. #define IOP3XX_PERIPHERAL_PHYS_BASE 0xffffe000
  20. #define IOP3XX_PERIPHERAL_VIRT_BASE 0xfeffe000
  21. #define IOP3XX_PERIPHERAL_SIZE 0x00002000
  22. #define IOP3XX_REG_ADDR(reg) (IOP3XX_PERIPHERAL_VIRT_BASE + (reg))
  23. /* I2C bus interface unit */
  24. #define IOP3XX_ICR0 (volatile u32 *)IOP3XX_REG_ADDR(0x1680)
  25. #define IOP3XX_ISR0 (volatile u32 *)IOP3XX_REG_ADDR(0x1684)
  26. #define IOP3XX_ISAR0 (volatile u32 *)IOP3XX_REG_ADDR(0x1688)
  27. #define IOP3XX_IDBR0 (volatile u32 *)IOP3XX_REG_ADDR(0x168c)
  28. #define IOP3XX_IBMR0 (volatile u32 *)IOP3XX_REG_ADDR(0x1694)
  29. #define IOP3XX_ICR1 (volatile u32 *)IOP3XX_REG_ADDR(0x16a0)
  30. #define IOP3XX_ISR1 (volatile u32 *)IOP3XX_REG_ADDR(0x16a4)
  31. #define IOP3XX_ISAR1 (volatile u32 *)IOP3XX_REG_ADDR(0x16a8)
  32. #define IOP3XX_IDBR1 (volatile u32 *)IOP3XX_REG_ADDR(0x16ac)
  33. #define IOP3XX_IBMR1 (volatile u32 *)IOP3XX_REG_ADDR(0x16b4)
  34. /*
  35. * IOP3XX I/O and Mem space regions for PCI autoconfiguration
  36. */
  37. #define IOP3XX_PCI_MEM_WINDOW_SIZE 0x04000000
  38. #define IOP3XX_PCI_LOWER_MEM_PA 0x80000000
  39. #define IOP3XX_PCI_IO_WINDOW_SIZE 0x00010000
  40. #define IOP3XX_PCI_LOWER_IO_PA 0x90000000
  41. #define IOP3XX_PCI_LOWER_IO_VA 0xfe000000
  42. #ifndef __ASSEMBLY__
  43. void iop3xx_map_io(void);
  44. extern struct platform_device iop3xx_i2c0_device;
  45. extern struct platform_device iop3xx_i2c1_device;
  46. #endif
  47. #endif