yucca.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. * Yucca board definitions
  3. *
  4. * Roland Dreier <rolandd@cisco.com> (based on luan.h by Matt Porter)
  5. *
  6. * Copyright 2004-2005 MontaVista Software Inc.
  7. * Copyright (c) 2005 Cisco Systems. All rights reserved.
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the
  11. * Free Software Foundation; either version 2 of the License, or (at your
  12. * option) any later version.
  13. *
  14. */
  15. #ifdef __KERNEL__
  16. #ifndef __ASM_YUCCA_H__
  17. #define __ASM_YUCCA_H__
  18. #include <platforms/4xx/ppc440spe.h>
  19. /* F/W TLB mapping used in bootloader glue to reset EMAC */
  20. #define PPC44x_EMAC0_MR0 0xa0000800
  21. /* Location of MAC addresses in PIBS image */
  22. #define PIBS_FLASH_BASE 0xffe00000
  23. #define PIBS_MAC_BASE (PIBS_FLASH_BASE+0x1b0400)
  24. /* External timer clock frequency */
  25. #define YUCCA_TMR_CLK 25000000
  26. /*
  27. * FPGA registers
  28. */
  29. #define YUCCA_FPGA_REG_BASE 0x00000004e2000000ULL
  30. #define YUCCA_FPGA_REG_SIZE 0x24
  31. #define FPGA_REG1A 0x1a
  32. #define FPGA_REG1A_PE0_GLED 0x8000
  33. #define FPGA_REG1A_PE1_GLED 0x4000
  34. #define FPGA_REG1A_PE2_GLED 0x2000
  35. #define FPGA_REG1A_PE0_YLED 0x1000
  36. #define FPGA_REG1A_PE1_YLED 0x0800
  37. #define FPGA_REG1A_PE2_YLED 0x0400
  38. #define FPGA_REG1A_PE0_PWRON 0x0200
  39. #define FPGA_REG1A_PE1_PWRON 0x0100
  40. #define FPGA_REG1A_PE2_PWRON 0x0080
  41. #define FPGA_REG1A_PE0_REFCLK_ENABLE 0x0040
  42. #define FPGA_REG1A_PE1_REFCLK_ENABLE 0x0020
  43. #define FPGA_REG1A_PE2_REFCLK_ENABLE 0x0010
  44. #define FPGA_REG1A_PE_SPREAD0 0x0008
  45. #define FPGA_REG1A_PE_SPREAD1 0x0004
  46. #define FPGA_REG1A_PE_SELSOURCE_0 0x0002
  47. #define FPGA_REG1A_PE_SELSOURCE_1 0x0001
  48. #define FPGA_REG1C 0x1c
  49. #define FPGA_REG1C_PE0_ROOTPOINT 0x8000
  50. #define FPGA_REG1C_PE1_ENDPOINT 0x4000
  51. #define FPGA_REG1C_PE2_ENDPOINT 0x2000
  52. #define FPGA_REG1C_PE0_PRSNT 0x1000
  53. #define FPGA_REG1C_PE1_PRSNT 0x0800
  54. #define FPGA_REG1C_PE2_PRSNT 0x0400
  55. #define FPGA_REG1C_PE0_WAKE 0x0080
  56. #define FPGA_REG1C_PE1_WAKE 0x0040
  57. #define FPGA_REG1C_PE2_WAKE 0x0020
  58. #define FPGA_REG1C_PE0_PERST 0x0010
  59. #define FPGA_REG1C_PE1_PERST 0x0008
  60. #define FPGA_REG1C_PE2_PERST 0x0004
  61. /*
  62. * Serial port defines
  63. */
  64. #define RS_TABLE_SIZE 3
  65. /* PIBS defined UART mappings, used before early_serial_setup */
  66. #define UART0_IO_BASE 0xa0000200
  67. #define UART1_IO_BASE 0xa0000300
  68. #define UART2_IO_BASE 0xa0000600
  69. #define BASE_BAUD 11059200
  70. #define STD_UART_OP(num) \
  71. { 0, BASE_BAUD, 0, UART##num##_INT, \
  72. (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST), \
  73. iomem_base: (void*)UART##num##_IO_BASE, \
  74. io_type: SERIAL_IO_MEM},
  75. #define SERIAL_PORT_DFNS \
  76. STD_UART_OP(0) \
  77. STD_UART_OP(1) \
  78. STD_UART_OP(2)
  79. /* PCI support */
  80. #define YUCCA_PCIX_LOWER_IO 0x00000000
  81. #define YUCCA_PCIX_UPPER_IO 0x0000ffff
  82. #define YUCCA_PCIX_LOWER_MEM 0x80000000
  83. #define YUCCA_PCIX_UPPER_MEM 0x8fffffff
  84. #define YUCCA_PCIE_LOWER_MEM 0x90000000
  85. #define YUCCA_PCIE_MEM_SIZE 0x10000000
  86. #define YUCCA_PCIX_MEM_SIZE 0x10000000
  87. #define YUCCA_PCIX_MEM_OFFSET 0x00000000
  88. #define YUCCA_PCIE_MEM_SIZE 0x10000000
  89. #define YUCCA_PCIE_MEM_OFFSET 0x00000000
  90. #endif /* __ASM_YUCCA_H__ */
  91. #endif /* __KERNEL__ */