ebony.h 2.8 KB

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