Path: blob/master/arch/powerpc/platforms/83xx/mpc83xx.h
26481 views
/* SPDX-License-Identifier: GPL-2.0 */1#ifndef __MPC83XX_H__2#define __MPC83XX_H__34#include <linux/init.h>56/* System Clock Control Register */7#define MPC83XX_SCCR_OFFS 0xA088#define MPC83XX_SCCR_USB_MASK 0x00f000009#define MPC83XX_SCCR_USB_MPHCM_11 0x00c0000010#define MPC83XX_SCCR_USB_MPHCM_01 0x0040000011#define MPC83XX_SCCR_USB_MPHCM_10 0x0080000012#define MPC83XX_SCCR_USB_DRCM_11 0x0030000013#define MPC83XX_SCCR_USB_DRCM_01 0x0010000014#define MPC83XX_SCCR_USB_DRCM_10 0x0020000015#define MPC8315_SCCR_USB_MASK 0x00c0000016#define MPC8315_SCCR_USB_DRCM_11 0x00c0000017#define MPC8315_SCCR_USB_DRCM_01 0x0040000018#define MPC837X_SCCR_USB_DRCM_11 0x00c000001920/* system i/o configuration register low */21#define MPC83XX_SICRL_OFFS 0x11422#define MPC834X_SICRL_USB_MASK 0x6000000023#define MPC834X_SICRL_USB0 0x2000000024#define MPC834X_SICRL_USB1 0x4000000025#define MPC831X_SICRL_USB_MASK 0x00000c0026#define MPC831X_SICRL_USB_ULPI 0x0000080027#define MPC8315_SICRL_USB_MASK 0x000000fc28#define MPC8315_SICRL_USB_ULPI 0x0000005429#define MPC837X_SICRL_USB_MASK 0xf000000030#define MPC837X_SICRL_USB_ULPI 0x5000000031#define MPC837X_SICRL_USBB_MASK 0x3000000032#define MPC837X_SICRL_SD 0x200000003334/* system i/o configuration register high */35#define MPC83XX_SICRH_OFFS 0x11836#define MPC8308_SICRH_USB_MASK 0x000c000037#define MPC8308_SICRH_USB_ULPI 0x0004000038#define MPC834X_SICRH_USB_UTMI 0x0002000039#define MPC831X_SICRH_USB_MASK 0x000000e040#define MPC831X_SICRH_USB_ULPI 0x000000a041#define MPC8315_SICRH_USB_MASK 0x0000ff0042#define MPC8315_SICRH_USB_ULPI 0x0000000043#define MPC837X_SICRH_SPI_MASK 0x0000000344#define MPC837X_SICRH_SD 0x000000014546/* USB Control Register */47#define FSL_USB2_CONTROL_OFFS 0x50048#define CONTROL_UTMI_PHY_EN 0x0000020049#define CONTROL_REFSEL_24MHZ 0x0000004050#define CONTROL_REFSEL_48MHZ 0x0000008051#define CONTROL_PHY_CLK_SEL_ULPI 0x0000040052#define CONTROL_OTG_PORT 0x000000205354/* USB PORTSC Registers */55#define FSL_USB2_PORTSC1_OFFS 0x18456#define FSL_USB2_PORTSC2_OFFS 0x18857#define PORTSCX_PTW_16BIT 0x1000000058#define PORTSCX_PTS_UTMI 0x0000000059#define PORTSCX_PTS_ULPI 0x800000006061/*62* Declaration for the various functions exported by the63* mpc83xx_* files. Mostly for use by mpc83xx_setup64*/6566extern void __noreturn mpc83xx_restart(char *cmd);67extern long mpc83xx_time_init(void);68int __init mpc837x_usb_cfg(void);69int __init mpc834x_usb_cfg(void);70int __init mpc831x_usb_cfg(void);71extern void mpc83xx_ipic_init_IRQ(void);7273#ifdef CONFIG_PCI74extern void mpc83xx_setup_pci(void);75#else76#define mpc83xx_setup_pci NULL77#endif7879extern int mpc83xx_declare_of_platform_devices(void);80extern void mpc83xx_setup_arch(void);8182#endif /* __MPC83XX_H__ */838485