summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-12-14 21:24:57 -0500
committerShawn Guo <shawnguo@kernel.org>2017-12-26 03:26:46 -0500
commitcfabb7921ccbede2968e5049d433ba3d0e0950af (patch)
tree3a5f1c984550e698274e881b6cdb6129762a9222 /drivers/soc
parent50c4c4e268a2d7a3e58ebb698ac74da0de40ae36 (diff)
soc: imx: gpc: Add i.MX6SX PCI power domain
i.MX6SX has a PCI power domain in PGC. Add support for it. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Acked-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/imx/gpc.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c
index 47e7aa963dbb..53f7275d6cbd 100644
--- a/drivers/soc/imx/gpc.c
+++ b/drivers/soc/imx/gpc.c
@@ -273,7 +273,15 @@ static struct imx_pm_domain imx_gpc_domains[] = {
273 }, 273 },
274 .reg_offs = 0x240, 274 .reg_offs = 0x240,
275 .cntr_pdn_bit = 4, 275 .cntr_pdn_bit = 4,
276 } 276 }, {
277 .base = {
278 .name = "PCI",
279 .power_off = imx6_pm_domain_power_off,
280 .power_on = imx6_pm_domain_power_on,
281 },
282 .reg_offs = 0x200,
283 .cntr_pdn_bit = 6,
284 },
277}; 285};
278 286
279struct imx_gpc_dt_data { 287struct imx_gpc_dt_data {
@@ -296,10 +304,16 @@ static const struct imx_gpc_dt_data imx6sl_dt_data = {
296 .err009619_present = false, 304 .err009619_present = false,
297}; 305};
298 306
307static const struct imx_gpc_dt_data imx6sx_dt_data = {
308 .num_domains = 4,
309 .err009619_present = false,
310};
311
299static const struct of_device_id imx_gpc_dt_ids[] = { 312static const struct of_device_id imx_gpc_dt_ids[] = {
300 { .compatible = "fsl,imx6q-gpc", .data = &imx6q_dt_data }, 313 { .compatible = "fsl,imx6q-gpc", .data = &imx6q_dt_data },
301 { .compatible = "fsl,imx6qp-gpc", .data = &imx6qp_dt_data }, 314 { .compatible = "fsl,imx6qp-gpc", .data = &imx6qp_dt_data },
302 { .compatible = "fsl,imx6sl-gpc", .data = &imx6sl_dt_data }, 315 { .compatible = "fsl,imx6sl-gpc", .data = &imx6sl_dt_data },
316 { .compatible = "fsl,imx6sx-gpc", .data = &imx6sx_dt_data },
303 { } 317 { }
304}; 318};
305 319