[PATCH v4 08/11] ep93xx: Make syscon access functions private to SoC

H Hartley Sweeten hartleys at visionengravers.com
Tue Mar 13 13:33:52 EDT 2012


On Monday, March 12, 2012 3:48 PM, Ryan Mallon wrote:
>
> The syscon access functions are no longer used outside of the core
> EP93xx code. Move their definitions into the SoC code.
>
> Signed-off-by: Ryan Mallon <rmallon at gmail.com>
> Reviewed-by: Mika Westerberg <mika.westerberg at iki.fi>
> Acked-by: Hartley Sweeten <hsweeten at visionengravers.com>
> ---

<snip>

> diff --git a/arch/arm/mach-ep93xx/soc.h b/arch/arm/mach-ep93xx/soc.h
> index a22e11b..1273013 100644
> --- a/arch/arm/mach-ep93xx/soc.h
> +++ b/arch/arm/mach-ep93xx/soc.h
> @@ -104,4 +104,18 @@
>  #define EP93XX_WATCHDOG_PHYS_BASE	EP93XX_APB_PHYS(0x00140000)
>  #define EP93XX_WATCHDOG_BASE		EP93XX_APB_IOMEM(0x00140000)
>  
> +/* EP93xx System Controller software locked register write */
> +void ep93xx_syscon_swlocked_write(unsigned int val, void __iomem *reg);
> +void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits);
> +
> +static inline void ep93xx_devcfg_set_bits(unsigned int bits)
> +{
> +	ep93xx_devcfg_set_clear(bits, 0x00);
> +}
> +
> +static inline void ep93xx_devcfg_clear_bits(unsigned int bits)
> +{
> +	ep93xx_devcfg_set_clear(0x00, bits);
> +}
> +
>  #endif /* _EP93XX_PHYS_BASE_H */

Ryan,

I just noticed that the comment after the #endif is wrong.

It should either be /* _EP93XX_SOC_H */ or should just be removed.

Regards,
Hartley




More information about the linux-arm-kernel mailing list