public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 0/6] am335x-fb: support display PLL for lcd-clock / pixel-clock
@ 2018-01-09 18:01 Hannes Schmelzer
  2018-01-09 18:01 ` [U-Boot] [PATCH v3 1/6] mach-omap2: add AM335x Display PLL register definition Hannes Schmelzer
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Hannes Schmelzer @ 2018-01-09 18:01 UTC (permalink / raw)
  To: u-boot

In most cases days ago the LCDC IP-core clock on AM335x was sourced from
the peripheral PLL with 192 MHz and the pixel clock for the connected
lcd-screen was made more or less accurate with a divider inside LCDC IP-
core.

For certain displays, example a standard VGA with 25.17 MHz pixelclock,
it is almost impossible to generate a reasonably clock with the 192 MHz
base and a simple divider. For those cases we have to use the dedicated
DPLL_DISP generating a dividable clock-source for the LCDC.

This series does this with following steps:
- adding register definition of the display PLL to clock_am33xx
- calculate mult, dividers with lowest error and setup the display PLL,
selecting as clock-source for LCDC the display PLL.
- drop the hardcoded dependency in BuR/common to the 192 MHz and
provide a real clock-frequency instead a divider
- drop the clock selection for the LCDC within board code
- do minor cosmetic cleanups (updating copyright, coding style)

Changes in v3:
- modify copyright year to 2013-2018

Changes in v2:
- am335x-fb: avoid compiler warning
- board/BuR/common: fix the !CONFIG_USE_FDT case

Hannes Schmelzer (6):
  mach-omap2: add AM335x Display PLL register definition
  am335x-fb: cosmetic: update-copyright
  am335x-fb: cosmetic: fix coding style
  am335x-fb: setup display PLL
  board/BuR: provide real clock-frequency instead a divider
  board/BuR: drop LCDC clock manipulation from board code

 arch/arm/include/asm/arch-am33xx/clock.h  |  1 +
 arch/arm/mach-omap2/am33xx/clock_am33xx.c |  7 ++++
 board/BuR/brppt1/board.c                  |  3 --
 board/BuR/brxre1/board.c                  |  2 -
 board/BuR/common/common.c                 | 14 ++-----
 drivers/video/am335x-fb.c                 | 64 +++++++++++++++++++++++++++----
 drivers/video/am335x-fb.h                 |  6 +--
 7 files changed, 71 insertions(+), 26 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-01-11 14:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-09 18:01 [U-Boot] [PATCH v3 0/6] am335x-fb: support display PLL for lcd-clock / pixel-clock Hannes Schmelzer
2018-01-09 18:01 ` [U-Boot] [PATCH v3 1/6] mach-omap2: add AM335x Display PLL register definition Hannes Schmelzer
2018-01-10 13:04   ` Anatolij Gustschin
2018-01-09 18:01 ` [U-Boot] [PATCH v3 2/6] am335x-fb: cosmetic: update-copyright Hannes Schmelzer
2018-01-10 13:05   ` Anatolij Gustschin
2018-01-09 18:01 ` [U-Boot] [PATCH v3 3/6] am335x-fb: cosmetic: fix coding style Hannes Schmelzer
2018-01-10 13:05   ` Anatolij Gustschin
2018-01-09 18:01 ` [U-Boot] [PATCH v3 4/6] am335x-fb: setup display PLL Hannes Schmelzer
2018-01-10 13:07   ` Anatolij Gustschin
2018-01-09 18:01 ` [U-Boot] [PATCH v3 5/6] board/BuR: provide real clock-frequency instead a divider Hannes Schmelzer
2018-01-10 13:08   ` Anatolij Gustschin
2018-01-09 18:01 ` [U-Boot] [PATCH v3 6/6] board/BuR: drop LCDC clock manipulation from board code Hannes Schmelzer
2018-01-10 13:09   ` Anatolij Gustschin
2018-01-11 14:37 ` [U-Boot] [PATCH v3 0/6] am335x-fb: support display PLL for lcd-clock / pixel-clock Anatolij Gustschin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox