cpci690.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Definitions for Force CPCI690
  3. *
  4. * Author: Mark A. Greer <mgreer@mvista.com>
  5. *
  6. * 2003 (c) MontaVista, Software, Inc. This file is licensed under
  7. * the terms of the GNU General Public License version 2. This program
  8. * is licensed "as is" without any warranty of any kind, whether express
  9. * or implied.
  10. */
  11. /*
  12. * The GT64260 has 2 PCI buses each with 1 window from the CPU bus to
  13. * PCI I/O space and 4 windows from the CPU bus to PCI MEM space.
  14. */
  15. #ifndef __PPC_PLATFORMS_CPCI690_H
  16. #define __PPC_PLATFORMS_CPCI690_H
  17. /*
  18. * Define bd_t to pass in the MAC addresses used by the GT64260's enet ctlrs.
  19. */
  20. #define CPCI690_BI_MAGIC 0xFE8765DC
  21. typedef struct board_info {
  22. u32 bi_magic;
  23. u8 bi_enetaddr[3][6];
  24. } bd_t;
  25. /* PCI bus Resource setup */
  26. #define CPCI690_PCI0_MEM_START_PROC_ADDR 0x80000000
  27. #define CPCI690_PCI0_MEM_START_PCI_HI_ADDR 0x00000000
  28. #define CPCI690_PCI0_MEM_START_PCI_LO_ADDR 0x80000000
  29. #define CPCI690_PCI0_MEM_SIZE 0x10000000
  30. #define CPCI690_PCI0_IO_START_PROC_ADDR 0xa0000000
  31. #define CPCI690_PCI0_IO_START_PCI_ADDR 0x00000000
  32. #define CPCI690_PCI0_IO_SIZE 0x01000000
  33. #define CPCI690_PCI1_MEM_START_PROC_ADDR 0x90000000
  34. #define CPCI690_PCI1_MEM_START_PCI_HI_ADDR 0x00000000
  35. #define CPCI690_PCI1_MEM_START_PCI_LO_ADDR 0x90000000
  36. #define CPCI690_PCI1_MEM_SIZE 0x10000000
  37. #define CPCI690_PCI1_IO_START_PROC_ADDR 0xa1000000
  38. #define CPCI690_PCI1_IO_START_PCI_ADDR 0x01000000
  39. #define CPCI690_PCI1_IO_SIZE 0x01000000
  40. /* Board Registers */
  41. #define CPCI690_BR_BASE 0xf0000000
  42. #define CPCI690_BR_SIZE_ACTUAL 0x8
  43. #define CPCI690_BR_SIZE max(GT64260_WINDOW_SIZE_MIN, \
  44. CPCI690_BR_SIZE_ACTUAL)
  45. #define CPCI690_BR_LED_CNTL 0x00
  46. #define CPCI690_BR_SW_RESET 0x01
  47. #define CPCI690_BR_MISC_STATUS 0x02
  48. #define CPCI690_BR_SWITCH_STATUS 0x03
  49. #define CPCI690_BR_MEM_CTLR 0x04
  50. #define CPCI690_BR_LAST_RESET_1 0x05
  51. #define CPCI690_BR_LAST_RESET_2 0x06
  52. #define CPCI690_TODC_BASE 0xf0100000
  53. #define CPCI690_TODC_SIZE_ACTUAL 0x8000 /* Size or NVRAM + RTC */
  54. #define CPCI690_TODC_SIZE max(GT64260_WINDOW_SIZE_MIN, \
  55. CPCI690_TODC_SIZE_ACTUAL)
  56. #define CPCI690_MAC_OFFSET 0x7c10 /* MAC in RTC NVRAM */
  57. #define CPCI690_IPMI_BASE 0xf0200000
  58. #define CPCI690_IPMI_SIZE_ACTUAL 0x10 /* 16 bytes of IPMI */
  59. #define CPCI690_IPMI_SIZE max(GT64260_WINDOW_SIZE_MIN, \
  60. CPCI690_IPMI_SIZE_ACTUAL)
  61. #define CPCI690_MPSC_BAUD 9600
  62. #define CPCI690_MPSC_CLK_SRC 8 /* TCLK */
  63. #endif /* __PPC_PLATFORMS_CPCI690_H */