ocotea.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * Ocotea board definitions
  3. *
  4. * Matt Porter <mporter@kernel.crashing.org>
  5. *
  6. * Copyright 2003-2005 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. */
  14. #ifdef __KERNEL__
  15. #ifndef __ASM_OCOTEA_H__
  16. #define __ASM_OCOTEA_H__
  17. #include <platforms/4xx/ibm440gx.h>
  18. /* F/W TLB mapping used in bootloader glue to reset EMAC */
  19. #define PPC44x_EMAC0_MR0 0xe0000800
  20. /* Location of MAC addresses in PIBS image */
  21. #define PIBS_FLASH_BASE 0xfff00000
  22. #define PIBS_MAC_BASE (PIBS_FLASH_BASE+0xb0500)
  23. #define PIBS_MAC_SIZE 0x200
  24. #define PIBS_MAC_OFFSET 0x100
  25. /* External timer clock frequency */
  26. #define OCOTEA_TMR_CLK 25000000
  27. /* RTC/NVRAM location */
  28. #define OCOTEA_RTC_ADDR 0x0000000148000000ULL
  29. #define OCOTEA_RTC_SIZE 0x2000
  30. /* Flash */
  31. #define OCOTEA_FPGA_REG_0 0x0000000148300000ULL
  32. #define OCOTEA_BOOT_LARGE_FLASH(x) (x & 0x40)
  33. #define OCOTEA_SMALL_FLASH_LOW 0x00000001ff900000ULL
  34. #define OCOTEA_SMALL_FLASH_HIGH 0x00000001fff00000ULL
  35. #define OCOTEA_SMALL_FLASH_SIZE 0x100000
  36. #define OCOTEA_LARGE_FLASH_LOW 0x00000001ff800000ULL
  37. #define OCOTEA_LARGE_FLASH_HIGH 0x00000001ffc00000ULL
  38. #define OCOTEA_LARGE_FLASH_SIZE 0x400000
  39. /* FPGA_REG_3 (Ethernet Groups) */
  40. #define OCOTEA_FPGA_REG_3 0x0000000148300003ULL
  41. /*
  42. * Serial port defines
  43. */
  44. #define RS_TABLE_SIZE 2
  45. #if defined(__BOOTER__)
  46. /* OpenBIOS defined UART mappings, used by bootloader shim */
  47. #define UART0_IO_BASE 0xE0000200
  48. #define UART1_IO_BASE 0xE0000300
  49. #else
  50. /* head_44x.S created UART mapping, used before early_serial_setup.
  51. * We cannot use default OpenBIOS UART mappings because they
  52. * don't work for configurations with more than 512M RAM. --ebs
  53. */
  54. #define UART0_IO_BASE 0xF0000200
  55. #define UART1_IO_BASE 0xF0000300
  56. #endif
  57. #define BASE_BAUD 11059200/16
  58. #define STD_UART_OP(num) \
  59. { 0, BASE_BAUD, 0, UART##num##_INT, \
  60. (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST), \
  61. iomem_base: (void*)UART##num##_IO_BASE, \
  62. io_type: SERIAL_IO_MEM},
  63. #define SERIAL_PORT_DFNS \
  64. STD_UART_OP(0) \
  65. STD_UART_OP(1)
  66. /* PCI support */
  67. #define OCOTEA_PCI_LOWER_IO 0x00000000
  68. #define OCOTEA_PCI_UPPER_IO 0x0000ffff
  69. #define OCOTEA_PCI_LOWER_MEM 0x80000000
  70. #define OCOTEA_PCI_UPPER_MEM 0xffffefff
  71. #define OCOTEA_PCI_CFGREGS_BASE 0x000000020ec00000ULL
  72. #define OCOTEA_PCI_CFGA_PLB32 0x0ec00000
  73. #define OCOTEA_PCI_CFGD_PLB32 0x0ec00004
  74. #define OCOTEA_PCI_IO_BASE 0x0000000208000000ULL
  75. #define OCOTEA_PCI_IO_SIZE 0x00010000
  76. #define OCOTEA_PCI_MEM_OFFSET 0x00000000
  77. #endif /* __ASM_OCOTEA_H__ */
  78. #endif /* __KERNEL__ */