netarm_registers.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. * linux/include/asm-arm/arch-netarm/netarm_registers.h
  3. *
  4. * Copyright (C) 2005
  5. * Art Shipkowski, Videon Central, Inc., <art@videon-central.com>
  6. *
  7. * Copyright (C) 2000, 2001 NETsilicon, Inc.
  8. * Copyright (C) 2000, 2001 WireSpeed Communications Corporation
  9. *
  10. * This software is copyrighted by WireSpeed. LICENSEE agrees that
  11. * it will not delete this copyright notice, trademarks or protective
  12. * notices from any copy made by LICENSEE.
  13. *
  14. * This software is provided "AS-IS" and any express or implied
  15. * warranties or conditions, including but not limited to any
  16. * implied warranties of merchantability and fitness for a particular
  17. * purpose regarding this software. In no event shall WireSpeed
  18. * be liable for any indirect, consequential, or incidental damages,
  19. * loss of profits or revenue, loss of use or data, or interruption
  20. * of business, whether the alleged damages are labeled in contract,
  21. * tort, or indemnity.
  22. *
  23. * This program is free software; you can redistribute it and/or modify
  24. * it under the terms of the GNU General Public License as published by
  25. * the Free Software Foundation; either version 2 of the License, or
  26. * (at your option) any later version.
  27. *
  28. * You should have received a copy of the GNU General Public License
  29. * along with this program; if not, write to the Free Software
  30. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  31. *
  32. * author(s) : Joe deBlaquiere
  33. *
  34. * Modified to support NS7520 by Art Shipkowski.
  35. */
  36. #ifndef __NET_ARM_REGISTERS_H
  37. #define __NET_ARM_REGISTERS_H
  38. #include <config.h>
  39. /* fundamental constants : */
  40. /* the input crystal/clock frequency ( in Hz ) */
  41. #define NETARM_XTAL_FREQ_25MHz (18432000)
  42. #define NETARM_XTAL_FREQ_33MHz (23698000)
  43. #define NETARM_XTAL_FREQ_48MHz (48000000)
  44. #define NETARM_XTAL_FREQ_55MHz (55000000)
  45. #define NETARM_XTAL_FREQ_EMLIN1 (20000000)
  46. /* the frequency of SYS_CLK */
  47. #if defined(CONFIG_NETARM_EMLIN)
  48. /* EMLIN board: 33 MHz (exp.) */
  49. #define NETARM_PLL_COUNT_VAL 6
  50. #define NETARM_XTAL_FREQ NETARM_XTAL_FREQ_25MHz
  51. #elif defined(CONFIG_NETARM_NET40_REV2)
  52. /* NET+40 Rev2 boards: 33 MHz (with NETARM_XTAL_FREQ_25MHz) */
  53. #define NETARM_PLL_COUNT_VAL 6
  54. #define NETARM_XTAL_FREQ NETARM_XTAL_FREQ_25MHz
  55. #elif defined(CONFIG_NETARM_NET40_REV4)
  56. /* NET+40 Rev4 boards with EDO must clock slower: 25 MHz (with
  57. NETARM_XTAL_FREQ_25MHz) 4 */
  58. #define NETARM_PLL_COUNT_VAL 4
  59. #define NETARM_XTAL_FREQ NETARM_XTAL_FREQ_25MHz
  60. #elif defined(CONFIG_NETARM_NET50)
  61. /* NET+50 boards: 40 MHz (with NETARM_XTAL_FREQ_25MHz) */
  62. #define NETARM_PLL_COUNT_VAL 8
  63. #define NETARM_XTAL_FREQ NETARM_XTAL_FREQ_25MHz
  64. #else /* CONFIG_NETARM_NS7520 */
  65. #define NETARM_PLL_COUNT_VAL 0
  66. #if defined(CONFIG_BOARD_UNC20)
  67. #define NETARM_XTAL_FREQ NETARM_XTAL_FREQ_48MHz
  68. #else
  69. #define NETARM_XTAL_FREQ NETARM_XTAL_FREQ_55MHz
  70. #endif
  71. #endif
  72. /* #include "arm_registers.h" */
  73. #include <asm/arch/netarm_gen_module.h>
  74. #include <asm/arch/netarm_mem_module.h>
  75. #include <asm/arch/netarm_ser_module.h>
  76. #include <asm/arch/netarm_eni_module.h>
  77. #include <asm/arch/netarm_dma_module.h>
  78. #include <asm/arch/netarm_eth_module.h>
  79. #endif