Kumar Gala | 7d13d21 | 2006-01-13 11:19:58 -0600 | [diff] [blame] | 1 | #ifndef __MPC83XX_H__ |
| 2 | #define __MPC83XX_H__ |
| 3 | |
| 4 | #include <linux/init.h> |
| 5 | #include <linux/device.h> |
| 6 | |
Li Yang | c161698 | 2007-02-07 13:47:56 +0800 | [diff] [blame] | 7 | /* System Clock Control Register */ |
| 8 | #define MPC83XX_SCCR_OFFS 0xA08 |
| 9 | #define MPC83XX_SCCR_USB_MPHCM_11 0x00c00000 |
| 10 | #define MPC83XX_SCCR_USB_MPHCM_01 0x00400000 |
| 11 | #define MPC83XX_SCCR_USB_MPHCM_10 0x00800000 |
| 12 | #define MPC83XX_SCCR_USB_DRCM_11 0x00300000 |
| 13 | #define MPC83XX_SCCR_USB_DRCM_01 0x00100000 |
| 14 | #define MPC83XX_SCCR_USB_DRCM_10 0x00200000 |
| 15 | |
| 16 | /* system i/o configuration register low */ |
| 17 | #define MPC83XX_SICRL_OFFS 0x114 |
| 18 | #define MPC83XX_SICRL_USB0 0x40000000 |
| 19 | #define MPC83XX_SICRL_USB1 0x20000000 |
| 20 | |
| 21 | /* system i/o configuration register high */ |
| 22 | #define MPC83XX_SICRH_OFFS 0x118 |
| 23 | #define MPC83XX_SICRH_USB_UTMI 0x00020000 |
| 24 | |
Kumar Gala | 7d13d21 | 2006-01-13 11:19:58 -0600 | [diff] [blame] | 25 | /* |
| 26 | * Declaration for the various functions exported by the |
| 27 | * mpc83xx_* files. Mostly for use by mpc83xx_setup |
| 28 | */ |
| 29 | |
| 30 | extern int add_bridge(struct device_node *dev); |
Kumar Gala | 30f5933 | 2006-02-02 13:50:44 -0600 | [diff] [blame] | 31 | extern int mpc83xx_exclude_device(u_char bus, u_char devfn); |
| 32 | extern void mpc83xx_restart(char *cmd); |
| 33 | extern long mpc83xx_time_init(void); |
Kumar Gala | 7d13d21 | 2006-01-13 11:19:58 -0600 | [diff] [blame] | 34 | |
Kumar Gala | e060e08 | 2006-02-02 13:51:10 -0600 | [diff] [blame] | 35 | #endif /* __MPC83XX_H__ */ |