Skip to content

Commit 8032210

Browse files
Hunter LauxKexyBiscuit
authored andcommitted
FROMLIST: usb: phy: tegra: Add 38.4MHz clock table entry
The Tegra210 uses a 38.4MHz OSC. This clock table entry is required to use the ehci phy on the Jetson TX1. The xtal_freq_count is actually a 12 bit value, so it should be a u16 instead of u8. Signed-off-by: Hunter Laux <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Kexy Biscuit <[email protected]>
1 parent b3e56f3 commit 8032210

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

drivers/usb/phy/phy-tegra-usb.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ struct tegra_xtal_freq {
174174
u8 enable_delay;
175175
u8 stable_count;
176176
u8 active_delay;
177-
u8 xtal_freq_count;
177+
u16 xtal_freq_count;
178178
u16 debounce;
179179
};
180180

@@ -211,6 +211,14 @@ static const struct tegra_xtal_freq tegra_freq_table[] = {
211211
.xtal_freq_count = 0xFE,
212212
.debounce = 0xFDE8,
213213
},
214+
{
215+
.freq = 38400000,
216+
.enable_delay = 0x00,
217+
.stable_count = 0x00,
218+
.active_delay = 0x18,
219+
.xtal_freq_count = 0x177,
220+
.debounce = 0xBB80,
221+
},
214222
};
215223

216224
static inline struct tegra_usb_phy *to_tegra_usb_phy(struct usb_phy *u_phy)

0 commit comments

Comments
 (0)