mirror of
https://xff.cz/git/u-boot/
synced 2025-09-28 05:51:17 +02:00
rockchip: usb: phy: add rk3066/rk3188 support
Add rk3066a/rk3188 support to rockchip_usb2_phy.c They don't have completely identical usb phy registers, so separate comapatible strings and data. Signed-off-by: Johan Jonker <jbx6244@gmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
@@ -42,6 +42,12 @@ struct rockchip_usb2_phy_dt_id {
|
|||||||
const void *data;
|
const void *data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct rockchip_usb2_phy_cfg rk3066a_pdata = {
|
||||||
|
.port_reset = {0x00, 12, 12, 0, 1},
|
||||||
|
.soft_con = {0x08, 2, 2, 0, 1},
|
||||||
|
.suspend = {0x08, 8, 3, (0x01 << 3), (0x2A << 3)},
|
||||||
|
};
|
||||||
|
|
||||||
static const struct rockchip_usb2_phy_cfg rk3288_pdata = {
|
static const struct rockchip_usb2_phy_cfg rk3288_pdata = {
|
||||||
.port_reset = {0x00, 12, 12, 0, 1},
|
.port_reset = {0x00, 12, 12, 0, 1},
|
||||||
.soft_con = {0x08, 2, 2, 0, 1},
|
.soft_con = {0x08, 2, 2, 0, 1},
|
||||||
@@ -49,6 +55,8 @@ static const struct rockchip_usb2_phy_cfg rk3288_pdata = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct rockchip_usb2_phy_dt_id rockchip_usb2_phy_dt_ids[] = {
|
static struct rockchip_usb2_phy_dt_id rockchip_usb2_phy_dt_ids[] = {
|
||||||
|
{ .compatible = "rockchip,rk3066a-usb-phy", .data = &rk3066a_pdata },
|
||||||
|
{ .compatible = "rockchip,rk3188-usb-phy", .data = &rk3288_pdata },
|
||||||
{ .compatible = "rockchip,rk3288-usb-phy", .data = &rk3288_pdata },
|
{ .compatible = "rockchip,rk3288-usb-phy", .data = &rk3288_pdata },
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user