DUET_ADS.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * A collection of structures, addresses, and values associated with
  3. * the Motorola DUET ADS board. Values common to all FADS family boards
  4. * are in board/fads/fads.h
  5. *
  6. * Copyright (C) 2003 Arabella Software Ltd.
  7. * Yuli Barcohen <yuli@arabellasw.com>
  8. */
  9. #ifndef __CONFIG_H
  10. #define __CONFIG_H
  11. /* Board type */
  12. #define CONFIG_DUET_ADS 1 /* Duet (MPC87x/88x) ADS */
  13. #define CONFIG_FADS 1 /* We are FADS compatible (more or less) */
  14. #define CONFIG_MPC885 1 /* MPC885 CPU (Duet family) */
  15. #define CONFIG_8xx_CONS_SMC1 1 /* Console is on SMC1 */
  16. #undef CONFIG_8xx_CONS_SMC2
  17. #undef CONFIG_8xx_CONS_NONE
  18. #define CONFIG_BAUDRATE 38400
  19. #define CFG_8XX_FACT 5 /* Multiply by 5 */
  20. #define CFG_8XX_XIN 10000000 /* 10 MHz in */
  21. #define CONFIG_SDRAM_50MHZ 1
  22. /*-----------------------------------------------------------------------
  23. * PLPRCR - PLL, Low-Power, and Reset Control Register 14-22
  24. *-----------------------------------------------------------------------
  25. * set the PLL, the low-power modes and the reset control
  26. */
  27. #define CFG_PLPRCR ((CFG_8XX_FACT << PLPRCR_MFI_SHIFT) | PLPRCR_TEXPS)
  28. #include "fads.h"
  29. #define CFG_PHYDEV_ADDR (BCSR_ADDR + 0x20000)
  30. #define CFG_OR5_PRELIM 0xFFFF8110 /* 64Kbyte address space */
  31. #define CFG_BR5_PRELIM (CFG_PHYDEV_ADDR | BR_PS_8 | BR_V)
  32. #define BCSR5 (CFG_PHYDEV_ADDR + 0x300)
  33. #define BCSR5_MII2_EN 0x40
  34. #define BCSR5_MII2_RST 0x20
  35. #define BCSR5_T1_RST 0x10
  36. #define BCSR5_ATM155_RST 0x08
  37. #define BCSR5_ATM25_RST 0x04
  38. #define BCSR5_MII1_EN 0x02
  39. #define BCSR5_MII1_RST 0x01
  40. #endif /* __CONFIG_H */