xref: /aosp_15_r20/external/coreboot/src/soc/qualcomm/common/include/soc/usb/snps_usb_phy.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <device/mmio.h>
4 
5 struct usb_board_data {
6 	/*Register values going to override from the boardfile*/
7 	u8 parameter_override_x0;
8 	u8 parameter_override_x1;
9 	u8 parameter_override_x2;
10 	u8 parameter_override_x3;
11 };
12 
13 struct hs_usb_phy_reg {
14 	u8 rsvd1[60];
15 	u32 utmi_ctrl0;
16 	u32 utmi_ctrl1;
17 	u8 rsvd2[12];
18 	u32 utmi_ctrl5;
19 	u32 hs_phy_ctrl_common0;
20 	u32 hs_phy_ctrl_common1;
21 	u32 hs_phy_ctrl_common2;
22 	u32 hs_phy_ctrl1;
23 	u32 hs_phy_ctrl2;
24 	u8 rsvd3[4];
25 	u32 hs_phy_override_x0;
26 	u32 hs_phy_override_x1;
27 	u32 hs_phy_override_x2;
28 	u32 hs_phy_override_x3;
29 	u8 rsvd4[24];
30 	u32 cfg0;
31 	u8 rsvd5[8];
32 	u32 refclk_ctrl;
33 };
34 check_member(hs_usb_phy_reg, utmi_ctrl0, 0x03c);
35 check_member(hs_usb_phy_reg, utmi_ctrl1, 0x040);
36 check_member(hs_usb_phy_reg, utmi_ctrl5, 0x050);
37 check_member(hs_usb_phy_reg, hs_phy_ctrl2, 0x064);
38 check_member(hs_usb_phy_reg, hs_phy_override_x0, 0x06c);
39 check_member(hs_usb_phy_reg, hs_phy_override_x3, 0x078);
40 check_member(hs_usb_phy_reg, cfg0, 0x094);
41 check_member(hs_usb_phy_reg, refclk_ctrl, 0x0a0);
42