mpc83xx.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __MPC83XX_H__
  2. #define __MPC83XX_H__
  3. #include <linux/init.h>
  4. #include <linux/device.h>
  5. #include <asm/pci-bridge.h>
  6. /* System Clock Control Register */
  7. #define MPC83XX_SCCR_OFFS 0xA08
  8. #define MPC83XX_SCCR_USB_MPHCM_11 0x00c00000
  9. #define MPC83XX_SCCR_USB_MPHCM_01 0x00400000
  10. #define MPC83XX_SCCR_USB_MPHCM_10 0x00800000
  11. #define MPC83XX_SCCR_USB_DRCM_11 0x00300000
  12. #define MPC83XX_SCCR_USB_DRCM_01 0x00100000
  13. #define MPC83XX_SCCR_USB_DRCM_10 0x00200000
  14. /* system i/o configuration register low */
  15. #define MPC83XX_SICRL_OFFS 0x114
  16. #define MPC83XX_SICRL_USB0 0x40000000
  17. #define MPC83XX_SICRL_USB1 0x20000000
  18. /* system i/o configuration register high */
  19. #define MPC83XX_SICRH_OFFS 0x118
  20. #define MPC83XX_SICRH_USB_UTMI 0x00020000
  21. /*
  22. * Declaration for the various functions exported by the
  23. * mpc83xx_* files. Mostly for use by mpc83xx_setup
  24. */
  25. extern int mpc83xx_add_bridge(struct device_node *dev);
  26. extern int mpc83xx_exclude_device(struct pci_controller *hose,
  27. u_char bus, u_char devfn);
  28. extern void mpc83xx_restart(char *cmd);
  29. extern long mpc83xx_time_init(void);
  30. #endif /* __MPC83XX_H__ */