taishan.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * arch/ppc/platforms/4xx/taishan.h
  3. *
  4. * AMCC Taishan board definitions
  5. *
  6. * Copyright 2007 DENX Software Engineering, Stefan Roese <sr@denx.de>
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. *
  13. */
  14. #ifdef __KERNEL__
  15. #ifndef __ASM_TAISHAN_H__
  16. #define __ASM_TAISHAN_H__
  17. #include <platforms/4xx/ibm440gx.h>
  18. /* External timer clock frequency */
  19. #define TAISHAN_TMR_CLK 25000000
  20. /* Flash */
  21. #define TAISHAN_FPGA_ADDR 0x0000000141000000ULL
  22. #define TAISHAN_LCM_ADDR 0x0000000142000000ULL
  23. #define TAISHAN_FLASH_ADDR 0x00000001fc000000ULL
  24. #define TAISHAN_FLASH_SIZE 0x4000000
  25. /*
  26. * Serial port defines
  27. */
  28. #define RS_TABLE_SIZE 2
  29. /* head_44x.S created UART mapping, used before early_serial_setup.
  30. * We cannot use default OpenBIOS UART mappings because they
  31. * don't work for configurations with more than 512M RAM. --ebs
  32. */
  33. #define UART0_IO_BASE 0xF0000200
  34. #define UART1_IO_BASE 0xF0000300
  35. #define BASE_BAUD 11059200/16
  36. #define STD_UART_OP(num) \
  37. { 0, BASE_BAUD, 0, UART##num##_INT, \
  38. (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST), \
  39. iomem_base: (void*)UART##num##_IO_BASE, \
  40. io_type: SERIAL_IO_MEM},
  41. #define SERIAL_PORT_DFNS \
  42. STD_UART_OP(0) \
  43. STD_UART_OP(1)
  44. /* PCI support */
  45. #define TAISHAN_PCI_LOWER_IO 0x00000000
  46. #define TAISHAN_PCI_UPPER_IO 0x0000ffff
  47. #define TAISHAN_PCI_LOWER_MEM 0x80000000
  48. #define TAISHAN_PCI_UPPER_MEM 0xffffefff
  49. #define TAISHAN_PCI_CFGA_PLB32 0x0ec00000
  50. #define TAISHAN_PCI_CFGD_PLB32 0x0ec00004
  51. #define TAISHAN_PCI_IO_BASE 0x0000000208000000ULL
  52. #define TAISHAN_PCI_IO_SIZE 0x00010000
  53. #define TAISHAN_PCI_MEM_OFFSET 0x00000000
  54. #endif /* __ASM_TAISHAN_H__ */
  55. #endif /* __KERNEL__ */