Re: [PATCH 2/3 v2] omap4: opp: add OPP table data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Nishanth Menon <nm@xxxxxx> [101019 17:53]:
> @@ -86,7 +87,10 @@ int __init omap_init_opp_table(void)
>  	omap_table_init = 1;
>  
>  	/* Select the OPP table we'd like to enable based on cpu we are on */
> -	if (cpu_is_omap34xx()) {
> +	if (cpu_is_omap44xx()) {
> +		opp_def = omap44xx_opp_def_list;
> +		opp_def_size = ARRAY_SIZE(omap44xx_opp_def_list);
> +	} else if (cpu_is_omap34xx()) {
>  		opp_def = cpu_is_omap3630() ? omap36xx_opp_def_list :
>  			omap34xx_opp_def_list;
>  		opp_def_size = cpu_is_omap3630() ?

And based on the comments in patch 1/3, when you add support for
new processor, you just add a new init function instead of adding
"if cpu_is_omapxxxx else if" chunks.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux