arm: omap3: Update cpuinfo for DM3730, DM3725, AM3715, and AM3703
Subsystems (3)
PATCH 1/1 arm: omap3: Update cpuinfo for DM3730, DM3725, AM3715, and AM3703
The check for OMAP3630/3730 only checks for 800MHz 3630/3730, but anything else is lumped into 36XX/37XX with an assumed 1GHz speed.
Based on the DM3730 TRM bit 9 shows the MPU Frequency (800MHz/1GHZ). This also adds the ability to distinguish between the DM3730, DM3725, AM3715, and AM3703 and correctly display their maximum speed.
arch/arm/include/asm/arch-omap3/omap.h +8 -0
@@ -230,6 +230,14 @@ struct gpio {#define AM3517 0x1c00#define OMAP3730 0x0c00 +#define OMAP3725 0x4c00 +#define AM3715 0x1c00 +#define AM3703 0x5c00 + +#define OMAP3730_1GHZ 0x0e00 +#define OMAP3725_1GHZ 0x4e00 +#define AM3715_1GHZ 0x1e00 +#define AM3703_1GHZ 0x5e00/* * ROM code API related flags
arch/arm/mach-omap2/omap3/sys_info.c +40 -2
56 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 1/1 arm: omap3: Update cpuinfo for DM3730, DM3725, AM3715, and AM3703
In reply to a message not in the archiveQuoted 11 lines · Ladislav Michl
Quoted 6 lines · Adam Ford
The check for OMAP3630/3730 only checks for 800MHz 3630/3730, but anything else is lumped into 36XX/37XX with an assumed 1GHz speed.
Based on the DM3730 TRM bit 9 shows the MPU Frequency (800MHz/1GHZ). This also adds the ability to distinguish between the DM3730, DM3725, AM3715, and AM3703 and correctly display their maximum speed.
Prints nicely:
AM3703-GP ES1.2, CPU-OPP2, L3-200MHz, Max CPU Clock 1 GHz
Quoted 8 lines
Tested-by Ladislav Michl <[email protected]>Btw,
I would be nice to use correct spelling of ISO units, so I propose what's attached (you patch rebased ot top of spelling change).
Not sure if you wish to take extra effort to resend, though.
I was originally going to do a separate commit to fix the spelling of MHz and GHz once the first patch was approved, because I didn't want to combine a typo fix with a feature addition. Since you've done the work, why not just submit your patch and take credit for it. :-)
adam
Quoted 2 lines
Best regards,
ladis
PATCH 1/2 arm: omap3: Fix cpuinfo frequency spelling
Frequency is measured in Hz.
--- arch/arm/mach-omap2/omap3/sys_info.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/omap3/sys_info.c +3 -3
@@ -292,7 +292,7 @@ int print_cpuinfo (void) cpu_s ="35XX" ;break ; } - max_clk ="600 Mhz" ; + max_clk ="600 MHz" ;break ;case CPU_OMAP36XX : cpu_family_s ="OMAP" ;
@@ -304,12 +304,12 @@ int print_cpuinfo (void) cpu_s ="36XX/37XX" ;break ; } - max_clk ="1 Ghz" ; + max_clk ="1 GHz" ;break ;default : cpu_family_s ="OMAP" ; cpu_s ="35XX" ; - max_clk ="600 Mhz" ; + max_clk ="600 MHz" ; }switch (get_device_type ()) {
Signature · 1 line
2.11.0
PATCH v2 2/2 arm: omap3: Update cpuinfo for DM3730, DM3725, AM3715, and AM3703
In reply to Adam FordFrom: Adam Ford <[email protected]>
The check for OMAP3630/3730 only checks for 800MHz 3630/3730, but anything else is lumped into 36XX/37XX with an assumed 1GHz speed.
Based on the DM3730 TRM bit 9 shows the MPU Frequency (800MHz/1GHZ). This also adds the ability to distinguish between the DM3730, DM3725, AM3715, and AM3703 and correctly display their maximum speed.
---
Changes:
- v2: rebase on top of spelling fix
add Tested-by line
indent header file
arch/arm/include/asm/arch-omap3/omap.h | 8 +++++++ arch/arm/mach-omap2/omap3/sys_info.c | 42 ++++++++++++++++++++++++++++++++-- 2 files changed, 48 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-omap3/omap.h +8 -0
@@ -230,6 +230,14 @@ struct gpio {#define AM3517 0x1c00#define OMAP3730 0x0c00 +#define OMAP3725 0x4c00 +#define AM3715 0x1c00 +#define AM3703 0x5c00 + +#define OMAP3730_1GHZ 0x0e00 +#define OMAP3725_1GHZ 0x4e00 +#define AM3715_1GHZ 0x1e00 +#define AM3703_1GHZ 0x5e00/* * ROM code API related flags
arch/arm/mach-omap2/omap3/sys_info.c +40 -2
56 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH 1/2 arm: omap3: Fix cpuinfo frequency spelling
In reply to Ladislav MichlQuoted 3 lines · Ladislav Michl
Frequency is measured in Hz.
Signed-off-by Ladislav Michl <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170128/5f4f163c/attachment.sig>
PATCH v2 2/2 arm: omap3: Update cpuinfo for DM3730, DM3725, AM3715, and AM3703
In reply to Ladislav MichlQuoted 11 lines · Ladislav Michl
From: Adam Ford <[email protected]>
The check for OMAP3630/3730 only checks for 800MHz 3630/3730, but anything else is lumped into 36XX/37XX with an assumed 1GHz speed.
Based on the DM3730 TRM bit 9 shows the MPU Frequency (800MHz/1GHZ). This also adds the ability to distinguish between the DM3730, DM3725, AM3715, and AM3703 and correctly display their maximum speed.
Signed-off-by Adam Ford <[email protected]>Tested-by Ladislav Michl <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170128/8da21276/attachment.sig>