1875a92b3SAndy Shevchenko // SPDX-License-Identifier: GPL-2.0 275bb10b4SMika Westerberg /* 375bb10b4SMika Westerberg * Intel Denverton SoC pinctrl/GPIO driver 475bb10b4SMika Westerberg * 575bb10b4SMika Westerberg * Copyright (C) 2017, Intel Corporation 675bb10b4SMika Westerberg * Author: Mika Westerberg <mika.westerberg@linux.intel.com> 775bb10b4SMika Westerberg */ 875bb10b4SMika Westerberg 9c73e7ad6SAndy Shevchenko #include <linux/mod_devicetable.h> 1075bb10b4SMika Westerberg #include <linux/module.h> 1175bb10b4SMika Westerberg #include <linux/platform_device.h> 12677506eeSAndy Shevchenko 1375bb10b4SMika Westerberg #include <linux/pinctrl/pinctrl.h> 1475bb10b4SMika Westerberg 1575bb10b4SMika Westerberg #include "pinctrl-intel.h" 1675bb10b4SMika Westerberg 1775bb10b4SMika Westerberg #define DNV_PAD_OWN 0x020 1875bb10b4SMika Westerberg #define DNV_HOSTSW_OWN 0x0C0 1975bb10b4SMika Westerberg #define DNV_PADCFGLOCK 0x090 2075bb10b4SMika Westerberg #define DNV_GPI_IE 0x120 2175bb10b4SMika Westerberg 2275bb10b4SMika Westerberg #define DNV_GPP(n, s, e) \ 2375bb10b4SMika Westerberg { \ 2475bb10b4SMika Westerberg .reg_num = (n), \ 2575bb10b4SMika Westerberg .base = (s), \ 2675bb10b4SMika Westerberg .size = ((e) - (s) + 1), \ 2775bb10b4SMika Westerberg } 2875bb10b4SMika Westerberg 2975bb10b4SMika Westerberg #define DNV_COMMUNITY(b, s, e, g) \ 3075bb10b4SMika Westerberg { \ 3175bb10b4SMika Westerberg .barno = (b), \ 3275bb10b4SMika Westerberg .padown_offset = DNV_PAD_OWN, \ 3375bb10b4SMika Westerberg .padcfglock_offset = DNV_PADCFGLOCK, \ 3475bb10b4SMika Westerberg .hostown_offset = DNV_HOSTSW_OWN, \ 3575bb10b4SMika Westerberg .ie_offset = DNV_GPI_IE, \ 3675bb10b4SMika Westerberg .pin_base = (s), \ 3775bb10b4SMika Westerberg .npins = ((e) - (s) + 1), \ 3875bb10b4SMika Westerberg .gpps = (g), \ 3975bb10b4SMika Westerberg .ngpps = ARRAY_SIZE(g), \ 4075bb10b4SMika Westerberg } 4175bb10b4SMika Westerberg 4275bb10b4SMika Westerberg static const struct pinctrl_pin_desc dnv_pins[] = { 4375bb10b4SMika Westerberg /* North ALL */ 4475bb10b4SMika Westerberg PINCTRL_PIN(0, "GBE0_SDP0"), 4575bb10b4SMika Westerberg PINCTRL_PIN(1, "GBE1_SDP0"), 4675bb10b4SMika Westerberg PINCTRL_PIN(2, "GBE0_SDP1"), 4775bb10b4SMika Westerberg PINCTRL_PIN(3, "GBE1_SDP1"), 4875bb10b4SMika Westerberg PINCTRL_PIN(4, "GBE0_SDP2"), 4975bb10b4SMika Westerberg PINCTRL_PIN(5, "GBE1_SDP2"), 5075bb10b4SMika Westerberg PINCTRL_PIN(6, "GBE0_SDP3"), 5175bb10b4SMika Westerberg PINCTRL_PIN(7, "GBE1_SDP3"), 5275bb10b4SMika Westerberg PINCTRL_PIN(8, "GBE2_LED0"), 5375bb10b4SMika Westerberg PINCTRL_PIN(9, "GBE2_LED1"), 5475bb10b4SMika Westerberg PINCTRL_PIN(10, "GBE0_I2C_CLK"), 5575bb10b4SMika Westerberg PINCTRL_PIN(11, "GBE0_I2C_DATA"), 5675bb10b4SMika Westerberg PINCTRL_PIN(12, "GBE1_I2C_CLK"), 5775bb10b4SMika Westerberg PINCTRL_PIN(13, "GBE1_I2C_DATA"), 5875bb10b4SMika Westerberg PINCTRL_PIN(14, "NCSI_RXD0"), 5975bb10b4SMika Westerberg PINCTRL_PIN(15, "NCSI_CLK_IN"), 6075bb10b4SMika Westerberg PINCTRL_PIN(16, "NCSI_RXD1"), 6175bb10b4SMika Westerberg PINCTRL_PIN(17, "NCSI_CRS_DV"), 6275bb10b4SMika Westerberg PINCTRL_PIN(18, "NCSI_ARB_IN"), 6375bb10b4SMika Westerberg PINCTRL_PIN(19, "NCSI_TX_EN"), 6475bb10b4SMika Westerberg PINCTRL_PIN(20, "NCSI_TXD0"), 6575bb10b4SMika Westerberg PINCTRL_PIN(21, "NCSI_TXD1"), 6675bb10b4SMika Westerberg PINCTRL_PIN(22, "NCSI_ARB_OUT"), 6775bb10b4SMika Westerberg PINCTRL_PIN(23, "GBE0_LED0"), 6875bb10b4SMika Westerberg PINCTRL_PIN(24, "GBE0_LED1"), 6975bb10b4SMika Westerberg PINCTRL_PIN(25, "GBE1_LED0"), 7075bb10b4SMika Westerberg PINCTRL_PIN(26, "GBE1_LED1"), 7175bb10b4SMika Westerberg PINCTRL_PIN(27, "GPIO_0"), 7275bb10b4SMika Westerberg PINCTRL_PIN(28, "PCIE_CLKREQ0_N"), 7375bb10b4SMika Westerberg PINCTRL_PIN(29, "PCIE_CLKREQ1_N"), 7475bb10b4SMika Westerberg PINCTRL_PIN(30, "PCIE_CLKREQ2_N"), 7575bb10b4SMika Westerberg PINCTRL_PIN(31, "PCIE_CLKREQ3_N"), 7675bb10b4SMika Westerberg PINCTRL_PIN(32, "PCIE_CLKREQ4_N"), 7775bb10b4SMika Westerberg PINCTRL_PIN(33, "GPIO_1"), 7875bb10b4SMika Westerberg PINCTRL_PIN(34, "GPIO_2"), 7975bb10b4SMika Westerberg PINCTRL_PIN(35, "SVID_ALERT_N"), 8075bb10b4SMika Westerberg PINCTRL_PIN(36, "SVID_DATA"), 8175bb10b4SMika Westerberg PINCTRL_PIN(37, "SVID_CLK"), 8275bb10b4SMika Westerberg PINCTRL_PIN(38, "THERMTRIP_N"), 8375bb10b4SMika Westerberg PINCTRL_PIN(39, "PROCHOT_N"), 8475bb10b4SMika Westerberg PINCTRL_PIN(40, "MEMHOT_N"), 8575bb10b4SMika Westerberg /* South DFX */ 8675bb10b4SMika Westerberg PINCTRL_PIN(41, "DFX_PORT_CLK0"), 8775bb10b4SMika Westerberg PINCTRL_PIN(42, "DFX_PORT_CLK1"), 8875bb10b4SMika Westerberg PINCTRL_PIN(43, "DFX_PORT0"), 8975bb10b4SMika Westerberg PINCTRL_PIN(44, "DFX_PORT1"), 9075bb10b4SMika Westerberg PINCTRL_PIN(45, "DFX_PORT2"), 9175bb10b4SMika Westerberg PINCTRL_PIN(46, "DFX_PORT3"), 9275bb10b4SMika Westerberg PINCTRL_PIN(47, "DFX_PORT4"), 9375bb10b4SMika Westerberg PINCTRL_PIN(48, "DFX_PORT5"), 9475bb10b4SMika Westerberg PINCTRL_PIN(49, "DFX_PORT6"), 9575bb10b4SMika Westerberg PINCTRL_PIN(50, "DFX_PORT7"), 9675bb10b4SMika Westerberg PINCTRL_PIN(51, "DFX_PORT8"), 9775bb10b4SMika Westerberg PINCTRL_PIN(52, "DFX_PORT9"), 9875bb10b4SMika Westerberg PINCTRL_PIN(53, "DFX_PORT10"), 9975bb10b4SMika Westerberg PINCTRL_PIN(54, "DFX_PORT11"), 10075bb10b4SMika Westerberg PINCTRL_PIN(55, "DFX_PORT12"), 10175bb10b4SMika Westerberg PINCTRL_PIN(56, "DFX_PORT13"), 10275bb10b4SMika Westerberg PINCTRL_PIN(57, "DFX_PORT14"), 10375bb10b4SMika Westerberg PINCTRL_PIN(58, "DFX_PORT15"), 10475bb10b4SMika Westerberg /* South GPP0 */ 10575bb10b4SMika Westerberg PINCTRL_PIN(59, "GPIO_12"), 10675bb10b4SMika Westerberg PINCTRL_PIN(60, "SMB5_GBE_ALRT_N"), 10775bb10b4SMika Westerberg PINCTRL_PIN(61, "PCIE_CLKREQ5_N"), 10875bb10b4SMika Westerberg PINCTRL_PIN(62, "PCIE_CLKREQ6_N"), 10975bb10b4SMika Westerberg PINCTRL_PIN(63, "PCIE_CLKREQ7_N"), 11075bb10b4SMika Westerberg PINCTRL_PIN(64, "UART0_RXD"), 11175bb10b4SMika Westerberg PINCTRL_PIN(65, "UART0_TXD"), 11275bb10b4SMika Westerberg PINCTRL_PIN(66, "SMB5_GBE_CLK"), 11375bb10b4SMika Westerberg PINCTRL_PIN(67, "SMB5_GBE_DATA"), 11475bb10b4SMika Westerberg PINCTRL_PIN(68, "ERROR2_N"), 11575bb10b4SMika Westerberg PINCTRL_PIN(69, "ERROR1_N"), 11675bb10b4SMika Westerberg PINCTRL_PIN(70, "ERROR0_N"), 11775bb10b4SMika Westerberg PINCTRL_PIN(71, "IERR_N"), 11875bb10b4SMika Westerberg PINCTRL_PIN(72, "MCERR_N"), 11975bb10b4SMika Westerberg PINCTRL_PIN(73, "SMB0_LEG_CLK"), 12075bb10b4SMika Westerberg PINCTRL_PIN(74, "SMB0_LEG_DATA"), 12175bb10b4SMika Westerberg PINCTRL_PIN(75, "SMB0_LEG_ALRT_N"), 12275bb10b4SMika Westerberg PINCTRL_PIN(76, "SMB1_HOST_DATA"), 12375bb10b4SMika Westerberg PINCTRL_PIN(77, "SMB1_HOST_CLK"), 12475bb10b4SMika Westerberg PINCTRL_PIN(78, "SMB2_PECI_DATA"), 12575bb10b4SMika Westerberg PINCTRL_PIN(79, "SMB2_PECI_CLK"), 12675bb10b4SMika Westerberg PINCTRL_PIN(80, "SMB4_CSME0_DATA"), 12775bb10b4SMika Westerberg PINCTRL_PIN(81, "SMB4_CSME0_CLK"), 12875bb10b4SMika Westerberg PINCTRL_PIN(82, "SMB4_CSME0_ALRT_N"), 12975bb10b4SMika Westerberg PINCTRL_PIN(83, "USB_OC0_N"), 13075bb10b4SMika Westerberg PINCTRL_PIN(84, "FLEX_CLK_SE0"), 13175bb10b4SMika Westerberg PINCTRL_PIN(85, "FLEX_CLK_SE1"), 13275bb10b4SMika Westerberg PINCTRL_PIN(86, "GPIO_4"), 13375bb10b4SMika Westerberg PINCTRL_PIN(87, "GPIO_5"), 13475bb10b4SMika Westerberg PINCTRL_PIN(88, "GPIO_6"), 13575bb10b4SMika Westerberg PINCTRL_PIN(89, "GPIO_7"), 13675bb10b4SMika Westerberg PINCTRL_PIN(90, "SATA0_LED_N"), 13775bb10b4SMika Westerberg PINCTRL_PIN(91, "SATA1_LED_N"), 13875bb10b4SMika Westerberg PINCTRL_PIN(92, "SATA_PDETECT0"), 13975bb10b4SMika Westerberg PINCTRL_PIN(93, "SATA_PDETECT1"), 14075bb10b4SMika Westerberg PINCTRL_PIN(94, "SATA0_SDOUT"), 14175bb10b4SMika Westerberg PINCTRL_PIN(95, "SATA1_SDOUT"), 14275bb10b4SMika Westerberg PINCTRL_PIN(96, "UART1_RXD"), 14375bb10b4SMika Westerberg PINCTRL_PIN(97, "UART1_TXD"), 14475bb10b4SMika Westerberg PINCTRL_PIN(98, "GPIO_8"), 14575bb10b4SMika Westerberg PINCTRL_PIN(99, "GPIO_9"), 14675bb10b4SMika Westerberg PINCTRL_PIN(100, "TCK"), 14775bb10b4SMika Westerberg PINCTRL_PIN(101, "TRST_N"), 14875bb10b4SMika Westerberg PINCTRL_PIN(102, "TMS"), 14975bb10b4SMika Westerberg PINCTRL_PIN(103, "TDI"), 15075bb10b4SMika Westerberg PINCTRL_PIN(104, "TDO"), 15175bb10b4SMika Westerberg PINCTRL_PIN(105, "CX_PRDY_N"), 15275bb10b4SMika Westerberg PINCTRL_PIN(106, "CX_PREQ_N"), 15375bb10b4SMika Westerberg PINCTRL_PIN(107, "CTBTRIGINOUT"), 15475bb10b4SMika Westerberg PINCTRL_PIN(108, "CTBTRIGOUT"), 15575bb10b4SMika Westerberg PINCTRL_PIN(109, "DFX_SPARE2"), 15675bb10b4SMika Westerberg PINCTRL_PIN(110, "DFX_SPARE3"), 15775bb10b4SMika Westerberg PINCTRL_PIN(111, "DFX_SPARE4"), 15875bb10b4SMika Westerberg /* South GPP1 */ 15975bb10b4SMika Westerberg PINCTRL_PIN(112, "SUSPWRDNACK"), 16075bb10b4SMika Westerberg PINCTRL_PIN(113, "PMU_SUSCLK"), 16175bb10b4SMika Westerberg PINCTRL_PIN(114, "ADR_TRIGGER"), 16275bb10b4SMika Westerberg PINCTRL_PIN(115, "PMU_SLP_S45_N"), 16375bb10b4SMika Westerberg PINCTRL_PIN(116, "PMU_SLP_S3_N"), 16475bb10b4SMika Westerberg PINCTRL_PIN(117, "PMU_WAKE_N"), 16575bb10b4SMika Westerberg PINCTRL_PIN(118, "PMU_PWRBTN_N"), 16675bb10b4SMika Westerberg PINCTRL_PIN(119, "PMU_RESETBUTTON_N"), 16775bb10b4SMika Westerberg PINCTRL_PIN(120, "PMU_PLTRST_N"), 16875bb10b4SMika Westerberg PINCTRL_PIN(121, "SUS_STAT_N"), 16975bb10b4SMika Westerberg PINCTRL_PIN(122, "SLP_S0IX_N"), 17075bb10b4SMika Westerberg PINCTRL_PIN(123, "SPI_CS0_N"), 17175bb10b4SMika Westerberg PINCTRL_PIN(124, "SPI_CS1_N"), 17275bb10b4SMika Westerberg PINCTRL_PIN(125, "SPI_MOSI_IO0"), 17375bb10b4SMika Westerberg PINCTRL_PIN(126, "SPI_MISO_IO1"), 17475bb10b4SMika Westerberg PINCTRL_PIN(127, "SPI_IO2"), 17575bb10b4SMika Westerberg PINCTRL_PIN(128, "SPI_IO3"), 17675bb10b4SMika Westerberg PINCTRL_PIN(129, "SPI_CLK"), 17775bb10b4SMika Westerberg PINCTRL_PIN(130, "SPI_CLK_LOOPBK"), 17875bb10b4SMika Westerberg PINCTRL_PIN(131, "ESPI_IO0"), 17975bb10b4SMika Westerberg PINCTRL_PIN(132, "ESPI_IO1"), 18075bb10b4SMika Westerberg PINCTRL_PIN(133, "ESPI_IO2"), 18175bb10b4SMika Westerberg PINCTRL_PIN(134, "ESPI_IO3"), 18275bb10b4SMika Westerberg PINCTRL_PIN(135, "ESPI_CS0_N"), 18375bb10b4SMika Westerberg PINCTRL_PIN(136, "ESPI_CLK"), 18475bb10b4SMika Westerberg PINCTRL_PIN(137, "ESPI_RST_N"), 18575bb10b4SMika Westerberg PINCTRL_PIN(138, "ESPI_ALRT0_N"), 18675bb10b4SMika Westerberg PINCTRL_PIN(139, "GPIO_10"), 18775bb10b4SMika Westerberg PINCTRL_PIN(140, "GPIO_11"), 18875bb10b4SMika Westerberg PINCTRL_PIN(141, "ESPI_CLK_LOOPBK"), 18975bb10b4SMika Westerberg PINCTRL_PIN(142, "EMMC_CMD"), 19075bb10b4SMika Westerberg PINCTRL_PIN(143, "EMMC_STROBE"), 19175bb10b4SMika Westerberg PINCTRL_PIN(144, "EMMC_CLK"), 19275bb10b4SMika Westerberg PINCTRL_PIN(145, "EMMC_D0"), 19375bb10b4SMika Westerberg PINCTRL_PIN(146, "EMMC_D1"), 19475bb10b4SMika Westerberg PINCTRL_PIN(147, "EMMC_D2"), 19575bb10b4SMika Westerberg PINCTRL_PIN(148, "EMMC_D3"), 19675bb10b4SMika Westerberg PINCTRL_PIN(149, "EMMC_D4"), 19775bb10b4SMika Westerberg PINCTRL_PIN(150, "EMMC_D5"), 19875bb10b4SMika Westerberg PINCTRL_PIN(151, "EMMC_D6"), 19975bb10b4SMika Westerberg PINCTRL_PIN(152, "EMMC_D7"), 20075bb10b4SMika Westerberg PINCTRL_PIN(153, "GPIO_3"), 20175bb10b4SMika Westerberg }; 20275bb10b4SMika Westerberg 20375bb10b4SMika Westerberg static const unsigned int dnv_uart0_pins[] = { 60, 61, 64, 65 }; 20475bb10b4SMika Westerberg static const unsigned int dnv_uart0_modes[] = { 2, 3, 1, 1 }; 20575bb10b4SMika Westerberg static const unsigned int dnv_uart1_pins[] = { 94, 95, 96, 97 }; 20675bb10b4SMika Westerberg static const unsigned int dnv_uart2_pins[] = { 60, 61, 62, 63 }; 2074bd6683dSAndy Shevchenko static const unsigned int dnv_uart2_modes[] = { 1, 2, 2, 2 }; 20875bb10b4SMika Westerberg static const unsigned int dnv_emmc_pins[] = { 20975bb10b4SMika Westerberg 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 21075bb10b4SMika Westerberg }; 21175bb10b4SMika Westerberg 21275bb10b4SMika Westerberg static const struct intel_pingroup dnv_groups[] = { 21375bb10b4SMika Westerberg PIN_GROUP("uart0_grp", dnv_uart0_pins, dnv_uart0_modes), 21475bb10b4SMika Westerberg PIN_GROUP("uart1_grp", dnv_uart1_pins, 1), 21575bb10b4SMika Westerberg PIN_GROUP("uart2_grp", dnv_uart2_pins, dnv_uart2_modes), 21675bb10b4SMika Westerberg PIN_GROUP("emmc_grp", dnv_emmc_pins, 1), 21775bb10b4SMika Westerberg }; 21875bb10b4SMika Westerberg 21975bb10b4SMika Westerberg static const char * const dnv_uart0_groups[] = { "uart0_grp" }; 22075bb10b4SMika Westerberg static const char * const dnv_uart1_groups[] = { "uart1_grp" }; 22175bb10b4SMika Westerberg static const char * const dnv_uart2_groups[] = { "uart2_grp" }; 22275bb10b4SMika Westerberg static const char * const dnv_emmc_groups[] = { "emmc_grp" }; 22375bb10b4SMika Westerberg 22475bb10b4SMika Westerberg static const struct intel_function dnv_functions[] = { 22575bb10b4SMika Westerberg FUNCTION("uart0", dnv_uart0_groups), 22675bb10b4SMika Westerberg FUNCTION("uart1", dnv_uart1_groups), 22775bb10b4SMika Westerberg FUNCTION("uart2", dnv_uart2_groups), 22875bb10b4SMika Westerberg FUNCTION("emmc", dnv_emmc_groups), 22975bb10b4SMika Westerberg }; 23075bb10b4SMika Westerberg 23175bb10b4SMika Westerberg static const struct intel_padgroup dnv_north_gpps[] = { 23275bb10b4SMika Westerberg DNV_GPP(0, 0, 31), /* North ALL_0 */ 23375bb10b4SMika Westerberg DNV_GPP(1, 32, 40), /* North ALL_1 */ 23475bb10b4SMika Westerberg }; 23575bb10b4SMika Westerberg 23675bb10b4SMika Westerberg static const struct intel_padgroup dnv_south_gpps[] = { 23775bb10b4SMika Westerberg DNV_GPP(0, 41, 58), /* South DFX */ 23875bb10b4SMika Westerberg DNV_GPP(1, 59, 90), /* South GPP0_0 */ 23975bb10b4SMika Westerberg DNV_GPP(2, 91, 111), /* South GPP0_1 */ 24075bb10b4SMika Westerberg DNV_GPP(3, 112, 143), /* South GPP1_0 */ 24175bb10b4SMika Westerberg DNV_GPP(4, 144, 153), /* South GPP1_1 */ 24275bb10b4SMika Westerberg }; 24375bb10b4SMika Westerberg 24475bb10b4SMika Westerberg static const struct intel_community dnv_communities[] = { 24575bb10b4SMika Westerberg DNV_COMMUNITY(0, 0, 40, dnv_north_gpps), 24675bb10b4SMika Westerberg DNV_COMMUNITY(1, 41, 153, dnv_south_gpps), 24775bb10b4SMika Westerberg }; 24875bb10b4SMika Westerberg 24975bb10b4SMika Westerberg static const struct intel_pinctrl_soc_data dnv_soc_data = { 25075bb10b4SMika Westerberg .pins = dnv_pins, 25175bb10b4SMika Westerberg .npins = ARRAY_SIZE(dnv_pins), 25275bb10b4SMika Westerberg .groups = dnv_groups, 25375bb10b4SMika Westerberg .ngroups = ARRAY_SIZE(dnv_groups), 25475bb10b4SMika Westerberg .functions = dnv_functions, 25575bb10b4SMika Westerberg .nfunctions = ARRAY_SIZE(dnv_functions), 25675bb10b4SMika Westerberg .communities = dnv_communities, 25775bb10b4SMika Westerberg .ncommunities = ARRAY_SIZE(dnv_communities), 25875bb10b4SMika Westerberg }; 25975bb10b4SMika Westerberg 260c804d8aeSAndy Shevchenko static INTEL_PINCTRL_PM_OPS(dnv_pinctrl_pm_ops); 26175bb10b4SMika Westerberg 26275bb10b4SMika Westerberg static const struct acpi_device_id dnv_pinctrl_acpi_match[] = { 263185d33c2SAndy Shevchenko { "INTC3000", (kernel_ulong_t)&dnv_soc_data }, 26475bb10b4SMika Westerberg { } 26575bb10b4SMika Westerberg }; 26675bb10b4SMika Westerberg MODULE_DEVICE_TABLE(acpi, dnv_pinctrl_acpi_match); 26775bb10b4SMika Westerberg 26875bb10b4SMika Westerberg static struct platform_driver dnv_pinctrl_driver = { 269185d33c2SAndy Shevchenko .probe = intel_pinctrl_probe_by_hid, 27075bb10b4SMika Westerberg .driver = { 27175bb10b4SMika Westerberg .name = "denverton-pinctrl", 27275bb10b4SMika Westerberg .acpi_match_table = dnv_pinctrl_acpi_match, 27375bb10b4SMika Westerberg .pm = &dnv_pinctrl_pm_ops, 27475bb10b4SMika Westerberg }, 27575bb10b4SMika Westerberg }; 27675bb10b4SMika Westerberg 27775bb10b4SMika Westerberg static int __init dnv_pinctrl_init(void) 27875bb10b4SMika Westerberg { 27975bb10b4SMika Westerberg return platform_driver_register(&dnv_pinctrl_driver); 28075bb10b4SMika Westerberg } 28175bb10b4SMika Westerberg subsys_initcall(dnv_pinctrl_init); 28275bb10b4SMika Westerberg 28375bb10b4SMika Westerberg static void __exit dnv_pinctrl_exit(void) 28475bb10b4SMika Westerberg { 28575bb10b4SMika Westerberg platform_driver_unregister(&dnv_pinctrl_driver); 28675bb10b4SMika Westerberg } 28775bb10b4SMika Westerberg module_exit(dnv_pinctrl_exit); 28875bb10b4SMika Westerberg 28975bb10b4SMika Westerberg MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>"); 29075bb10b4SMika Westerberg MODULE_DESCRIPTION("Intel Denverton SoC pinctrl/GPIO driver"); 29175bb10b4SMika Westerberg MODULE_LICENSE("GPL v2"); 292