summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/xusb-padctl-common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-07-25 08:29:59 -0600
committerSimon Glass <sjg@chromium.org>2017-07-28 12:02:47 -0600
commitbe7890927a0f9fd40e697ed857cba8c2de1d178e (patch)
tree86cb09017932d6313c75d8678d66b4f2a05d099f /arch/arm/mach-tegra/xusb-padctl-common.h
parent66de3eee7923d3eb4101ff2565afa48f4376a939 (diff)
dm: tegra: Convert USB setup to livetree
Adjust this code to support a live device tree. This should be implemented as a PHY driver but that is left as an exercise for the maintainer. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/xusb-padctl-common.h')
-rw-r--r--arch/arm/mach-tegra/xusb-padctl-common.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/xusb-padctl-common.h b/arch/arm/mach-tegra/xusb-padctl-common.h
index f44790a650..68365883c7 100644
--- a/arch/arm/mach-tegra/xusb-padctl-common.h
+++ b/arch/arm/mach-tegra/xusb-padctl-common.h
@@ -9,9 +9,11 @@
#include <common.h>
#include <fdtdec.h>
+#include <dm/ofnode.h>
#include <asm/io.h>
#include <asm/arch-tegra/xusb-padctl.h>
+#include <linux/ioport.h>
struct tegra_xusb_padctl_lane {
const char *name;
@@ -77,7 +79,7 @@ struct tegra_xusb_padctl_config {
struct tegra_xusb_padctl {
const struct tegra_xusb_padctl_soc *socdata;
struct tegra_xusb_padctl_config config;
- struct fdt_resource regs;
+ struct resource regs;
unsigned int enable;
};
@@ -95,7 +97,7 @@ static inline void padctl_writel(struct tegra_xusb_padctl *padctl,
writel(value, padctl->regs.start + offset);
}
-int tegra_xusb_process_nodes(const void *fdt, int nodes[], unsigned int count,
- const struct tegra_xusb_padctl_soc *socdata);
+int tegra_xusb_process_nodes(ofnode nodes[], unsigned int count,
+ const struct tegra_xusb_padctl_soc *socdata);
#endif