From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 16:04:51 +0800 Subject: [PATCH v6 084/102] x86: apl: Add PMC driver In-Reply-To: <20191206213936.v6.84.I98487b2f0defbe3b759662dfa500947f9f69547d@changeid> References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.84.I98487b2f0defbe3b759662dfa500947f9f69547d@changeid> 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 Sat, Dec 7, 2019 at 12:54 PM Simon Glass wrote: > > Add a driver for the Apollo Lake SoC. It supports the basic operations and > can use device tree or of-platdata. > > Signed-off-by: Simon Glass > --- > > Changes in v6: > - Use one space after #defines in pm.h > > Changes in v5: None > Changes in v4: > - Fix Makefile copyright message > - Fix incorrect mask check in pmc_gpe_init() > - Switch over to use pinctrl for pad init/config > - Tidy up header guards > - Use pci_ofplat_get_devfn() > - apollolake -> Apollo Lake > > Changes in v3: > - Use pci_get_devfn() > > Changes in v2: None > > arch/x86/cpu/apollolake/Makefile | 5 + > arch/x86/cpu/apollolake/pmc.c | 216 ++++++++++++++++++++++ > arch/x86/include/asm/arch-apollolake/pm.h | 19 ++ > drivers/power/acpi_pmc/acpi-pmc-uclass.c | 56 ++++++ > 4 files changed, 296 insertions(+) > create mode 100644 arch/x86/cpu/apollolake/Makefile > create mode 100644 arch/x86/cpu/apollolake/pmc.c > create mode 100644 arch/x86/include/asm/arch-apollolake/pm.h > Reviewed-by: Bin Meng