Re: [PATCH] video: ARM CLCD: runtime check for Versatile

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

 



On Tuesday 02 February 2016 21:47:39 Linus Walleij wrote:
>         } else {
> -#ifdef CONFIG_ARCH_VERSATILE
> -               fb->off_ienb = CLCD_PL111_IENB;
> -               fb->off_cntl = CLCD_PL111_CNTL;
> -#else
> -               fb->off_ienb = CLCD_PL110_IENB;
> -               fb->off_cntl = CLCD_PL110_CNTL;
> -#endif
> +               if (of_machine_is_compatible("arm,versatile-ab") ||
> +                   of_machine_is_compatible("arm,versatile-pb")) {
> +                       fb->off_ienb = CLCD_PL111_IENB;
> +                       fb->off_cntl = CLCD_PL111_CNTL;
> +               } else {
> +                       fb->off_ienb = CLCD_PL110_IENB;
> +                       fb->off_cntl = CLCD_PL110_CNTL;
> +               }
>         }
> 

Could that be done based on the AMBA device ID instead?

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



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]