From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [RFC PATCHv1 2/2] ux500: Export U8500 SoC info through sysfs Date: Wed, 9 Mar 2011 21:02:36 +0100 Message-ID: <201103092102.36712.arnd@arndb.de> References: <1299689961-5028-1-git-send-email-maxime.coquelin-nonst@stericsson.com> <1299689961-5028-3-git-send-email-maxime.coquelin-nonst@stericsson.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1299689961-5028-3-git-send-email-maxime.coquelin-nonst@stericsson.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Maxime Coquelin Cc: ext Nishanth Menon , ext Tony Lindgren , Peter De-Schrijver , Linus Walleij , Ambresh , Saravana Kannan , Andrei Warkentin , Lee Jones , Rabin VINCENT , Russell King , Jonas ABERG , ext Kevin Hilman , David Brown , "linux-arm-msm@vger.kernel.org" , Loic PALLARDY , "eduardo.valentin@nokia.com" , maxime_coquelin@yahoo.fr, Ryan Mallon , Linux-OMAP , "linux-arm-kernel@lists.infradead.org" , Daniel List-Id: linux-omap@vger.kernel.org On Wednesday 09 March 2011 17:59:21 Maxime Coquelin wrote: > ST-Ericsson's U8500 implementation. > Register sysfs SoC interface, and export SoC ID, process and silicon revision > number. > +static char *ux500_get_soc_id(struct sys_soc_info *si) > +{ > + void __iomem *uid_base = __io_address(U8500_BB_UID_BASE); > +static char *ux500_get_revision(struct sys_soc_info *si) > +{ > + unsigned int rev = dbx500_revision(); > > + > +static char *ux500_get_process(struct sys_soc_info *si) > +{ These should all just be attributes of the platform device that represents your SoC. Arnd