Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'imx-drivers-4.16' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into next/drivers

Pull "i.MX drivers update for 4.16" from Shawn Guo:
- Update i.MX GPC driver to support PCI power domain of i.MX6SX SoC.

* tag 'imx-drivers-4.16' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
soc: imx: gpc: Add i.MX6SX PCI power domain

+18 -1
+3
Documentation/devicetree/bindings/power/fsl,imx-gpc.txt
··· 9 9 - fsl,imx6q-gpc 10 10 - fsl,imx6qp-gpc 11 11 - fsl,imx6sl-gpc 12 + - fsl,imx6sx-gpc 12 13 - reg: should be register base and length as documented in the 13 14 datasheet 14 15 - interrupts: Should contain one interrupt specifier for the GPC interrupt ··· 30 29 PU_DOMAIN 1 31 30 The following additional DOMAIN_INDEX value is valid for i.MX6SL: 32 31 DISPLAY_DOMAIN 2 32 + The following additional DOMAIN_INDEX value is valid for i.MX6SX: 33 + PCI_DOMAIN 3 33 34 34 35 - #power-domain-cells: Should be 0 35 36
+15 -1
drivers/soc/imx/gpc.c
··· 273 273 }, 274 274 .reg_offs = 0x240, 275 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 279 287 struct imx_gpc_dt_data { ··· 304 296 .err009619_present = false, 305 297 }; 306 298 299 + static const struct imx_gpc_dt_data imx6sx_dt_data = { 300 + .num_domains = 4, 301 + .err009619_present = false, 302 + }; 303 + 307 304 static const struct of_device_id imx_gpc_dt_ids[] = { 308 305 { .compatible = "fsl,imx6q-gpc", .data = &imx6q_dt_data }, 309 306 { .compatible = "fsl,imx6qp-gpc", .data = &imx6qp_dt_data }, 310 307 { .compatible = "fsl,imx6sl-gpc", .data = &imx6sl_dt_data }, 308 + { .compatible = "fsl,imx6sx-gpc", .data = &imx6sx_dt_data }, 311 309 { } 312 310 }; 313 311