Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964941AbaLKIPW (ORCPT ); Thu, 11 Dec 2014 03:15:22 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:22464 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964919AbaLKIPT (ORCPT ); Thu, 11 Dec 2014 03:15:19 -0500 X-AuditID: cbfee691-f79b86d000004a5a-74-548952950613 From: Pankaj Dubey To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux@arm.linux.org.uk, kgene.kim@samsung.com, heiko@sntech.de, arnd@arndb.de, thomas.ab@samsung.com, tomasz.figa@gmail.com, Pankaj Dubey Subject: [PATCH v5 0/2] Introducing Exynos ChipId driver Date: Thu, 11 Dec 2014 13:37:42 +0530 Message-id: <1418285264-21763-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.2.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsWyRsSkTndqUGeIweFj8hZ/Jx1jt/j/6DWr Re+Cq2wWmx5fY7W4vGsOm8WM8/uYLG5f5rVYtPULu0XHMkaLVbv+MDpwebQ097B5/P41idFj 56y77B6bl9R79G1Zxeix/do8Zo/Pm+QC2KO4bFJSczLLUov07RK4MpomSRW0yFScf13awHhS tIuRk0NCwERi546jrBC2mMSFe+vZuhi5OIQEljJKzFvRzQJT1HK9ixEiMZ1R4vGcTewgCSGB CUwSnU+8QWw2AV2JJ+/nMoPYIgLZEv23V4M1MwusYZS4uVOti5GDQ1jAQuJ/SxlImEVAVeLt uR52kDCvgIfEpd9cEKvkJLbcesQOskpCYBG7xOXXv1gh6gUkvk0+xAJSLyEgK7HpADNEvaTE wRU3WCYwCi5gZFjFKJpakFxQnJReZKpXnJhbXJqXrpecn7uJERjap/89m7iD8f4B60OMAhyM Sjy8K662hwixJpYVV+YeYjQF2jCRWUo0OR8YQ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eN9wcpfeztv3uT4qK+1RZjJ9X2Eaf8Voqvg2j/Az3cesp3UqsRRnJBpqMRcVJwIAU9tp 2bICAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series introduces Exynos Chipid platform driver. Each Exynos SoC has ChipID block which can give information about SoC's product Id and revision number. At the same time it reduces dependency of mach-exynos files from plat-samsung, by removing samsung_rev API, similar API is introduced in chipid driver itself to get revision number and product id. This patch series is based on Kukjin Kim's for-next having SHA_ID: 9db7d78aca2c7fbc19a26ce2ef01c805dc010c72 It can also be cleanly applied on latest (next-20141209) linux-next. This has been tested against both tree on Exynos3250 and Exynos5250 (SMDK) board. Revision 4 and it's discussion can be found here - https://lkml.org/lkml/2014/12/3/115 Changes since v4: - Removed custom sysfs entries as they were not providing any new information as pointed out by Arnd. - Removed functions exporting product_id and revision, instead we will export exynos_chipid_info structure. It will be helpfull when we need to provide more fields of chipid outside of chipid, as commented by Yadwinder - Converted all funcions as __init. Change since v3: - This patch set contains 5/6 and 6/6 patch from v3 series. - Made EXYNOS_CHIPID config option non-user selectable, as suggested by Tomasz Figa. - Made uniform macro for EXYNOS4/5_SOC_MASK as EXYNOS_SOC_MASK as suggested by Tomasz Figa. - Made local variables static in chipid driver. - Added existing SoC's product id's. - Added platform driver support. 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 (2): soc: samsung: add exynos chipid driver support ARM: EXYNOS: refactoring of mach-exynos to enable chipid driver arch/arm/mach-exynos/Kconfig | 2 + arch/arm/mach-exynos/common.h | 54 ++++----- arch/arm/mach-exynos/exynos.c | 77 +++++------- arch/arm/mach-exynos/include/mach/map.h | 2 - arch/arm/mach-exynos/platsmp.c | 2 +- arch/arm/mach-exynos/pm.c | 8 +- arch/arm/plat-samsung/cpu.c | 14 --- arch/arm/plat-samsung/include/plat/cpu.h | 2 - arch/arm/plat-samsung/include/plat/map-s5p.h | 1 - drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/samsung/Kconfig | 14 +++ drivers/soc/samsung/Makefile | 1 + drivers/soc/samsung/exynos-chipid.c | 168 +++++++++++++++++++++++++++ include/linux/soc/samsung/exynos-soc.h | 51 ++++++++ 15 files changed, 296 insertions(+), 102 deletions(-) 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/soc/samsung/exynos-soc.h -- 2.2.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/