ocotea.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 <linux/config.h>
  18. #include <platforms/4xx/ibm440gx.h>
  19. /* F/W TLB mapping used in bootloader glue to reset EMAC */
  20. #define PPC44x_EMAC0_MR0 0xe0000800
  21. /* Location of MAC addresses in PIBS image */
  22. #define PIBS_FLASH_BASE 0xfff00000
  23. #define PIBS_MAC_BASE (PIBS_FLASH_BASE+0xb0500)
  24. #define PIBS_MAC_SIZE 0x200
  25. #define PIBS_MAC_OFFSET 0x100
  26. /* External timer clock frequency */
  27. #define OCOTEA_TMR_CLK 25000000
  28. /* RTC/NVRAM location */
  29. #define OCOTEA_RTC_ADDR 0x0000000148000000ULL
  30. #define OCOTEA_RTC_SIZE 0x2000
  31. /* Flash */
  32. #define OCOTEA_FPGA_REG_0 0x0000000148300000ULL
  33. #define OCOTEA_BOOT_LARGE_FLASH(x) (x & 0x40)
  34. #define OCOTEA_SMALL_FLASH_LOW 0x00000001ff900000ULL
  35. #define OCOTEA_SMALL_FLASH_HIGH 0x00000001fff00000ULL
  36. #define OCOTEA_SMALL_FLASH_SIZE 0x100000
  37. #define OCOTEA_LARGE_FLASH_LOW 0x00000001ff800000ULL
  38. #define OCOTEA_LARGE_FLASH_HIGH 0x00000001ffc00000ULL
  39. #define OCOTEA_LARGE_FLASH_SIZE 0x400000
  40. /* FPGA_REG_3 (Ethernet Groups) */
  41. #define OCOTEA_FPGA_REG_3 0x0000000148300003ULL
  42. /*
  43. * Serial port defines
  44. */
  45. #define RS_TABLE_SIZE 2
  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. #define BASE_BAUD 11059200/16
  59. #define STD_UART_OP(num) \
  60. { 0, BASE_BAUD, 0, UART##num##_INT, \
  61. (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST), \
  62. iomem_base: (void*)UART##num##_IO_BASE, \
  63. io_type: SERIAL_IO_MEM},
  64. #define SERIAL_PORT_DFNS \
  65. STD_UART_OP(0) \
  66. STD_UART_OP(1)
  67. /* PCI support */
  68. #define OCOTEA_PCI_LOWER_IO 0x00000000
  69. #define OCOTEA_PCI_UPPER_IO 0x0000ffff
  70. #define OCOTEA_PCI_LOWER_MEM 0x80000000
  71. #define OCOTEA_PCI_UPPER_MEM 0xffffefff
  72. #define OCOTEA_PCI_CFGREGS_BASE 0x000000020ec00000ULL
  73. #define OCOTEA_PCI_CFGA_PLB32 0x0ec00000
  74. #define OCOTEA_PCI_CFGD_PLB32 0x0ec00004
  75. #define OCOTEA_PCI_IO_BASE 0x0000000208000000ULL
  76. #define OCOTEA_PCI_IO_SIZE 0x00010000
  77. #define OCOTEA_PCI_MEM_OFFSET 0x00000000
  78. #endif /* __ASM_OCOTEA_H__ */
  79. #endif /* __KERNEL__ */