[PATCH v6 00/15] ARM: mxs: Add initial support for MX23 andMX28
Shawn Guo
shawn.gsc at gmail.com
Tue Dec 14 08:00:40 EST 2010
Hi Uwe,
2010/12/14 Shawn Guo <shawn.guo at freescale.com>:
[...]
>> - on TIMROTv1 there is no HW_TIMROT_RUNNING_COUNTn register. That's
>> called HW_TIMROT_TIMCOUNTn.
> I'm reusing the offset definition here. But it seems you are asking
> two definitions to avoid confusion.
>
>> - Typo in comment above timrot_is_v1: MX23 uses timers 0 and 1, too.
> It's a typo, but partially. mx28 uses timrot 0 and 1, while mx23 uses
> 0 and 2. There are 4 registers for each timrot instance on mx28,
> but only 2 on mx23. So address step 0x40 in HW_TIMROT_TIMCTRLn strides
> one instance on mx28 while two instances on mx23. Confusion again,
> adding more definitions, right?
>
I'm not going to argue the first one, since HW_TIMROT_RUNNING_COUNTn
is being used in functions that are already separated for v1 and v2.
But for HW_TIMROT_TIMCTRLn, it's being used in shared codes/functions.
Can we keep the trick and add more comments on that to save some codes
duplication?
--
Regards,
Shawn
More information about the linux-arm-kernel
mailing list