ebony.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * Ebony board definitions
  3. *
  4. * Matt Porter <mporter@mvista.com>
  5. *
  6. * Copyright 2002 MontaVista Software Inc.
  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. #ifdef __KERNEL__
  14. #ifndef __ASM_EBONY_H__
  15. #define __ASM_EBONY_H__
  16. #include <platforms/4xx/ibm440gp.h>
  17. /* F/W TLB mapping used in bootloader glue to reset EMAC */
  18. #define PPC44x_EMAC0_MR0 0xE0000800
  19. /* Where to find the MAC info */
  20. #define OPENBIOS_MAC_BASE 0xfffffe0c
  21. #define OPENBIOS_MAC_OFFSET 0x0c
  22. /* Default clock rates for Rev. B and Rev. C silicon */
  23. #define EBONY_440GP_RB_SYSCLK 33000000
  24. #define EBONY_440GP_RC_SYSCLK 400000000
  25. /* RTC/NVRAM location */
  26. #define EBONY_RTC_ADDR 0x0000000148000000ULL
  27. #define EBONY_RTC_SIZE 0x2000
  28. /* Flash */
  29. #define EBONY_FPGA_ADDR 0x0000000148300000ULL
  30. #define EBONY_BOOT_SMALL_FLASH(x) (x & 0x20)
  31. #define EBONY_ONBRD_FLASH_EN(x) (x & 0x02)
  32. #define EBONY_FLASH_SEL(x) (x & 0x01)
  33. #define EBONY_SMALL_FLASH_LOW1 0x00000001ff800000ULL
  34. #define EBONY_SMALL_FLASH_LOW2 0x00000001ff880000ULL
  35. #define EBONY_SMALL_FLASH_HIGH1 0x00000001fff00000ULL
  36. #define EBONY_SMALL_FLASH_HIGH2 0x00000001fff80000ULL
  37. #define EBONY_SMALL_FLASH_SIZE 0x80000
  38. #define EBONY_LARGE_FLASH_LOW 0x00000001ff800000ULL
  39. #define EBONY_LARGE_FLASH_HIGH 0x00000001ffc00000ULL
  40. #define EBONY_LARGE_FLASH_SIZE 0x400000
  41. #define EBONY_SMALL_FLASH_BASE 0x00000001fff80000ULL
  42. #define EBONY_LARGE_FLASH_BASE 0x00000001ff800000ULL
  43. /*
  44. * Serial port defines
  45. */
  46. #if defined(__BOOTER__)
  47. /* OpenBIOS defined UART mappings, used by bootloader shim */
  48. #define UART0_IO_BASE 0xE0000200
  49. #define UART1_IO_BASE 0xE0000300
  50. #else
  51. /* head_44x.S created UART mapping, used before early_serial_setup.
  52. * We cannot use default OpenBIOS UART mappings because they
  53. * don't work for configurations with more than 512M RAM. --ebs
  54. */
  55. #define UART0_IO_BASE 0xF0000200
  56. #define UART1_IO_BASE 0xF0000300
  57. #endif
  58. /* external Epson SG-615P */
  59. #define BASE_BAUD 691200
  60. #define STD_UART_OP(num) \
  61. { 0, BASE_BAUD, 0, UART##num##_INT, \
  62. (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST), \
  63. iomem_base: (void*)UART##num##_IO_BASE, \
  64. io_type: SERIAL_IO_MEM},
  65. #define SERIAL_PORT_DFNS \
  66. STD_UART_OP(0) \
  67. STD_UART_OP(1)
  68. /* PCI support */
  69. #define EBONY_PCI_LOWER_IO 0x00000000
  70. #define EBONY_PCI_UPPER_IO 0x0000ffff
  71. #define EBONY_PCI_LOWER_MEM 0x80002000
  72. #define EBONY_PCI_UPPER_MEM 0xffffefff
  73. #define EBONY_PCI_CFGREGS_BASE 0x000000020ec00000
  74. #define EBONY_PCI_CFGA_PLB32 0x0ec00000
  75. #define EBONY_PCI_CFGD_PLB32 0x0ec00004
  76. #define EBONY_PCI_IO_BASE 0x0000000208000000ULL
  77. #define EBONY_PCI_IO_SIZE 0x00010000
  78. #define EBONY_PCI_MEM_OFFSET 0x00000000
  79. #endif /* __ASM_EBONY_H__ */
  80. #endif /* __KERNEL__ */