mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-18 19:12:28 +02:00
phy: sun4i-usb: Add A10/A13/A20 PHY config
Add PHY configs for Allwinner A10/A13/A20 which are SUN4I. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Acked-by: Jun Nie <jun.nie@linaro.org>
This commit is contained in:
parent
5f646bf1d7
commit
7f90b557c9
@ -65,6 +65,7 @@
|
|||||||
#define MAX_PHYS 4
|
#define MAX_PHYS 4
|
||||||
|
|
||||||
enum sun4i_usb_phy_type {
|
enum sun4i_usb_phy_type {
|
||||||
|
sun4i_a10_phy,
|
||||||
sun8i_a83t_phy,
|
sun8i_a83t_phy,
|
||||||
sun8i_h3_phy,
|
sun8i_h3_phy,
|
||||||
sun8i_v3s_phy,
|
sun8i_v3s_phy,
|
||||||
@ -460,6 +461,30 @@ static int sun4i_usb_phy_probe(struct udevice *dev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct sun4i_usb_phy_cfg sun4i_a10_cfg = {
|
||||||
|
.num_phys = 3,
|
||||||
|
.type = sun4i_a10_phy,
|
||||||
|
.disc_thresh = 3,
|
||||||
|
.phyctl_offset = REG_PHYCTL_A10,
|
||||||
|
.enable_pmu_unk1 = false,
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct sun4i_usb_phy_cfg sun5i_a13_cfg = {
|
||||||
|
.num_phys = 2,
|
||||||
|
.type = sun4i_a10_phy,
|
||||||
|
.disc_thresh = 2,
|
||||||
|
.phyctl_offset = REG_PHYCTL_A10,
|
||||||
|
.enable_pmu_unk1 = false,
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct sun4i_usb_phy_cfg sun7i_a20_cfg = {
|
||||||
|
.num_phys = 3,
|
||||||
|
.type = sun4i_a10_phy,
|
||||||
|
.disc_thresh = 2,
|
||||||
|
.phyctl_offset = REG_PHYCTL_A10,
|
||||||
|
.enable_pmu_unk1 = false,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct sun4i_usb_phy_cfg sun8i_a83t_cfg = {
|
static const struct sun4i_usb_phy_cfg sun8i_a83t_cfg = {
|
||||||
.num_phys = 3,
|
.num_phys = 3,
|
||||||
.type = sun8i_a83t_phy,
|
.type = sun8i_a83t_phy,
|
||||||
@ -494,6 +519,9 @@ static const struct sun4i_usb_phy_cfg sun50i_a64_cfg = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const struct udevice_id sun4i_usb_phy_ids[] = {
|
static const struct udevice_id sun4i_usb_phy_ids[] = {
|
||||||
|
{ .compatible = "allwinner,sun4i-a10-usb-phy", .data = (ulong)&sun4i_a10_cfg },
|
||||||
|
{ .compatible = "allwinner,sun5i-a13-usb-phy", .data = (ulong)&sun5i_a13_cfg },
|
||||||
|
{ .compatible = "allwinner,sun7i-a20-usb-phy", .data = (ulong)&sun7i_a20_cfg },
|
||||||
{ .compatible = "allwinner,sun8i-a83t-usb-phy", .data = (ulong)&sun8i_a83t_cfg },
|
{ .compatible = "allwinner,sun8i-a83t-usb-phy", .data = (ulong)&sun8i_a83t_cfg },
|
||||||
{ .compatible = "allwinner,sun8i-h3-usb-phy", .data = (ulong)&sun8i_h3_cfg },
|
{ .compatible = "allwinner,sun8i-h3-usb-phy", .data = (ulong)&sun8i_h3_cfg },
|
||||||
{ .compatible = "allwinner,sun8i-v3s-usb-phy", .data = (ulong)&sun8i_v3s_cfg },
|
{ .compatible = "allwinner,sun8i-v3s-usb-phy", .data = (ulong)&sun8i_v3s_cfg },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user