[PATCH v3 0/6] Introducing Exynos ChipId driver

From: y
Date: Sat May 10 2014 - 03:00:07 EST


From: Pankaj Dubey <pankaj.dubey@xxxxxxxxxxx>

This patch series attempts to get rid of soc_is_exynosXXXX macros
and eventually with the help of this series we can probably get
rid of CONFIG_SOC_EXYNOSXXXX in near future.
Each Exynos SoC has ChipID block which can give information about
SoC's product Id and revision number. Currently we have single
DT binding information for this as "samsung,exynos4210-chipid".
But Exynos4 and Exynos5 SoC series have one small difference in
chip Id, with resepect to product id bit-masks. So it means we
should have separate compatible string for these different series
of SoCs. So I have added second compatible string for handling
this difference.
This patch series is based on Kukjin Kim's for-next (3.14_rc1 tag)
and prepared on top of following patch series and it's dependent
patch series.

[1]: Map SYSRAM through generic SRAM bindings by Sachin Kamat.
http://www.spinics.net/lists/arm-kernel/msg327677.html
[2]: Exynos PMU cleanup and refactoring.
https://lkml.org/lkml/2014/4/30/44
[3]: Introduce drivers/soc and add QCOM GSBI driver.
https://lkml.org/lkml/2014/4/24/520

Revision 2 and it's discussion can be found here
- https://lkml.org/lkml/2014/5/6/100

Changes since v2:
- Reorganized patches as suggested by Tomasz Figa.
- Addressed review comments of Tomasz Figa in i2c-s3c2410.c file.

Changes since v1:
- Added patch to move i2c interrupt re-configuration code from exynos.c
to i2c driver, as suggested by Arnd.
- After above patch only user of SYS_I2C_CFG register is pm.c so moving
save/restore of this register also into i2c driver.
- Spiltted up exynos4 and exynos5 machine descriptors to get rid from
soc_is_exynos4/exynos5 kind of macros, as suggested by Arnd.
- Changed location of chipid driver to "drivers/soc".
- Added drivers/base/soc.c provided infrastructure to make SoC specific
information avaible to user space via sysfs entry, as suggested by Arnd.


Pankaj Dubey (6):
i2c: s3c2410: Handle i2c sys_cfg register in i2c driver
ARM: EXYNOS: Remove i2c sys configuration related code
ARM: EXYNOS: Remove soc_is_exynos4/5 from exynos.c
ARM: EXYNOS: Remove unused header inclusion from hotplug.c
soc: samsung: exynos-chipid: Add Exynos Chipid driver support
ARM: EXYNOS: Refactoring to remove soc_is_exynos macros from exynos

.../bindings/arm/samsung/exynos-chipid.txt | 21 +++
.../devicetree/bindings/arm/samsung/sysreg.txt | 1 +
arch/arm/Kconfig | 1 +
arch/arm/boot/dts/exynos4.dtsi | 2 +-
arch/arm/boot/dts/exynos5.dtsi | 7 +-
arch/arm/boot/dts/exynos5250.dtsi | 4 +
arch/arm/boot/dts/exynos5420.dtsi | 4 +
arch/arm/mach-exynos/exynos.c | 119 ++++----------
arch/arm/mach-exynos/hotplug.c | 2 -
arch/arm/mach-exynos/include/mach/map.h | 3 -
arch/arm/mach-exynos/platsmp.c | 11 +-
arch/arm/mach-exynos/pm.c | 36 ++---
arch/arm/mach-exynos/regs-sys.h | 22 ---
arch/arm/plat-samsung/include/plat/cpu.h | 60 -------
drivers/clk/samsung/clk-exynos4.c | 2 +-
drivers/cpufreq/exynos-cpufreq.c | 9 +-
drivers/cpufreq/exynos-cpufreq.h | 1 -
drivers/cpufreq/exynos4x12-cpufreq.c | 5 +-
drivers/i2c/busses/i2c-s3c2410.c | 32 ++++
drivers/soc/Kconfig | 1 +
drivers/soc/Makefile | 1 +
drivers/soc/samsung/Kconfig | 10 ++
drivers/soc/samsung/Makefile | 1 +
drivers/soc/samsung/exynos-chipid.c | 166 ++++++++++++++++++++
include/linux/exynos-soc.h | 46 ++++++
25 files changed, 357 insertions(+), 210 deletions(-)
create mode 100644 Documentation/devicetree/bindings/arm/samsung/exynos-chipid.txt
delete mode 100644 arch/arm/mach-exynos/regs-sys.h
create mode 100644 drivers/soc/samsung/Kconfig
create mode 100644 drivers/soc/samsung/Makefile
create mode 100644 drivers/soc/samsung/exynos-chipid.c
create mode 100644 include/linux/exynos-soc.h

--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/