spruce.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * include/asm-ppc/platforms/spruce.h
  3. *
  4. * Definitions for IBM Spruce reference board support
  5. *
  6. * Authors: Matt Porter and Johnnie Peters
  7. * mporter@mvista.com
  8. * jpeters@mvista.com
  9. *
  10. * 2001 (c) MontaVista, Software, Inc. This file is licensed under
  11. * the terms of the GNU General Public License version 2. This program
  12. * is licensed "as is" without any warranty of any kind, whether express
  13. * or implied.
  14. */
  15. #ifdef __KERNEL__
  16. #ifndef __ASM_SPRUCE_H__
  17. #define __ASM_SPRUCE_H__
  18. #define SPRUCE_PCI_CONFIG_ADDR 0xfec00000
  19. #define SPRUCE_PCI_CONFIG_DATA 0xfec00004
  20. #define SPRUCE_PCI_PHY_IO_BASE 0xf8000000
  21. #define SPRUCE_PCI_IO_BASE SPRUCE_PCI_PHY_IO_BASE
  22. #define SPRUCE_PCI_SYS_MEM_BASE 0x00000000
  23. #define SPRUCE_PCI_LOWER_MEM 0x80000000
  24. #define SPRUCE_PCI_UPPER_MEM 0x9fffffff
  25. #define SPRUCE_PCI_LOWER_IO 0x00000000
  26. #define SPRUCE_PCI_UPPER_IO 0x03ffffff
  27. #define SPRUCE_ISA_IO_BASE SPRUCE_PCI_IO_BASE
  28. #define SPRUCE_MEM_SIZE 0x04000000
  29. #define SPRUCE_BUS_SPEED 66666667
  30. #define SPRUCE_NVRAM_BASE_ADDR 0xff800000
  31. #define SPRUCE_RTC_BASE_ADDR SPRUCE_NVRAM_BASE_ADDR
  32. /*
  33. * Serial port defines
  34. */
  35. #define SPRUCE_FPGA_REG_A 0xff820000
  36. #define SPRUCE_UARTCLK_33M 0x02
  37. #define SPRUCE_UARTCLK_IS_33M(reg) (reg & SPRUCE_UARTCLK_33M)
  38. #define UART0_IO_BASE 0xff600300
  39. #define UART1_IO_BASE 0xff600400
  40. #define RS_TABLE_SIZE 2
  41. #define SPRUCE_BAUD_33M (33000000/64)
  42. #define SPRUCE_BAUD_30M (30000000/64)
  43. #define BASE_BAUD SPRUCE_BAUD_33M
  44. #define UART0_INT 3
  45. #define UART1_INT 4
  46. #define STD_UART_OP(num) \
  47. { 0, BASE_BAUD, 0, UART##num##_INT, \
  48. ASYNC_BOOT_AUTOCONF, \
  49. iomem_base: (unsigned char *) UART##num##_IO_BASE, \
  50. io_type: SERIAL_IO_MEM},
  51. #define SERIAL_PORT_DFNS \
  52. STD_UART_OP(0) \
  53. STD_UART_OP(1)
  54. #endif /* __ASM_SPRUCE_H__ */
  55. #endif /* __KERNEL__ */