]> git.baikalelectronics.ru Git - uboot.git/commit
davinci: omapl138_lcdk: fix PLL0 frequency
authorDavid Lechner <david@lechnology.com>
Thu, 15 Mar 2018 01:36:30 +0000 (20:36 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 22 Mar 2018 20:32:24 +0000 (16:32 -0400)
commit09218ec9829e8d152573f8de8b78e1a9309ded37
tree34e76dffa523987d6a07a69421d5dc52ba5fd17c
parentc993441812a7d9777238fe068f291e4f827bfb4e
davinci: omapl138_lcdk: fix PLL0 frequency

commit f8536fbcf4c0 ("davinci: omapl138_lcdk: increase PLL0 frequency")
changed the PLL0 frequency to 456MHz, which is needed for the LCDC IP
block. However, in doing so, it caused the PLLOUT clock to be outside
of the allowable specifications given in the OMAP-L138 data sheet. (It
says PLLOUT must be 600MHz max). It also uses a PLLM value outside of
the range given in the TRM (it says PLLM must in the range 0 to 0x1f).

So here is what we have currently:

PLLOUT = 24 / (0 + 1) * (37 + 1) = 912MHz (out of spec)
         ^     ^         ^
       CLKIN PREDIV    PLLM (out of spec)

input to PLLDIVn = 912 / (1 + 1) = 456MHz (desired result)
                    ^     ^
                 PLLOUT POSTDIV

This changes the PLLM value to 18 and the POSTDIV value to 0 so that
PLLOUT is now within specification but we still get the desired
result.

PLLOUT = 24 / (0 + 1) * (18 + 1) = 456MHz (within spec)
         ^     ^         ^
       CLKIN PREDIV     PLLM

input to PLLDIVn = 456 / (0 + 1) = 456MHz (desired result)
                    ^     ^
                 PLLOUT POSTDIV

Fixes: f8536fbcf4c0 ("davinci: omapl138_lcdk: increase PLL0 frequency")
Signed-off-by: David Lechner <david@lechnology.com>
Reported-by: Sekhar Nori <nsekhar@ti.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
configs/omapl138_lcdk_defconfig
include/configs/omapl138_lcdk.h