sbc85xx.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * WindRiver PowerQUICC III SBC85xx common board definitions
  3. *
  4. * Copyright 2003 Motorola Inc.
  5. * Copyright 2004 Red Hat, Inc.
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. *
  12. */
  13. #ifndef __PLATFORMS_85XX_SBC85XX_H__
  14. #define __PLATFORMS_85XX_SBC85XX_H__
  15. #include <linux/init.h>
  16. #include <linux/seq_file.h>
  17. #include <asm/ppcboot.h>
  18. #define BOARD_CCSRBAR ((uint)0xff700000)
  19. #define CCSRBAR_SIZE ((uint)1024*1024)
  20. #define BCSR_ADDR ((uint)0xfc000000)
  21. #define BCSR_SIZE ((uint)(16 * 1024 * 1024))
  22. #define UARTA_ADDR (BCSR_ADDR + 0x00700000)
  23. #define UARTB_ADDR (BCSR_ADDR + 0x00800000)
  24. #define RTC_DEVICE_ADDR (BCSR_ADDR + 0x00900000)
  25. #define EEPROM_ADDR (BCSR_ADDR + 0x00b00000)
  26. extern int sbc8560_show_cpuinfo(struct seq_file *m);
  27. extern void sbc8560_init_IRQ(void) __init;
  28. /* PCI interrupt controller */
  29. #define PIRQA MPC85xx_IRQ_EXT1
  30. #define PIRQB MPC85xx_IRQ_EXT2
  31. #define PIRQC MPC85xx_IRQ_EXT3
  32. #define PIRQD MPC85xx_IRQ_EXT4
  33. #define MPC85XX_PCI1_LOWER_IO 0x00000000
  34. #define MPC85XX_PCI1_UPPER_IO 0x00ffffff
  35. #define MPC85XX_PCI1_LOWER_MEM 0x80000000
  36. #define MPC85XX_PCI1_UPPER_MEM 0x9fffffff
  37. #define MPC85XX_PCI1_IO_BASE 0xe2000000
  38. #define MPC85XX_PCI1_MEM_OFFSET 0x00000000
  39. #define MPC85XX_PCI1_IO_SIZE 0x01000000
  40. /* FCC1 Clock Source Configuration. These can be
  41. * redefined in the board specific file.
  42. * Can only choose from CLK9-12 */
  43. #define F1_RXCLK 12
  44. #define F1_TXCLK 11
  45. /* FCC2 Clock Source Configuration. These can be
  46. * redefined in the board specific file.
  47. * Can only choose from CLK13-16 */
  48. #define F2_RXCLK 13
  49. #define F2_TXCLK 14
  50. /* FCC3 Clock Source Configuration. These can be
  51. * redefined in the board specific file.
  52. * Can only choose from CLK13-16 */
  53. #define F3_RXCLK 15
  54. #define F3_TXCLK 16
  55. #endif /* __PLATFORMS_85XX_SBC85XX_H__ */