yucca.h 3.1 KB

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