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

Merge tag 'samsung-drivers-5.6' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into arm/drivers

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

Link: https://lore.kernel.org/r/20200110172334.4767-2-krzk@kernel.org
Signed-off-by: Olof Johansson <olof@lixom.net>

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