netarm_registers.h 2.6 KB

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