From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjorn Andersson Subject: [RFC WIP 0/2] Qualcomm family A RPM driver and example client Date: Tue, 22 Apr 2014 11:20:03 -0700 Message-ID: <1398190805-28577-1-git-send-email-bjorn.andersson@sonymobile.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from seldrel01.sonyericsson.com ([212.209.106.2]:17817 "EHLO seldrel01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751182AbaDVSUJ (ORCPT ); Tue, 22 Apr 2014 14:20:09 -0400 Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: joshc@codeaurora.org, linux-arm-msm@vger.kernel.org To be used for reference in the design discussion related to RPM driver implementation for family A. Regulator driver is a not even close to the shape it should be, but shows a user of the api. Instead of having every regulator exposed as it's own compatible, I would now have it take a resource id as reg and just be compatible with the specific resource consumer. The difference with Josh's proposal is the mapping table in msm_rpm.c, that makes the rpm driver expose logical resources and therefor hides the details of the rpm communication from its clients. This gives, in my mind, a cleaner abstraction and api. Bjorn Andersson (2): mfd: msm_rpm: Initial driver for the Qualcomm RPM regulator: msm_rpm: Initial regulator driver for Qualcomm RPM drivers/mfd/Kconfig | 7 + drivers/mfd/Makefile | 1 + drivers/mfd/msm_rpm-8064.h | 420 +++++++++++++++++++++++++++ drivers/mfd/msm_rpm-8960.h | 400 ++++++++++++++++++++++++++ drivers/mfd/msm_rpm.c | 525 ++++++++++++++++++++++++++++++++++ drivers/regulator/Kconfig | 7 + drivers/regulator/Makefile | 1 + drivers/regulator/msm_rpm-regulator.c | 467 ++++++++++++++++++++++++++++++ include/linux/mfd/msm_rpm.h | 87 ++++++ 9 files changed, 1915 insertions(+) create mode 100644 drivers/mfd/msm_rpm-8064.h create mode 100644 drivers/mfd/msm_rpm-8960.h create mode 100644 drivers/mfd/msm_rpm.c create mode 100644 drivers/regulator/msm_rpm-regulator.c create mode 100644 include/linux/mfd/msm_rpm.h -- 1.8.2.2