diff options
author | David Lechner <david@lechnology.com> | 2018-02-18 06:22:24 +0300 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2018-02-19 13:49:25 +0300 |
commit | bdec5a6b57896da81bc47262868468717a06bb69 (patch) | |
tree | 0cc9d80c5ac35d5c4cd205f1c16bbb46e6b1be01 /include/linux/platform_data/phy-da8xx-usb.h | |
parent | e98bbbf3bd59d5283750e8f56031bd1cc2feafd8 (diff) | |
download | linux-bdec5a6b57896da81bc47262868468717a06bb69.tar.xz |
ARM: da8xx: use platform data for CFGCHIP syscon regmap
This converts from using a platform device for the CFGCHIP syscon
regmap to using platform data to pass the regmap to consumers.
A lazy getter function is used so that the regmap will only be
created if it is actually used. This function will also be used
in the clock init when we convert to the common clock framework.
The USB PHY driver is currently the only consumer. This driver is
updated to use platform data to get the CFGCHIP regmap instead of
syscon_regmap_lookup_by_pdevname().
Signed-off-by: David Lechner <david@lechnology.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'include/linux/platform_data/phy-da8xx-usb.h')
-rw-r--r-- | include/linux/platform_data/phy-da8xx-usb.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/platform_data/phy-da8xx-usb.h b/include/linux/platform_data/phy-da8xx-usb.h new file mode 100644 index 000000000000..85c2b99381b2 --- /dev/null +++ b/include/linux/platform_data/phy-da8xx-usb.h @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * phy-da8xx-usb - TI DaVinci DA8xx USB PHY driver + * + * Copyright (C) 2018 David Lechner <david@lechnology.com> + */ + +#ifndef __LINUX_PLATFORM_DATA_PHY_DA8XX_USB_H__ +#define __LINUX_PLATFORM_DATA_PHY_DA8XX_USB_H__ + +#include <linux/regmap.h> + +/** + * da8xx_usb_phy_platform_data + * @cfgchip: CFGCHIP syscon regmap + */ +struct da8xx_usb_phy_platform_data { + struct regmap *cfgchip; +}; + +#endif /* __LINUX_PLATFORM_DATA_PHY_DA8XX_USB_H__ */ |