Samsung soc drivers changes for v5.6 1. Convert to managed (devm_x()) versions, 2. Cleanups (Samsung and Exynos names). * tag 'samsung-drivers-5.6' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux: memory: samsung: Rename Exynos to lowercase soc: samsung: Rename Samsung and Exynos to lowercase memory: samsung: exynos5422-dmc: Convert to devm_platform_ioremap_resource soc: samsung: exynos-pmu: Convert to devm_platform_ioremap_resource
Unified · Split
| @@ -8,7 +8,7 @@ config SAMSUNG_MC · 7 unmodified lines | |||
| 8 | if SAMSUNG_MC | 8 | if SAMSUNG_MC |
| 9 | 9 | ||
| 10 | config EXYNOS5422_DMC | 10 | config EXYNOS5422_DMC |
| 11 | tristate "EXYNOS5422 Dynamic Memory Controller driver" | 11 | tristate "Exynos5422 Dynamic Memory Controller driver" |
| 12 | depends on ARCH_EXYNOS || (COMPILE_TEST && HAS_IOMEM) | 12 | depends on ARCH_EXYNOS || (COMPILE_TEST && HAS_IOMEM) |
| 13 | select DDR | 13 | select DDR |
| 14 | depends on DEVFREQ_GOV_SIMPLE_ONDEMAND | 14 | depends on DEVFREQ_GOV_SIMPLE_ONDEMAND |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | // Copyright (c) 2015 Samsung Electronics Co., Ltd. | 3 | // Copyright (c) 2015 Samsung Electronics Co., Ltd. |
| 4 | // http://www.samsung.com/ | 4 | // http://www.samsung.com/ |
| 5 | // | 5 | // |
| 6 | // EXYNOS - SROM Controller support | 6 | // Exynos - SROM Controller support |
| 7 | // Author: Pankaj Dubey <pankaj.dubey@samsung.com> | 7 | // Author: Pankaj Dubey <pankaj.dubey@samsung.com> |
| 8 | 8 | ||
| 9 | #include <linux/io.h> | 9 | #include <linux/io.h> |
| @@ -1374,7 +1374,6 @@ static int exynos5_dmc_probe(struct platform_device *pdev) · 1373 unmodified lines | |||
| 1374 | struct device *dev = &pdev->dev; | 1374 | struct device *dev = &pdev->dev; |
| 1375 | struct device_node *np = dev->of_node; | 1375 | struct device_node *np = dev->of_node; |
| 1376 | struct exynos5_dmc *dmc; | 1376 | struct exynos5_dmc *dmc; |
| 1377 | struct resource *res; | ||
| 1378 | int irq[2]; | 1377 | int irq[2]; |
| 1379 | 1378 | ||
| 1380 | dmc = devm_kzalloc(dev, sizeof(*dmc), GFP_KERNEL); | 1379 | dmc = devm_kzalloc(dev, sizeof(*dmc), GFP_KERNEL); |
| @@ -1386,13 +1385,11 @@ static int exynos5_dmc_probe(struct platform_device *pdev) · 5 unmodified lines | |||
| 1386 | dmc->dev = dev; | 1385 | dmc->dev = dev; |
| 1387 | platform_set_drvdata(pdev, dmc); | 1386 | platform_set_drvdata(pdev, dmc); |
| 1388 | 1387 | ||
| 1389 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1388 | dmc->base_drexi0 = devm_platform_ioremap_resource(pdev, 0); |
| 1390 | dmc->base_drexi0 = devm_ioremap_resource(dev, res); | ||
| 1391 | if (IS_ERR(dmc->base_drexi0)) | 1389 | if (IS_ERR(dmc->base_drexi0)) |
| 1392 | return PTR_ERR(dmc->base_drexi0); | 1390 | return PTR_ERR(dmc->base_drexi0); |
| 1393 | 1391 | ||
| 1394 | res = platform_get_resource(pdev, IORESOURCE_MEM, 1); | 1392 | dmc->base_drexi1 = devm_platform_ioremap_resource(pdev, 1); |
| 1395 | dmc->base_drexi1 = devm_ioremap_resource(dev, res); | ||
| 1396 | if (IS_ERR(dmc->base_drexi1)) | 1393 | if (IS_ERR(dmc->base_drexi1)) |
| 1397 | return PTR_ERR(dmc->base_drexi1); | 1394 | return PTR_ERR(dmc->base_drexi1); |
| 1398 | 1395 | ||
| @@ -1,6 +1,6 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # | 2 | # |
| 3 | # SAMSUNG SoC drivers | 3 | # Samsung SoC drivers |
| 4 | # | 4 | # |
| 5 | menuconfig SOC_SAMSUNG | 5 | menuconfig SOC_SAMSUNG |
| 6 | bool "Samsung SoC driver support" if COMPILE_TEST | 6 | bool "Samsung SoC driver support" if COMPILE_TEST |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | * Copyright (c) 2019 Samsung Electronics Co., Ltd. | 3 | * Copyright (c) 2019 Samsung Electronics Co., Ltd. |
| 4 | * http://www.samsung.com/ | 4 | * http://www.samsung.com/ |
| 5 | * | 5 | * |
| 6 | * EXYNOS - CHIP ID support | 6 | * Exynos - CHIP ID support |
| 7 | * Author: Pankaj Dubey <pankaj.dubey@samsung.com> | 7 | * Author: Pankaj Dubey <pankaj.dubey@samsung.com> |
| 8 | * Author: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 8 | * Author: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> |
| 9 | */ | 9 | */ |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | // Copyright (c) 2011-2014 Samsung Electronics Co., Ltd. | 3 | // Copyright (c) 2011-2014 Samsung Electronics Co., Ltd. |
| 4 | // http://www.samsung.com/ | 4 | // http://www.samsung.com/ |
| 5 | // | 5 | // |
| 6 | // EXYNOS - CPU PMU(Power Management Unit) support | 6 | // Exynos - CPU PMU(Power Management Unit) support |
| 7 | 7 | ||
| 8 | #include <linux/of.h> | 8 | #include <linux/of.h> |
| 9 | #include <linux/of_address.h> | 9 | #include <linux/of_address.h> |
| @@ -110,10 +110,8 @@ EXPORT_SYMBOL_GPL(exynos_get_pmu_regmap); · 100 unmodified lines | |||
| 110 | static int exynos_pmu_probe(struct platform_device *pdev) | 110 | static int exynos_pmu_probe(struct platform_device *pdev) |
| 111 | { | 111 | { |
| 112 | struct device *dev = &pdev->dev; | 112 | struct device *dev = &pdev->dev; |
| 113 | struct resource *res; | ||
| 114 | 113 | ||
| 115 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 114 | pmu_base_addr = devm_platform_ioremap_resource(pdev, 0); |
| 116 | pmu_base_addr = devm_ioremap_resource(dev, res); | ||
| 117 | if (IS_ERR(pmu_base_addr)) | 115 | if (IS_ERR(pmu_base_addr)) |
| 118 | return PTR_ERR(pmu_base_addr); | 116 | return PTR_ERR(pmu_base_addr); |
| 119 | 117 | ||
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | * Copyright (c) 2015 Samsung Electronics Co., Ltd. | 3 | * Copyright (c) 2015 Samsung Electronics Co., Ltd. |
| 4 | * http://www.samsung.com | 4 | * http://www.samsung.com |
| 5 | * | 5 | * |
| 6 | * Header for EXYNOS PMU Driver support | 6 | * Header for Exynos PMU Driver support |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #ifndef __EXYNOS_PMU_H | 9 | #ifndef __EXYNOS_PMU_H |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | // Copyright (c) 2011-2015 Samsung Electronics Co., Ltd. | 3 | // Copyright (c) 2011-2015 Samsung Electronics Co., Ltd. |
| 4 | // http://www.samsung.com/ | 4 | // http://www.samsung.com/ |
| 5 | // | 5 | // |
| 6 | // EXYNOS3250 - CPU PMU (Power Management Unit) support | 6 | // Exynos3250 - CPU PMU (Power Management Unit) support |
| 7 | 7 | ||
| 8 | #include <linux/soc/samsung/exynos-regs-pmu.h> | 8 | #include <linux/soc/samsung/exynos-regs-pmu.h> |
| 9 | #include <linux/soc/samsung/exynos-pmu.h> | 9 | #include <linux/soc/samsung/exynos-pmu.h> |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | // Copyright (c) 2011-2015 Samsung Electronics Co., Ltd. | 3 | // Copyright (c) 2011-2015 Samsung Electronics Co., Ltd. |
| 4 | // http://www.samsung.com/ | 4 | // http://www.samsung.com/ |
| 5 | // | 5 | // |
| 6 | // EXYNOS4 - CPU PMU(Power Management Unit) support | 6 | // Exynos4 - CPU PMU(Power Management Unit) support |
| 7 | 7 | ||
| 8 | #include <linux/soc/samsung/exynos-regs-pmu.h> | 8 | #include <linux/soc/samsung/exynos-regs-pmu.h> |
| 9 | #include <linux/soc/samsung/exynos-pmu.h> | 9 | #include <linux/soc/samsung/exynos-pmu.h> |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | // Copyright (c) 2011-2015 Samsung Electronics Co., Ltd. | 3 | // Copyright (c) 2011-2015 Samsung Electronics Co., Ltd. |
| 4 | // http://www.samsung.com/ | 4 | // http://www.samsung.com/ |
| 5 | // | 5 | // |
| 6 | // EXYNOS5250 - CPU PMU (Power Management Unit) support | 6 | // Exynos5250 - CPU PMU (Power Management Unit) support |
| 7 | 7 | ||
| 8 | #include <linux/soc/samsung/exynos-regs-pmu.h> | 8 | #include <linux/soc/samsung/exynos-regs-pmu.h> |
| 9 | #include <linux/soc/samsung/exynos-pmu.h> | 9 | #include <linux/soc/samsung/exynos-pmu.h> |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | // Copyright (c) 2011-2015 Samsung Electronics Co., Ltd. | 3 | // Copyright (c) 2011-2015 Samsung Electronics Co., Ltd. |
| 4 | // http://www.samsung.com/ | 4 | // http://www.samsung.com/ |
| 5 | // | 5 | // |
| 6 | // EXYNOS5420 - CPU PMU (Power Management Unit) support | 6 | // Exynos5420 - CPU PMU (Power Management Unit) support |
| 7 | 7 | ||
| 8 | #include <linux/pm.h> | 8 | #include <linux/pm.h> |
| 9 | #include <linux/soc/samsung/exynos-regs-pmu.h> | 9 | #include <linux/soc/samsung/exynos-regs-pmu.h> |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | * Copyright (c) 2014 Samsung Electronics Co., Ltd. | 3 | * Copyright (c) 2014 Samsung Electronics Co., Ltd. |
| 4 | * http://www.samsung.com | 4 | * http://www.samsung.com |
| 5 | * | 5 | * |
| 6 | * Header for EXYNOS PMU Driver support | 6 | * Header for Exynos PMU Driver support |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #ifndef __LINUX_SOC_EXYNOS_PMU_H | 9 | #ifndef __LINUX_SOC_EXYNOS_PMU_H |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | * Copyright (c) 2010-2015 Samsung Electronics Co., Ltd. | 3 | * Copyright (c) 2010-2015 Samsung Electronics Co., Ltd. |
| 4 | * http://www.samsung.com | 4 | * http://www.samsung.com |
| 5 | * | 5 | * |
| 6 | * EXYNOS - Power management unit definition | 6 | * Exynos - Power management unit definition |
| 7 | * | 7 | * |
| 8 | * Notice: | 8 | * Notice: |
| 9 | * This is not a list of all Exynos Power Management Unit SFRs. | 9 | * This is not a list of all Exynos Power Management Unit SFRs. |
| @@ -185,7 +185,7 @@ · 175 unmodified lines | |||
| 185 | /* Only for S5Pv210 */ | 185 | /* Only for S5Pv210 */ |
| 186 | #define S5PV210_EINT_WAKEUP_MASK 0xC004 | 186 | #define S5PV210_EINT_WAKEUP_MASK 0xC004 |
| 187 | 187 | ||
| 188 | /* Only for EXYNOS4210 */ | 188 | /* Only for Exynos4210 */ |
| 189 | #define S5P_CMU_CLKSTOP_LCD1_LOWPWR 0x1154 | 189 | #define S5P_CMU_CLKSTOP_LCD1_LOWPWR 0x1154 |
| 190 | #define S5P_CMU_RESET_LCD1_LOWPWR 0x1174 | 190 | #define S5P_CMU_RESET_LCD1_LOWPWR 0x1174 |
| 191 | #define S5P_MODIMIF_MEM_LOWPWR 0x11C4 | 191 | #define S5P_MODIMIF_MEM_LOWPWR 0x11C4 |
| @@ -193,7 +193,7 @@ · 1 unmodified line | |||
| 193 | #define S5P_SATA_MEM_LOWPWR 0x11E4 | 193 | #define S5P_SATA_MEM_LOWPWR 0x11E4 |
| 194 | #define S5P_LCD1_LOWPWR 0x1394 | 194 | #define S5P_LCD1_LOWPWR 0x1394 |
| 195 | 195 | ||
| 196 | /* Only for EXYNOS4x12 */ | 196 | /* Only for Exynos4x12 */ |
| 197 | #define S5P_ISP_ARM_LOWPWR 0x1050 | 197 | #define S5P_ISP_ARM_LOWPWR 0x1050 |
| 198 | #define S5P_DIS_IRQ_ISP_ARM_LOCAL_LOWPWR 0x1054 | 198 | #define S5P_DIS_IRQ_ISP_ARM_LOCAL_LOWPWR 0x1054 |
| 199 | #define S5P_DIS_IRQ_ISP_ARM_CENTRAL_LOWPWR 0x1058 | 199 | #define S5P_DIS_IRQ_ISP_ARM_CENTRAL_LOWPWR 0x1058 |
| @@ -234,7 +234,7 @@ · 34 unmodified lines | |||
| 234 | #define S5P_SECSS_MEM_OPTION 0x2EC8 | 234 | #define S5P_SECSS_MEM_OPTION 0x2EC8 |
| 235 | #define S5P_ROTATOR_MEM_OPTION 0x2F48 | 235 | #define S5P_ROTATOR_MEM_OPTION 0x2F48 |
| 236 | 236 | ||
| 237 | /* Only for EXYNOS4412 */ | 237 | /* Only for Exynos4412 */ |
| 238 | #define S5P_ARM_CORE2_LOWPWR 0x1020 | 238 | #define S5P_ARM_CORE2_LOWPWR 0x1020 |
| 239 | #define S5P_DIS_IRQ_CORE2 0x1024 | 239 | #define S5P_DIS_IRQ_CORE2 0x1024 |
| 240 | #define S5P_DIS_IRQ_CENTRAL2 0x1028 | 240 | #define S5P_DIS_IRQ_CENTRAL2 0x1028 |
| @@ -242,7 +242,7 @@ · 1 unmodified line | |||
| 242 | #define S5P_DIS_IRQ_CORE3 0x1034 | 242 | #define S5P_DIS_IRQ_CORE3 0x1034 |
| 243 | #define S5P_DIS_IRQ_CENTRAL3 0x1038 | 243 | #define S5P_DIS_IRQ_CENTRAL3 0x1038 |
| 244 | 244 | ||
| 245 | /* Only for EXYNOS3XXX */ | 245 | /* Only for Exynos3XXX */ |
| 246 | #define EXYNOS3_ARM_CORE0_SYS_PWR_REG 0x1000 | 246 | #define EXYNOS3_ARM_CORE0_SYS_PWR_REG 0x1000 |
| 247 | #define EXYNOS3_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG 0x1004 | 247 | #define EXYNOS3_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG 0x1004 |
| 248 | #define EXYNOS3_DIS_IRQ_ARM_CORE0_CENTRAL_SYS_PWR_REG 0x1008 | 248 | #define EXYNOS3_DIS_IRQ_ARM_CORE0_CENTRAL_SYS_PWR_REG 0x1008 |
| @@ -347,7 +347,7 @@ · 98 unmodified lines | |||
| 347 | #define EXYNOS3_OPTION_USE_SC_FEEDBACK (1 << 1) | 347 | #define EXYNOS3_OPTION_USE_SC_FEEDBACK (1 << 1) |
| 348 | #define EXYNOS3_OPTION_SKIP_DEACTIVATE_ACEACP_IN_PWDN (1 << 7) | 348 | #define EXYNOS3_OPTION_SKIP_DEACTIVATE_ACEACP_IN_PWDN (1 << 7) |
| 349 | 349 | ||
| 350 | /* For EXYNOS5 */ | 350 | /* For Exynos5 */ |
| 351 | 351 | ||
| 352 | #define EXYNOS5_AUTO_WDTRESET_DISABLE 0x0408 | 352 | #define EXYNOS5_AUTO_WDTRESET_DISABLE 0x0408 |
| 353 | #define EXYNOS5_MASK_WDTRESET_REQUEST 0x040C | 353 | #define EXYNOS5_MASK_WDTRESET_REQUEST 0x040C |
| @@ -484,7 +484,7 @@ · 130 unmodified lines | |||
| 484 | 484 | ||
| 485 | #define EXYNOS5420_SWRESET_KFC_SEL 0x3 | 485 | #define EXYNOS5420_SWRESET_KFC_SEL 0x3 |
| 486 | 486 | ||
| 487 | /* Only for EXYNOS5420 */ | 487 | /* Only for Exynos5420 */ |
| 488 | #define EXYNOS5420_L2RSTDISABLE_VALUE BIT(3) | 488 | #define EXYNOS5420_L2RSTDISABLE_VALUE BIT(3) |
| 489 | 489 | ||
| 490 | #define EXYNOS5420_LPI_MASK 0x0004 | 490 | #define EXYNOS5420_LPI_MASK 0x0004 |
| @@ -645,7 +645,7 @@ · 154 unmodified lines | |||
| 645 | | EXYNOS5420_KFC_USE_STANDBY_WFI2 \ | 645 | | EXYNOS5420_KFC_USE_STANDBY_WFI2 \ |
| 646 | | EXYNOS5420_KFC_USE_STANDBY_WFI3) | 646 | | EXYNOS5420_KFC_USE_STANDBY_WFI3) |
| 647 | 647 | ||
| 648 | /* For EXYNOS5433 */ | 648 | /* For Exynos5433 */ |
| 649 | #define EXYNOS5433_EINT_WAKEUP_MASK (0x060C) | 649 | #define EXYNOS5433_EINT_WAKEUP_MASK (0x060C) |
| 650 | #define EXYNOS5433_USBHOST30_PHY_CONTROL (0x0728) | 650 | #define EXYNOS5433_USBHOST30_PHY_CONTROL (0x0728) |
| 651 | #define EXYNOS5433_PAD_RETENTION_AUD_OPTION (0x3028) | 651 | #define EXYNOS5433_PAD_RETENTION_AUD_OPTION (0x3028) |