From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933357AbcLILTZ (ORCPT ); Fri, 9 Dec 2016 06:19:25 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:36842 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932320AbcLILTY (ORCPT ); Fri, 9 Dec 2016 06:19:24 -0500 Date: Fri, 9 Dec 2016 11:22:38 +0000 From: Lee Jones To: Chen-Yu Tsai Cc: Liam Girdwood , Mark Brown , Maxime Ripard , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Mylene Josserand Subject: Re: [PATCH v2 1/8] mfd: sun6i-prcm: Add codec analog controls sub-device for Allwinner A23 Message-ID: <20161209112238.GM3625@dell.home> References: <20161125123442.28410-1-wens@csie.org> <20161125123442.28410-2-wens@csie.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161125123442.28410-2-wens@csie.org> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Nov 2016, Chen-Yu Tsai wrote: > The PRCM block on the A23 contains a message box like interface to > the registers for the analog path controls of the internal codec. > > Add a sub-device for it. > > Signed-off-by: Chen-Yu Tsai > --- > drivers/mfd/sun6i-prcm.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) Applied for v4.11, thanks. > diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c > index 011fcc555945..2b658bed47db 100644 > --- a/drivers/mfd/sun6i-prcm.c > +++ b/drivers/mfd/sun6i-prcm.c > @@ -12,6 +12,9 @@ > #include > #include > > +#define SUN8I_CODEC_ANALOG_BASE 0x1c0 > +#define SUN8I_CODEC_ANALOG_SIZE 0x4 > + > struct prcm_data { > int nsubdevs; > const struct mfd_cell *subdevs; > @@ -57,6 +60,10 @@ static const struct resource sun6i_a31_apb0_rstc_res[] = { > }, > }; > > +static const struct resource sun8i_codec_analog_res[] = { > + DEFINE_RES_MEM(SUN8I_CODEC_ANALOG_BASE, SUN8I_CODEC_ANALOG_SIZE), > +}; > + > static const struct mfd_cell sun6i_a31_prcm_subdevs[] = { > { > .name = "sun6i-a31-ar100-clk", > @@ -109,6 +116,12 @@ static const struct mfd_cell sun8i_a23_prcm_subdevs[] = { > .num_resources = ARRAY_SIZE(sun6i_a31_apb0_rstc_res), > .resources = sun6i_a31_apb0_rstc_res, > }, > + { > + .name = "sun8i-codec-analog", > + .of_compatible = "allwinner,sun8i-a23-codec-analog", > + .num_resources = ARRAY_SIZE(sun8i_codec_analog_res), > + .resources = sun8i_codec_analog_res, > + }, > }; > > static const struct prcm_data sun6i_a31_prcm_data = { -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog