/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * include/linux/fsl_devices.h * * Definitions for any platform device related flags or structures for * Freescale processor devices * * Maintainer: Kumar Gala <[email protected]> * * Copyright 2004,2012 Freescale Semiconductor, Inc */ #ifndef _FSL_DEVICE_H_ #define _FSL_DEVICE_H_ #define FSL_UTMI_PHY_DLY … #define FSL_USB_PHY_CLK_TIMEOUT … #include <linux/types.h> /* * Some conventions on how we handle peripherals on Freescale chips * * unique device: a platform_device entry in fsl_plat_devs[] plus * associated device information in its platform_data structure. * * A chip is described by a set of unique devices. * * Each sub-arch has its own master list of unique devices and * enumerates them by enum fsl_devices in a sub-arch specific header * * The platform data structure is broken into two parts. The * first is device specific information that help identify any * unique features of a peripheral. The second is any * information that may be defined by the board or how the device * is connected externally of the chip. * * naming conventions: * - platform data structures: <driver>_platform_data * - platform data device flags: FSL_<driver>_DEV_<FLAG> * - platform data board flags: FSL_<driver>_BRD_<FLAG> * */ enum fsl_usb2_controller_ver { … }; enum fsl_usb2_operating_modes { … }; enum fsl_usb2_phy_modes { … }; struct clk; struct platform_device; struct fsl_usb2_platform_data { … }; /* Flags in fsl_usb2_mph_platform_data */ #define FSL_USB2_PORT0_ENABLED … #define FSL_USB2_PORT1_ENABLED … #define FLS_USB2_WORKAROUND_ENGCM09152 … struct spi_device; struct fsl_spi_platform_data { … }; struct mpc8xx_pcmcia_ops { … }; /* Returns non-zero if the current suspend operation would * lead to a deep sleep (i.e. power removed from the core, * instead of just the clock). */ #if defined(CONFIG_PPC_83xx) && defined(CONFIG_SUSPEND) int fsl_deep_sleep(void); #else static inline int fsl_deep_sleep(void) { … } #endif #endif /* _FSL_DEVICE_H_ */