Path: blob/master/arch/powerpc/platforms/83xx/mpc83xx.h
10819 views
#ifndef __MPC83XX_H__1#define __MPC83XX_H__23#include <linux/init.h>4#include <linux/device.h>5#include <asm/pci-bridge.h>67/* System Clock Control Register */8#define MPC83XX_SCCR_OFFS 0xA089#define MPC83XX_SCCR_USB_MASK 0x00f0000010#define MPC83XX_SCCR_USB_MPHCM_11 0x00c0000011#define MPC83XX_SCCR_USB_MPHCM_01 0x0040000012#define MPC83XX_SCCR_USB_MPHCM_10 0x0080000013#define MPC83XX_SCCR_USB_DRCM_11 0x0030000014#define MPC83XX_SCCR_USB_DRCM_01 0x0010000015#define MPC83XX_SCCR_USB_DRCM_10 0x0020000016#define MPC8315_SCCR_USB_MASK 0x00c0000017#define MPC8315_SCCR_USB_DRCM_11 0x00c0000018#define MPC8315_SCCR_USB_DRCM_01 0x0040000019#define MPC837X_SCCR_USB_DRCM_11 0x00c000002021/* system i/o configuration register low */22#define MPC83XX_SICRL_OFFS 0x11423#define MPC834X_SICRL_USB_MASK 0x6000000024#define MPC834X_SICRL_USB0 0x2000000025#define MPC834X_SICRL_USB1 0x4000000026#define MPC831X_SICRL_USB_MASK 0x00000c0027#define MPC831X_SICRL_USB_ULPI 0x0000080028#define MPC8315_SICRL_USB_MASK 0x000000fc29#define MPC8315_SICRL_USB_ULPI 0x0000005430#define MPC837X_SICRL_USB_MASK 0xf000000031#define MPC837X_SICRL_USB_ULPI 0x5000000032#define MPC837X_SICRL_USBB_MASK 0x3000000033#define MPC837X_SICRL_SD 0x200000003435/* system i/o configuration register high */36#define MPC83XX_SICRH_OFFS 0x11837#define MPC8308_SICRH_USB_MASK 0x000c000038#define MPC8308_SICRH_USB_ULPI 0x0004000039#define MPC834X_SICRH_USB_UTMI 0x0002000040#define MPC831X_SICRH_USB_MASK 0x000000e041#define MPC831X_SICRH_USB_ULPI 0x000000a042#define MPC8315_SICRH_USB_MASK 0x0000ff0043#define MPC8315_SICRH_USB_ULPI 0x0000000044#define MPC837X_SICRH_SPI_MASK 0x0000000345#define MPC837X_SICRH_SD 0x000000014647/* USB Control Register */48#define FSL_USB2_CONTROL_OFFS 0x50049#define CONTROL_UTMI_PHY_EN 0x0000020050#define CONTROL_REFSEL_24MHZ 0x0000004051#define CONTROL_REFSEL_48MHZ 0x0000008052#define CONTROL_PHY_CLK_SEL_ULPI 0x0000040053#define CONTROL_OTG_PORT 0x000000205455/* USB PORTSC Registers */56#define FSL_USB2_PORTSC1_OFFS 0x18457#define FSL_USB2_PORTSC2_OFFS 0x18858#define PORTSCX_PTW_16BIT 0x1000000059#define PORTSCX_PTS_UTMI 0x0000000060#define PORTSCX_PTS_ULPI 0x800000006162/*63* Declaration for the various functions exported by the64* mpc83xx_* files. Mostly for use by mpc83xx_setup65*/6667extern void mpc83xx_restart(char *cmd);68extern long mpc83xx_time_init(void);69extern int mpc837x_usb_cfg(void);70extern int mpc834x_usb_cfg(void);71extern int mpc831x_usb_cfg(void);7273#endif /* __MPC83XX_H__ */747576