mcs814x.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (C) 2003 Artec Design Ltd.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. */
  9. #ifndef __ASM_ARCH_MCS814X_H
  10. #define __ASM_ARCH_MCS814X_H
  11. #define MCS814X_IO_BASE 0xF0000000
  12. #define MCS814X_IO_START 0x40000000
  13. #define MCS814X_IO_SIZE 0x00100000
  14. /* IRQ controller register offset */
  15. #define MCS814X_IRQ_ICR 0x00
  16. #define MCS814X_IRQ_ISR 0x04
  17. #define MCS814X_IRQ_MASK 0x20
  18. #define MCS814X_IRQ_STS0 0x40
  19. #define MCS814X_PHYS_BASE 0x40000000
  20. #define MCS814X_VIRT_BASE MCS814X_IO_BASE
  21. #define MCS814X_UART 0x000DC000
  22. #define MCS814X_DBGLED 0x000EC000
  23. #define MCS814X_SYSDBG 0x000F8000
  24. #define MCS814X_SYSDBG_SIZE 0x50
  25. /* System configuration and bootstrap registers */
  26. #define SYSDBG_BS1 0x00
  27. #define CPU_FREQ_SHIFT 27
  28. #define CPU_FREQ_MASK 0x0F
  29. #define SDRAM_FREQ_BIT (1 << 22)
  30. #define SYSDBG_BS2 0x04
  31. #define LED_CFG_MASK 0x03
  32. #define CPU_MODE_SHIFT 23
  33. #define CPU_MODE_MASK 0x03
  34. #define SYSDBG_SYSCTL_MAC 0x1d
  35. #define BUF_SHIFT_BIT (1 << 0)
  36. #define SYSDBG_SYSCTL 0x08
  37. #define SYSCTL_EMAC (1 << 0)
  38. #define SYSCTL_EPHY (1 << 0) /* active low */
  39. #define SYSCTL_CIPHER (1 << 16)
  40. #define SYSDBG_PLL_CTL 0x3C
  41. #endif /* __ASM_ARCH_MCS814X_H */