From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Mon, 10 Apr 2017 10:01:24 +0800 Subject: [U-Boot] [PATCH v3 2/2] x86: Introduce minimal PMU driver for Intel MID platforms In-Reply-To: References: <20170401132134.62092-1-andriy.shevchenko@linux.intel.com> <20170401132134.62092-3-andriy.shevchenko@linux.intel.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Apr 6, 2017 at 11:44 AM, Simon Glass wrote: > Hi Andy, > > On 1 April 2017 at 07:21, Andy Shevchenko > wrote: >> This simple PMU driver allows to tyrn power on and off for selected >> devices. In particularly Intel Tangier needs to power on SDHCI >> controllers in order to access to them during board initialization. >> >> In the future it might be expanded to cover other Intel MID platforms, >> that's why it's located under arch/x86/lib and called pmu.c. >> >> Signed-off-by: Felipe Balbi >> Signed-off-by: Andy Shevchenko >> --- >> arch/x86/include/asm/cpu.h | 1 + >> arch/x86/include/asm/pmu.h | 11 +++++ >> arch/x86/lib/Makefile | 1 + >> arch/x86/lib/pmu.c | 117 +++++++++++++++++++++++++++++++++++++++++++++ >> 4 files changed, 130 insertions(+) >> create mode 100644 arch/x86/include/asm/pmu.h >> create mode 100644 arch/x86/lib/pmu.c > > Reviewed-by: Simon Glass > > Have you considered making this a PMIC driver? Then you could avoid > exporting the function. Also I see that we need to do that sometimes > with Intel platforms. applied to u-boot-x86, thanks!