Home
last modified time | relevance | path

Searched refs:padctl (Results 1 – 13 of 13) sorted by relevance

/external/u-boot/arch/arm/mach-tegra/tegra124/
Dxusb-padctl.c108 static int tegra_xusb_padctl_enable(struct tegra_xusb_padctl *padctl) in tegra_xusb_padctl_enable() argument
112 if (padctl->enable++ > 0) in tegra_xusb_padctl_enable()
115 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
117 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
121 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
123 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
127 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
129 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
134 static int tegra_xusb_padctl_disable(struct tegra_xusb_padctl *padctl) in tegra_xusb_padctl_disable() argument
138 if (padctl->enable == 0) { in tegra_xusb_padctl_disable()
[all …]
DMakefile14 obj-y += xusb-padctl.o
15 obj-y += ../xusb-padctl-common.o
/external/u-boot/arch/arm/mach-tegra/tegra210/
Dxusb-padctl.c96 static int tegra_xusb_padctl_enable(struct tegra_xusb_padctl *padctl) in tegra_xusb_padctl_enable() argument
100 if (padctl->enable++ > 0) in tegra_xusb_padctl_enable()
103 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
105 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
109 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
111 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
115 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
117 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
122 static int tegra_xusb_padctl_disable(struct tegra_xusb_padctl *padctl) in tegra_xusb_padctl_disable() argument
126 if (padctl->enable == 0) { in tegra_xusb_padctl_disable()
[all …]
DMakefile11 obj-y += xusb-padctl.o
12 obj-y += ../xusb-padctl-common.o
/external/u-boot/arch/arm/mach-tegra/
Dxusb-padctl-common.c52 for (i = 0; i < padctl.socdata->num_phys; i++) { in tegra_xusb_phy_get()
53 phy = &padctl.socdata->phys[i]; in tegra_xusb_phy_get()
63 tegra_xusb_padctl_find_lane(struct tegra_xusb_padctl *padctl, const char *name) in tegra_xusb_padctl_find_lane() argument
67 for (i = 0; i < padctl->socdata->num_lanes; i++) in tegra_xusb_padctl_find_lane()
68 if (strcmp(name, padctl->socdata->lanes[i].name) == 0) in tegra_xusb_padctl_find_lane()
69 return &padctl->socdata->lanes[i]; in tegra_xusb_padctl_find_lane()
75 tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_group_parse_dt() argument
115 static int tegra_xusb_padctl_find_function(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_find_function() argument
120 for (i = 0; i < padctl->socdata->num_functions; i++) in tegra_xusb_padctl_find_function()
121 if (strcmp(name, padctl->socdata->functions[i]) == 0) in tegra_xusb_padctl_find_function()
[all …]
Dxusb-padctl-common.h39 struct tegra_xusb_padctl *padctl; member
85 extern struct tegra_xusb_padctl padctl;
87 static inline u32 padctl_readl(struct tegra_xusb_padctl *padctl, in padctl_readl() argument
90 return readl(padctl->regs.start + offset); in padctl_readl()
93 static inline void padctl_writel(struct tegra_xusb_padctl *padctl, in padctl_writel() argument
96 writel(value, padctl->regs.start + offset); in padctl_writel()
DMakefile22 obj-y += xusb-padctl-dummy.o
/external/u-boot/arch/arm/dts/
Dtegra124.dtsi53 phys = <&padctl TEGRA_XUSB_PADCTL_PCIE>;
624 phys = <&padctl TEGRA_XUSB_PADCTL_SATA>;
674 nvidia,xusb-padctl = <&padctl>;
679 padctl: padctl@7009f000 { label
680 compatible = "nvidia,tegra124-xusb-padctl";
683 reset-names = "padctl";
Dtegra210-p2371-2180.dts36 padctl@7009f000 {
Dtegra210.dtsi50 phys = <&padctl TEGRA_XUSB_PADCTL_PCIE>;
691 padctl: padctl@7009f000 { label
692 compatible = "nvidia,tegra210-xusb-padctl";
695 reset-names = "padctl";
Dtegra124-cei-tk1-som.dts279 padctl@7009f000 {
Dtegra124-jetson-tk1.dts278 padctl@7009f000 {
Dtegra124-apalis.dts1927 padctl@7009f000 {