hdpu.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Definitions for Sky Computers HDPU board.
  3. *
  4. * Brian Waite <waite@skycomputers.com>
  5. *
  6. * Based on code done by Rabeeh Khoury - rabeeh@galileo.co.il
  7. * Based on code done by Mark A. Greer <mgreer@mvista.com>
  8. * Based on code done by Tim Montgomery <timm@artesyncp.com>
  9. *
  10. *
  11. * This program is free software; you can redistribute it and/or modify it
  12. * under the terms of the GNU General Public License as published by the
  13. * Free Software Foundation; either version 2 of the License, or (at your
  14. * option) any later version.
  15. */
  16. /*
  17. * The MV64360 has 2 PCI buses each with 1 window from the CPU bus to
  18. * PCI I/O space and 4 windows from the CPU bus to PCI MEM space.
  19. * We'll only use one PCI MEM window on each PCI bus.
  20. *
  21. * This is the CPU physical memory map (windows must be at least 64K and start
  22. * on a boundary that is a multiple of the window size):
  23. *
  24. * 0x80000000-0x8fffffff - PCI 0 MEM
  25. * 0xa0000000-0xafffffff - PCI 1 MEM
  26. * 0xc0000000-0xc0ffffff - PCI 0 I/O
  27. * 0xc1000000-0xc1ffffff - PCI 1 I/O
  28. * 0xf1000000-0xf100ffff - MV64360 Registers
  29. * 0xf1010000-0xfb9fffff - HOLE
  30. * 0xfbfa0000-0xfbfaffff - TBEN
  31. * 0xfbf00000-0xfbfbffff - NEXUS
  32. * 0xfbfc0000-0xfbffffff - Internal SRAM
  33. * 0xfc000000-0xffffffff - Boot window
  34. */
  35. #ifndef __PPC_PLATFORMS_HDPU_H
  36. #define __PPC_PLATFORMS_HDPU_H
  37. /* CPU Physical Memory Map setup. */
  38. #define HDPU_BRIDGE_REG_BASE 0xf1000000
  39. #define HDPU_TBEN_BASE 0xfbfa0000
  40. #define HDPU_TBEN_SIZE 0x00010000
  41. #define HDPU_NEXUS_ID_BASE 0xfbfb0000
  42. #define HDPU_NEXUS_ID_SIZE 0x00010000
  43. #define HDPU_INTERNAL_SRAM_BASE 0xfbfc0000
  44. #define HDPU_INTERNAL_SRAM_SIZE 0x00040000
  45. #define HDPU_EMB_FLASH_BASE 0xfc000000
  46. #define HDPU_EMB_FLASH_SIZE 0x04000000
  47. /* PCI Mappings */
  48. #define HDPU_PCI0_MEM_START_PROC_ADDR 0x80000000
  49. #define HDPU_PCI0_MEM_START_PCI_HI_ADDR 0x00000000
  50. #define HDPU_PCI0_MEM_START_PCI_LO_ADDR HDPU_PCI0_MEM_START_PROC_ADDR
  51. #define HDPU_PCI0_MEM_SIZE 0x10000000
  52. #define HDPU_PCI1_MEM_START_PROC_ADDR 0xc0000000
  53. #define HDPU_PCI1_MEM_START_PCI_HI_ADDR 0x00000000
  54. #define HDPU_PCI1_MEM_START_PCI_LO_ADDR HDPU_PCI1_MEM_START_PROC_ADDR
  55. #define HDPU_PCI1_MEM_SIZE 0x20000000
  56. #define HDPU_PCI0_IO_START_PROC_ADDR 0xc0000000
  57. #define HDPU_PCI0_IO_START_PCI_ADDR 0x00000000
  58. #define HDPU_PCI0_IO_SIZE 0x01000000
  59. #define HDPU_PCI1_IO_START_PROC_ADDR 0xc1000000
  60. #define HDPU_PCI1_IO_START_PCI_ADDR 0x01000000
  61. #define HDPU_PCI1_IO_SIZE 0x01000000
  62. #define HDPU_DEFAULT_BAUD 115200
  63. #define HDPU_MPSC_CLK_SRC 8 /* TCLK */
  64. #define HDPU_MPSC_CLK_FREQ 133000000 /* 133 Mhz */
  65. #define HDPU_PCI_0_IRQ (8+64)
  66. #define HDPU_PCI_1_IRQ (13+64)
  67. #endif /* __PPC_PLATFORMS_HDPU_H */