]> git.ipfire.org Git - people/ms/u-boot.git/commit
mx7: Fix the get_cpu_speed_grade_hz() return values
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 22 Feb 2017 15:43:26 +0000 (12:43 -0300)
committerStefano Babic <sbabic@denx.de>
Sun, 19 Mar 2017 16:28:59 +0000 (17:28 +0100)
commit60a07fb843c44bdcb364ecaff11d4a54900e798b
tree65510e9f04fa0776af345a1f7e094159adf6c36f
parent31b8a9011b33fd3ea7bfeb37349ab8e64755646c
mx7: Fix the get_cpu_speed_grade_hz() return values

According to the MX7D fuse map the following speed grades are available:

800  MHz
500  MHz
1000 MHz
1200 MHz

So simply return the real frequency that corresponds to the speed grade.

With this change we see on boot:

CPU:   Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz)

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
arch/arm/cpu/armv7/mx7/soc.c