From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933072AbcETMZ3 (ORCPT ); Fri, 20 May 2016 08:25:29 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:36749 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932274AbcETMZ2 (ORCPT ); Fri, 20 May 2016 08:25:28 -0400 Date: Fri, 20 May 2016 14:25:23 +0200 From: Carlo Caione To: Neil Armstrong Cc: xing.xu@amlogic.com, victor.wan@amlogic.com, linux-kernel@vger.kernel.org, p.zabel@pengutronix.de, jerry.cao@amlogic.com, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/3] reset: Add support for the Amlogic Meson GXBB Reset Controller Message-ID: <20160520122523.GA9913@mephisto> References: <1463732875-23141-1-git-send-email-narmstrong@baylibre.com> <1463732875-23141-2-git-send-email-narmstrong@baylibre.com> <20160520090448.GA19888@mephisto> <573ED483.10101@baylibre.com> <20160520100437.GA21213@mephisto> <573F0109.9080302@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <573F0109.9080302@baylibre.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/05/16 14:20, Neil Armstrong wrote: > On 05/20/2016 12:04 PM, Carlo Caione wrote: > > On 20/05/16 11:10, Neil Armstrong wrote: > >> On 05/20/2016 11:04 AM, Carlo Caione wrote: > >>> On 20/05/16 10:27, Neil Armstrong wrote: > >>>> This patch adds the platform driver for the Amlogic Meson GXBB Reset > >>>> Controller. > >>>> > >>>> Signed-off-by: Neil Armstrong > >>>> --- > >>>> drivers/reset/Kconfig | 6 ++ > >>>> drivers/reset/Makefile | 1 + > >>>> drivers/reset/reset-meson-gxbb.c | 129 +++++++++++++++++++++++++++++++++++++++ > >>>> 3 files changed, 136 insertions(+) > >>>> create mode 100644 drivers/reset/reset-meson-gxbb.c > >>> > >>> Do we really need to be that specific (-gxbb)? This driver looks generic > >>> and simple enough to be used for several Amlogic families. You are > >>> already differentiating between them with the include file defining the > >>> reset indexes for the SoC. > >> > >> This is a good question, do the S805 have similar registers ? Same count and width ? > >> I no, it should need a rework to add a data structure per-SoC. > > > > According to the datasheet on S805 we have 7 registers with 16 reset > > bits per register. > > It will fit, I made the change to be generic. Do you know if the meson8 and previous meson6 has these registers ? No idea. No datasheet for those. Cheers, -- Carlo Caione