
Hi, Stefano,
2010/12/7 Stefano Babic sbabic@denx.de:
On 12/07/2010 03:58 AM, Jason Liu wrote:
I know all this crap is for MX51 in the TO1 version, even if I do not know if there are boards with this first version of the processor. Probably we must maintain this stuff for compatibility. Really I would like to remove it completely ;-).
Do you mind that I remove it completely here?
Really I do not know. This is clearly a workaround for the first MX.51 version (TO1), and it makes no sense for actual processor's revision. I do not know if there are mx51evk with this revision on board, but if there are we should maintain this code for compatibility reason.
OK, Let's keep it.
The motivation to use " is_soc_type(CPU_TYPE) "is to remove the some #ifdef CONFIG_MX51in this file, I can change back to the following,
- #if defined (MX_CPU_MX51)
- if (is_soc_rev(CHIP_REV_2_0) < 0) {
- code snip
- }
- #endif
Is this ok?
I think so. If we were able to do everything on runtime, then we could proceed removing all #ifdef stuff. However, we need the #ifdef in the header files to select the different internal structures between MX.51 and MX.53.
OK, I will do the change.
Thanks for the review.
Best regards, Stefano Babic
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de =====================================================================