[U-Boot] [PATCH 2/2] mx6qsabrelite: Do not hardcode the CPU revision

Otavio Salvador otavio at ossystems.com.br
Sat Mar 16 15:52:00 CET 2013


On Sat, Mar 16, 2013 at 11:50 AM, Fabio Estevam <festevam at gmail.com> wrote:
> Hi Dirk,
>
> On Sat, Mar 16, 2013 at 2:59 AM, Dirk Behme <dirk.behme at gmail.com> wrote:
>> Am 15.03.2013 22:06, schrieb Fabio Estevam:
>>
>>> From: Fabio Estevam <fabio.estevam at freescale.com>
>>>
>>> Instead of hardcoding the CPU revision, it is better to use get_cpu_rev().
>>
>>
>> I think to remember that there is a reason why it is hard coded this way.
>> Have you tested this with the Vivante GPU driver? If I remember correctly
>> they check for exactly the 0x63000 and if it's not there, it won't work (?).
>
> Good point, maybe we can do:
>
> return (get_cpu_rev() & ~0xfff);

Or add a method to do that? as it'd need to be done in all i.MX6 boards.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio at ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br


More information about the U-Boot mailing list