summaryrefslogtreecommitdiffstats
path: root/include/soc
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2018-12-12 16:28:24 -0500
committerOlof Johansson <olof@lixom.net>2018-12-12 16:28:24 -0500
commit4a598c7b3f00e30148a3cc2e314961328f8a277e (patch)
tree323eb27af0e088227e9afef378a814a00a82745c /include/soc
parent48ff08dd9aa9353ece8f5bebd217e824f1c6098c (diff)
parente3e403c218cd07b497127a29e604fc26a71e8558 (diff)
Merge tag 'tegra-for-4.21-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into next/drivers
soc/tegra: Changes for v4.21-rc1 These changes are mostly cleanups to the PMC driver, but they also add support for wake events on Tegra186 and Tegra194, which can be used to wake the system from sleep. With this and the corresponding device tree additions suspend/resume is finally working on these SoCs. * tag 'tegra-for-4.21-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux: soc/tegra: pmc: Add initial Tegra194 wake events soc/tegra: pmc: Add initial Tegra186 wake events soc/tegra: pmc: Add wake event support soc/tegra: pmc: Add Tegra194 support soc/tegra: pmc: Change to use DEFINE_SHOW_ATTRIBUTE macro soc/tegra: Don't leak device tree node reference soc/tegra: fuse: Remove duplicated function declaration soc/tegra: pmc: Drop locking from tegra_powergate_is_powered() soc/tegra: pmc: Add sysfs entries for reset info soc/tegra: pmc: Don't power-up XUSB power-domains Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/tegra/fuse.h1
-rw-r--r--include/soc/tegra/pmc.h21
2 files changed, 21 insertions, 1 deletions
diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h
index 9b6ea0c72117..8fb2f8a87339 100644
--- a/include/soc/tegra/fuse.h
+++ b/include/soc/tegra/fuse.h
@@ -60,7 +60,6 @@ struct tegra_sku_info {
60 60
61u32 tegra_read_straps(void); 61u32 tegra_read_straps(void);
62u32 tegra_read_ram_code(void); 62u32 tegra_read_ram_code(void);
63u32 tegra_read_chipid(void);
64int tegra_fuse_readl(unsigned long offset, u32 *value); 63int tegra_fuse_readl(unsigned long offset, u32 *value);
65 64
66extern struct tegra_sku_info tegra_sku_info; 65extern struct tegra_sku_info tegra_sku_info;
diff --git a/include/soc/tegra/pmc.h b/include/soc/tegra/pmc.h
index 562426812ab2..fd816f6aa9cc 100644
--- a/include/soc/tegra/pmc.h
+++ b/include/soc/tegra/pmc.h
@@ -90,6 +90,10 @@ enum tegra_io_pad {
90 TEGRA_IO_PAD_CSID, 90 TEGRA_IO_PAD_CSID,
91 TEGRA_IO_PAD_CSIE, 91 TEGRA_IO_PAD_CSIE,
92 TEGRA_IO_PAD_CSIF, 92 TEGRA_IO_PAD_CSIF,
93 TEGRA_IO_PAD_CSIG,
94 TEGRA_IO_PAD_CSIH,
95 TEGRA_IO_PAD_DAP3,
96 TEGRA_IO_PAD_DAP5,
93 TEGRA_IO_PAD_DBG, 97 TEGRA_IO_PAD_DBG,
94 TEGRA_IO_PAD_DEBUG_NONAO, 98 TEGRA_IO_PAD_DEBUG_NONAO,
95 TEGRA_IO_PAD_DMIC, 99 TEGRA_IO_PAD_DMIC,
@@ -102,10 +106,15 @@ enum tegra_io_pad {
102 TEGRA_IO_PAD_EDP, 106 TEGRA_IO_PAD_EDP,
103 TEGRA_IO_PAD_EMMC, 107 TEGRA_IO_PAD_EMMC,
104 TEGRA_IO_PAD_EMMC2, 108 TEGRA_IO_PAD_EMMC2,
109 TEGRA_IO_PAD_EQOS,
105 TEGRA_IO_PAD_GPIO, 110 TEGRA_IO_PAD_GPIO,
111 TEGRA_IO_PAD_GP_PWM2,
112 TEGRA_IO_PAD_GP_PWM3,
106 TEGRA_IO_PAD_HDMI, 113 TEGRA_IO_PAD_HDMI,
107 TEGRA_IO_PAD_HDMI_DP0, 114 TEGRA_IO_PAD_HDMI_DP0,
108 TEGRA_IO_PAD_HDMI_DP1, 115 TEGRA_IO_PAD_HDMI_DP1,
116 TEGRA_IO_PAD_HDMI_DP2,
117 TEGRA_IO_PAD_HDMI_DP3,
109 TEGRA_IO_PAD_HSIC, 118 TEGRA_IO_PAD_HSIC,
110 TEGRA_IO_PAD_HV, 119 TEGRA_IO_PAD_HV,
111 TEGRA_IO_PAD_LVDS, 120 TEGRA_IO_PAD_LVDS,
@@ -115,8 +124,14 @@ enum tegra_io_pad {
115 TEGRA_IO_PAD_PEX_CLK_BIAS, 124 TEGRA_IO_PAD_PEX_CLK_BIAS,
116 TEGRA_IO_PAD_PEX_CLK1, 125 TEGRA_IO_PAD_PEX_CLK1,
117 TEGRA_IO_PAD_PEX_CLK2, 126 TEGRA_IO_PAD_PEX_CLK2,
127 TEGRA_IO_PAD_PEX_CLK2_BIAS,
118 TEGRA_IO_PAD_PEX_CLK3, 128 TEGRA_IO_PAD_PEX_CLK3,
119 TEGRA_IO_PAD_PEX_CNTRL, 129 TEGRA_IO_PAD_PEX_CNTRL,
130 TEGRA_IO_PAD_PEX_CTL2,
131 TEGRA_IO_PAD_PEX_L0_RST_N,
132 TEGRA_IO_PAD_PEX_L1_RST_N,
133 TEGRA_IO_PAD_PEX_L5_RST_N,
134 TEGRA_IO_PAD_PWR_CTL,
120 TEGRA_IO_PAD_SDMMC1, 135 TEGRA_IO_PAD_SDMMC1,
121 TEGRA_IO_PAD_SDMMC1_HV, 136 TEGRA_IO_PAD_SDMMC1_HV,
122 TEGRA_IO_PAD_SDMMC2, 137 TEGRA_IO_PAD_SDMMC2,
@@ -124,10 +139,16 @@ enum tegra_io_pad {
124 TEGRA_IO_PAD_SDMMC3, 139 TEGRA_IO_PAD_SDMMC3,
125 TEGRA_IO_PAD_SDMMC3_HV, 140 TEGRA_IO_PAD_SDMMC3_HV,
126 TEGRA_IO_PAD_SDMMC4, 141 TEGRA_IO_PAD_SDMMC4,
142 TEGRA_IO_PAD_SOC_GPIO10,
143 TEGRA_IO_PAD_SOC_GPIO12,
144 TEGRA_IO_PAD_SOC_GPIO13,
145 TEGRA_IO_PAD_SOC_GPIO53,
127 TEGRA_IO_PAD_SPI, 146 TEGRA_IO_PAD_SPI,
128 TEGRA_IO_PAD_SPI_HV, 147 TEGRA_IO_PAD_SPI_HV,
129 TEGRA_IO_PAD_SYS_DDC, 148 TEGRA_IO_PAD_SYS_DDC,
130 TEGRA_IO_PAD_UART, 149 TEGRA_IO_PAD_UART,
150 TEGRA_IO_PAD_UART4,
151 TEGRA_IO_PAD_UART5,
131 TEGRA_IO_PAD_UFS, 152 TEGRA_IO_PAD_UFS,
132 TEGRA_IO_PAD_USB0, 153 TEGRA_IO_PAD_USB0,
133 TEGRA_IO_PAD_USB1, 154 TEGRA_IO_PAD_USB1,