nitrogen6x: Pass the correct CPU revision to the kernel
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
From: Fabio Estevam <[email protected]>
As nitrogen6x boards support different i.MX6 flavors (quad, dual-lite and solo) the correct CPU revision needs to passed to the kernel, so call get_cpu_rev() instead of hardcoding it.
Freescale 3.0.35 kernel assumes that the CPU revision is passed passed from the bootloader.
--- board/boundary/nitrogen6x/nitrogen6x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/boundary/nitrogen6x/nitrogen6x.c +1 -1
@@ -330,7 +330,7 @@ int board_mmc_init(bd_t *bis)u32 get_board_rev (void ) { -return 0x63000 ; +return get_cpu_rev (); }#ifdef CONFIG_MXC_SPI
Signature · 1 line
1.7.9.5
PATCH 2/2 mx6qsabrelite: Do not hardcode the CPU revision
From: Fabio Estevam <[email protected]>
Instead of hardcoding the CPU revision, it is better to use get_cpu_rev().
--- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
board/freescale/mx6qsabrelite/mx6qsabrelite.c +2 -1
@@ -26,6 +26,7 @@#include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h> #include <asm/arch/mx6q_pins.h> +#include <asm/arch/sys_proto.h> #include <asm/errno.h> #include <asm/gpio.h> #include <asm/imx-common/iomux-v3.h>
@@ -300,7 +301,7 @@ int board_mmc_init(bd_t *bis)u32 get_board_rev (void ) { -return 0x63000 ; +return get_cpu_rev (); }#ifdef CONFIG_MXC_SPI
Signature · 1 line
1.7.9.5
PATCH 2/2 mx6qsabrelite: Do not hardcode the CPU revision
Am 15.03.2013 22:06, schrieb Fabio Estevam:
Quoted 3 lines
From: Fabio Estevam <[email protected]>
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 (?).
Best regards
Dirk
Quoted 27 lines
Signed-off-by Fabio Estevam <[email protected]>--- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)board/freescale/mx6qsabrelite/mx6qsabrelite.c +2
-1@@ -26,6 +26,7 @@#include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h> #include <asm/arch/mx6q_pins.h> +#include <asm/arch/sys_proto.h> #include <asm/errno.h> #include <asm/gpio.h> #include <asm/imx-common/iomux-v3.h> @@ -300,7 +301,7 @@ int board_mmc_init(bd_t *bis)u32 get_board_rev (void ) { -return 0x63000 ; +return get_cpu_rev (); }#ifdef CONFIG_MXC_SPI
PATCH 2/2 mx6qsabrelite: Do not hardcode the CPU revision
Dear Dirk Behme,
Quoted 5 lines · In message <[email protected]> you wrote:
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
0x63000and if it's not there, it won't work (?).
Then this driver needs fixing?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Men of peace usually are [brave]. -- Spock, "The Savage Curtain", stardate 5906.5
PATCH 2/2 mx6qsabrelite: Do not hardcode the CPU revision
In reply to Dirk BehmeHi Dirk,
Quoted 10 lines · Dirk Behme
Am 15.03.2013 22:06, schrieb Fabio Estevam:
Quoted 3 lines
From: Fabio Estevam <[email protected]>
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
0x63000and if it's not there, it won't work (?).
Good point, maybe we can do:
return (get_cpu_rev() & ~0xfff);
Regards,
Fabio Estevam
PATCH 2/2 mx6qsabrelite: Do not hardcode the CPU revision
Quoted 10 lines · Fabio Estevam
Hi Dirk,
Quoted 7 lines · Dirk Behme
Am 15.03.2013 22:06, schrieb Fabio Estevam:
Quoted 3 lines
From: Fabio Estevam <[email protected]>
Instead of hardcoding the CPU revision, it is better to use
get_cpu_rev().
Quoted 7 lines
Quoted 3 lines
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
0x63000and 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.
Signature · 3 lines
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
PATCH 2/2 mx6qsabrelite: Do not hardcode the CPU revision
Quoted 1 line · Otavio Salvador
Or add a method to do that? as it'd need to be done in all i.MX6 boards.
Not all boards need to pass their revision to the kernel. For mx6sabresd/sabreauto we do need it.
I plan to work on it.
Regards,
Fabio Estevam
PATCH 2/2 mx6qsabrelite: Do not hardcode the CPU revision
Quoted 7 lines · Fabio Estevam
Quoted 1 line · Otavio Salvador
Or add a method to do that? as it'd need to be done in all i.MX6 boards.
Not all boards need to pass their revision to the kernel. For mx6sabresd/sabreauto we do need it.
If Dirk is right we need to pass it to make GPU work, no?
Signature · 3 lines
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
PATCH 2/2 mx6qsabrelite: Do not hardcode the CPU revision
In reply to Dirk BehmeHi Dirk,
Quoted 10 lines · Dirk Behme
Am 15.03.2013 22:06, schrieb Fabio Estevam:
Quoted 3 lines
From: Fabio Estevam <[email protected]>
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
0x63000and if it's not there, it won't work (?).
mx6qsabresd/sabreauto do not pass 0x63000 exactly and they are able to run the GPU driver.
They also encode the board type and revision.
Regards,
Fabio Estevam
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
In reply to Fabio EstevamQuoted 20 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
As nitrogen6x boards support different i.MX6 flavors (quad, dual-lite and solo) the correct CPU revision needs to passed to the kernel, so call
get_cpu_rev()instead of hardcoding it.Freescale 3.0.35 kernel assumes that the CPU revision is passed passed from the bootloader.
Signed-off-by Fabio Estevam <[email protected]>--- board/boundary/nitrogen6x/nitrogen6x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)board/boundary/nitrogen6x/nitrogen6x.c +0
-0
board/boundary/nitrogen6x/nitrogen6x.c int board_mmc_init(bd_t *bis) · line 336
Quoted 8 lines
board/boundary/nitrogen6x/nitrogen6x.c +1
-1@@ -330,7 +330,7 @@ int board_mmc_init(bd_t *bis)u32 get_board_rev (void ) { -return 0x63000 ; +return get_cpu_rev (); }#ifdef CONFIG_MXC_SPI
This is the **board** revision, right?
At first glance, the kernel seems to be getting the silicon revision from the same place as get_cpu_rev():
https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.0.35_1.1.1/arch/arm/mach-mx6/cpu.c#L51 http://git.denx.de/u-boot.git/?p=u-boot.git;a=blob;f=arch/arm/cpu/armv7/mx6/soc.c;h=a8aad5dd0a6c8548277021ebe8f6e159dbf31b9b;hb=HEAD#l42
Is there a reference to the ATAG that I'm not seeing somewhere?
Please advise,
Eric
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
Hi Eric,
Quoted 10 lines · Eric Nelson
This is the **board** revision, right?
At first glance, the kernel seems to be getting the silicon revision from the same place as
get_cpu_rev():Is there a reference to the ATAG that I'm not seeing somewhere?
Ok, so 3.0.35 treats cpu_rev correctly and do not assume this info to be passed from the bootloader. I was confused with 2.6.35, where I had issues with this on mx53.
So, it seems that nitrogen does not need to pass get_board_rev() at all then?
Regards,
Fabio Estevam
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
Quoted 14 lines · Fabio Estevam
Hi Eric,
Quoted 9 lines · Eric Nelson
This is the **board** revision, right?
At first glance, the kernel seems to be getting the silicon revision from the same place as
get_cpu_rev():
Quoted 8 lines
Quoted 1 line
Is there a reference to the ATAG that I'm not seeing somewhere?
Ok, so 3.0.35 treats
cpu_revcorrectly and do not assume this info to be passed from the bootloader. I was confused with 2.6.35, where I had issues with this on mx53.So, it seems that nitrogen does not need to pass
get_board_rev()at all then?
At the moment, it doesn't.
I would really like to see us (the i.MX6 community) standardize the use of some fuses to specifically mean board revision.
We're contemplating some board changes such as switching the ethernet PHY and having a convention for the use of a few bits in OTP would allow us to implement get_board_rev() once in a common place.
Over the lifetime of most boards, it's likely that at least one board revision will have software implications and having a common way to express/detect this could prevent some churn in board-specific files.
Such a convention would need to have broad sign off though.
Let me know your thoughts on the subject.
Regards,
Eric
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
Am 16.03.2013 17:13, schrieb Eric Nelson:
Quoted 36 lines · Fabio Estevam
Quoted 16 lines
Hi Eric,
Quoted 11 lines · Eric Nelson
This is the **board** revision, right?
At first glance, the kernel seems to be getting the silicon revision from the same place as
get_cpu_rev():Quoted 9 lines
Quoted 1 line
Is there a reference to the ATAG that I'm not seeing somewhere?
Ok, so 3.0.35 treats
cpu_revcorrectly and do not assume this info to be passed from the bootloader. I was confused with 2.6.35, where I had issues with this on mx53.So, it seems that nitrogen does not need to pass
get_board_rev()at all then?At the moment, it doesn't.
I would really like to see us (the i.MX6 community) standardize the use of some fuses to specifically mean board revision.
We're contemplating some board changes such as switching the ethernet PHY and having a convention for the use of a few bits in OTP would allow us to implement
get_board_rev()once in a common place.
Quoted 8 lines
Over the lifetime of most boards, it's likely that at least one board revision will have software implications and having a common way to express/detect this could prevent some churn in board-specific files.
Such a convention would need to have broad sign off though.
Let me know your thoughts on the subject.
I think the OMAP/Beagle community introduced serial EEPROMs to identify their (add on) boards.
Best regards
Dirk
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
Dear Dirk Behme,
Quoted 3 lines · In message <[email protected]> you wrote:
I think the OMAP/Beagle community introduced serial EEPROMs to identify their (add on) boards.
There are many such ad-hoc approaches, and most of them are just a PITA. If you are trying to optimize boot times, it is really a pain if you have to wait for inherently slow devives like EEPROMs on a I2C bus etc.
Also, this addresses only the first half of the problem - the source of the information. The other half is how to pass the information to the kernel (-> DT).
Best regards,
Wolfgang Denk
Signature · 8 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The only solution is ... a balance of power. We arm our side with exactly that much more. A balance of power -- the trickiest, most difficult, dirtiest game of them all. But the only one that preserves both sides. -- Kirk, "A Private Little War", stardate 4211.8
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
In reply to Eric NelsonHi Eric,
Quoted 10 lines · Eric Nelson
At the moment, it doesn't.
I would really like to see us (the i.MX6 community) standardize the use of some fuses to specifically mean board revision.
We're contemplating some board changes such as switching the ethernet PHY and having a convention for the use of a few bits in OTP would allow us to implement
get_board_rev()once in a common place.
Quoted 8 lines
Over the lifetime of most boards, it's likely that at least one board revision will have software implications and having a common way to express/detect this could prevent some churn in board-specific files.
Such a convention would need to have broad sign off though.
Let me know your thoughts on the subject.
Would this approach work?
Regards,
Fabio Estevam
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
Hi Fabio,
Quoted 20 lines · Fabio Estevam
Hi Eric,
Quoted 15 lines · Eric Nelson
At the moment, it doesn't.
I would really like to see us (the i.MX6 community) standardize the use of some fuses to specifically mean board revision.
We're contemplating some board changes such as switching the ethernet PHY and having a convention for the use of a few bits in OTP would allow us to implement
get_board_rev()once in a common place.Over the lifetime of most boards, it's likely that at least one board revision will have software implications and having a common way to express/detect this could prevent some churn in board-specific files.
Quoted 8 lines
Quoted 3 lines
Such a convention would need to have broad sign off though.
Let me know your thoughts on the subject.
Would this approach work?
I think this mixes apples and oranges a bit.
/* Get Board ID information from OCOTP_GP1[15:8]
* bit 12-15: Board type
* 0x0 : Unknown
* 0x1 : Sabre-AI (ARD)
* 0x2 : Smart Device (SD)
* 0x3 : Quick-Start Board (QSB)
* 0x4 : SoloLite EVK (SL-EVK)
*
* bit 8-11: Board Revision ID
* 0x0 : Unknown or latest revision
* 0x1 : RevA board
* 0x2 : RevB
* 0x3 : RevC
*
* exp:
* i.MX6Q ARD RevA: 0x11
* i.MX6Q ARD RevB: 0x12
* i.MX6Solo ARD RevA: 0x11
* i.MX6Solo ARD RevB: 0x12
*/
Bits 8-11 seem reasonable, though the comment for zero is probably bad. It seems that as soon as a board needs to make a decision based on board revision, it will add a requirement for a non-zero (programmed) fuse, so the "latest" will be non-zero by definition.
Four bits also seems like plenty for a revision of a given board type.
The board type bits above are a bit parochial. You may be able to list Freescale boards with only four bits, but I would expect the number of down-stream board types to be in the hundreds, so it seems this is better left in CONFIG_MACH_TYPE.
The CPU and silicon revision is already available in other ways and programmed at the Freescale factory.
So for the purposes of get_board_rev(), I think we just need to identify some bits in an OTP register, define them as the standard and have get_board_rev() return their value.
That said, I don't think any of this can or should be done without identifying the down-stream code that might break.
I've seen code that scrapes /proc/cpuinfo for the "Revision:" line and uses that.
My memory is hazy, but I think it was in either or both the gstreamer plugins or an "FSL Power Monitor" applet in Android.
I don't recall seeing it in any VPU-related code. Dirk, do you have a reference there?
I'll try to do some tests of different userspaces with get_board_rev() returning zero and see what breaks.
Regards,
Eric
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
Hi Fabio,
Quoted 10 lines · Eric Nelson
Hi Fabio,
<snip>
That said, I don't think any of this can or should be done without identifying the down-stream code that might break.
I've seen code that scrapes
/proc/cpuinfofor the "Revision:" line and uses that.
Quoted 9 lines
My memory is hazy, but I think it was in either or both the gstreamer plugins or an "FSL Power Monitor" applet in Android.
I don't recall seeing it in any VPU-related code. Dirk, do you have a reference there?
I'll try to do some tests of different userspaces with
get_board_rev()returning zero and see what breaks.
The Gstreamer VPU plugin breaks on Solo and Quad if get_board_rev() doesn't return 0x61xxx or 0x63xxx. Oddly, the code in vpu_lib.c loads firmware based on the 61 or 63 reference and yet still nominally works on a Solo with a hard-coded value of 0x63000.
The VPU seems fine. It runs Vivante demos on Solo and Quad with a board rev of zero.
Regards,
Eric
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
Hi Eric,
Quoted 4 lines · Eric Nelson
The Gstreamer VPU plugin breaks on Solo and Quad if
get_board_rev()doesn't return 0x61xxx or 0x63xxx. Oddly, the code invpu_lib.cloads firmware based on the 61 or 63 reference and yet still nominally works on a Solo with a hard-coded value of0x63000.
Thanks for testing, I will fix get_cpu_rev() tomorrow.
Regards,
Fabio Estevam
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
Quoted 11 lines · Fabio Estevam
Hi Eric,
Quoted 4 lines · Eric Nelson
The Gstreamer VPU plugin breaks on Solo and Quad if
get_board_rev()doesn't return 0x61xxx or 0x63xxx. Oddly, the code invpu_lib.cloads firmware based on the 61 or 63 reference and yet still nominally works on a Solo with a hard-coded value of0x63000.Thanks for testing, I will fix
get_cpu_rev()tomorrow.
Eric, please try the attached patch if you have a chance.
I don't have my mx6dl or solo to test it, but the attached patch plus the original one of this thread should make things work.
Thanks,
Fabio Estevam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-rev.patch
Type: application/octet-stream
Size: 3621 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130326/19b5bb6b/attachment.obj>
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
In reply to Fabio EstevamDear Fabio Estevam,
Quoted 4 lines · In message <CAOMZO5C0Wi8qf82KDspM0=ZyMn8DBh3b215e-PmWJjDu7=sMUQ@mail.gmail.com>…
Would this approach work?
I bet there is a to of existing ways to encode and pass such information - in NOR flash, EEPROM, encoded in the serial number and/or MAC addresses, whatever. I would expect that each major board vendor has his preferred style, and I don't see how this could be changed.
Also, pleas ekeep inmind that there are two sides of the issue:
- storage device and format for the related information
- method and for mat of passing this on to the kernel
The Subject: addresses only the second part of this. And as mentioned before, there is a standardized method of passing such infoirmation to the kernel - through the device tree.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Always leave room to add an explanation if it doesn't work out.
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
In reply to Eric NelsonDear Eric Nelson,
Quoted 5 lines · In message <[email protected]> you wrote:
At the moment, it doesn't.
I would really like to see us (the i.MX6 community) standardize the use of some fuses to specifically mean board revision.
No. This is a very bad idea. We've been working long enough with a number of board manufacturers; many of these provides SOMs (Systems on Module) that get then used by many different customers for many different purposes - and the use of things like fuse settings should be left to these end users.
Quoted 11 lines
We're contemplating some board changes such as switching the ethernet PHY and having a convention for the use of a few bits in OTP would allow us to implement
get_board_rev()once in a common place.Over the lifetime of most boards, it's likely that at least one board revision will have software implications and having a common way to express/detect this could prevent some churn in board-specific files.
Such a convention would need to have broad sign off though.
You seem to forget that there is a standardized, well documented way to pass all kind of hardware related information to the Linux kernel. If you need any such information, add it to the device tree.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If you're not part of the solution, you're part of the problem.
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
In reply to Fabio EstevamHi Fabio,
Quoted 20 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
As nitrogen6x boards support different i.MX6 flavors (quad, dual-lite and solo) the correct CPU revision needs to passed to the kernel, so call
get_cpu_rev()instead of hardcoding it.Freescale 3.0.35 kernel assumes that the CPU revision is passed passed from the bootloader.
Signed-off-by Fabio Estevam <[email protected]>--- board/boundary/nitrogen6x/nitrogen6x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)board/boundary/nitrogen6x/nitrogen6x.c +0
-0
board/boundary/nitrogen6x/nitrogen6x.c int board_mmc_init(bd_t *bis) · line 336
Quoted 8 lines
board/boundary/nitrogen6x/nitrogen6x.c +1
-1@@ -330,7 +330,7 @@ int board_mmc_init(bd_t *bis)u32 get_board_rev (void ) { -return 0x63000 ; +return get_cpu_rev (); }#ifdef CONFIG_MXC_SPI
Since this convention is shared among at least SABRE Lite, SABRE SD, Nitrogen6x and Wandboard, wouldn't a weak function in imx-common/cpu.c be a better choice?
+#ifdef CONFIG_REVISION_TAG
+u32 __weak get_board_rev(void)
+{
+ return get_cpu_rev();
+}
+#endif
Then boards could override things, but will do the reasonable thing without the extra code.
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
Quoted 14 lines · Eric Nelson
Hi Fabio,
<snip>
Quoted 10 lines
board/boundary/nitrogen6x/nitrogen6x.c +1
-1@@ -330,7 +330,7 @@ int board_mmc_init(bd_t *bis)u32 get_board_rev (void ) { -return 0x63000 ; +return get_cpu_rev (); }
Quoted 7 lines
board/boundary/nitrogen6x/nitrogen6x.c int board_mmc_init(bd_t *bis) · line 336
Quoted 2 lines
board/boundary/nitrogen6x/nitrogen6x.c +0
-0#ifdef CONFIG_MXC_SPI Since this convention is shared among at least SABRE Lite, SABRE SD, Nitrogen6x and Wandboard, wouldn't a weak function in
imx-common/cpu.cbe a better choice?
Oops.
I meant to say arch/arm/cpu/armv7/mx6/soc.c, not imx-common/cpu.c.
PATCH 1/2 nitrogen6x: Pass the correct CPU revision to the kernel
In reply to Eric NelsonHi Eric,
Quoted 11 lines · Eric Nelson
Since this convention is shared among at least SABRE Lite, SABRE SD, Nitrogen6x and Wandboard, wouldn't a weak function in
imx-common/cpu.cbe a better choice?(quoted diff) +6
-0+#ifdef CONFIG_REVISION_TAG +u32 __weak get_board_rev(void) +{ + return get_cpu_rev(); +} +#endif
Quoted 2 lines
Then boards could override things, but will do the reasonable thing without the extra code.
I like this idea. Will submit this change with the get_cpu_rev() tomorrow, after I get more comments on the proposed get_cpu_rev patch.
Thanks,
Fabio Estevam