[PATCH] davinci: Support various speedgrades for MityDSP-L138 and MityARM-1808 SoMs

Sergei Shtylyov sshtylyov at mvista.com
Wed Dec 22 14:17:34 EST 2010


Hello.

Michael Williamson wrote:

> For the MityDSP-L138/MityARM-1808 SoMs, the speed grade can be determined
> from the part number string read from the factory configuration block on
> the on-board I2C PROM.  Configure the maximum CPU speed based on this
> information.

> Signed-off-by: Michael Williamson <michael.williamson at criticallink.com>
[...]

> diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c
> index 0bb5f0c..9d30c01 100644
> --- a/arch/arm/mach-davinci/board-mityomapl138.c
> +++ b/arch/arm/mach-davinci/board-mityomapl138.c
> @@ -44,38 +44,102 @@ struct factory_config {
>  
>  static struct factory_config factory_config;
>  
> +struct part_no_info {
> +	const char	*part_no;  /* part number string of interest */
> +	int		max_freq; /* khz */

    Why not align the comments (and do it with a tab)?

WBR, Sergei



More information about the linux-arm-kernel mailing list