[RFC PATCHv1 2/2] ux500: Export U8500 SoC info through sysfs

Arnd Bergmann arnd at arndb.de
Wed Mar 9 15:02:36 EST 2011


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



More information about the linux-arm-kernel mailing list