9
0
Fork 0
barebox/arch/arm/mach-omap
Daniel Schultz 80807102b9 arm: am33xx: Initialize EMIF REG_PR_OLD_COUNT
This patch is based on a patch from the U-Boot and fixes two errors with
the LCDC. Original commit message from Jyri Sarha [1]:
"Initialize EMIF OCP_CONFIG registers REG_COS_COUNT_1, REG_COS_COUNT_2,
and REG_PR_OLD_COUNT field for Beaglebone-Black and am335x-evm. With
the default values LCDC suffers from DMA FIFO underflows and frame
synchronization lost errors. The initialization values are the highest
that work flawlessly when heavy memory load is generated by CPU. 32bpp
colors were used in the test. On BBB the video mode used 110MHz pixel
clock. The mode supported by the panel of am335x-evm uses 30MHz pixel
clock."

The register values are generated by testing, because there is no formula
to calculate them. Also from Jyri Sarha [1]:
"In practice the only rule to find an optimal value is to find as high as
possible REG_PR_OLD_COUNT value that does not produce LCDC FIFO
underflows under worst case scenario. The worst case happens when the
highest pixel clock videomode with maximum bpp is used while memory
subsystem is stressed by endless stream of writes hitting the same
memory memory bank (can be the same address)."

It only contains the BeagleBone Black and the Phytec SoM, because I
don't have other boards.

[1] https://patchwork.ozlabs.org/patch/704013/

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2017-01-30 07:25:18 +01:00
..
include/mach arm: am33xx: Initialize EMIF REG_PR_OLD_COUNT 2017-01-30 07:25:18 +01:00
Kconfig arm: omap: OMAP_SERIALBOOT needs console support 2017-01-19 16:27:51 +01:00
Makefile ARM: am33xx: Add barebox_update eMMC option 2015-09-09 08:59:28 +02:00
am33xx_bbu_emmc.c ARM: am33xx: Add barebox_update eMMC option 2015-09-09 08:59:28 +02:00
am33xx_bbu_nand.c OMAP: am33xx_bbu_nand: Extent barebox update handler 2016-06-30 08:37:24 +02:00
am33xx_bbu_spi_mlo.c fix erasing/protecting flashes with unspecified size 2016-04-19 08:26:51 +02:00
am33xx_clock.c arm: am33xx: Master Osc clock speed handling 2016-01-26 08:01:06 +01:00
am33xx_generic.c arm: am33xx: Initialize EMIF REG_PR_OLD_COUNT 2017-01-30 07:25:18 +01:00
am33xx_mux.c ARM: OMAP: AM33xx: add uart1 pinmux setup 2015-07-24 09:22:06 +02:00
am33xx_scrm.c ARM: am33xx: Fix SCRM compatible string to match new DT compatible string 2015-05-15 07:09:11 +02:00
auxcr.S ARM: OMAP3: invalidate L2 cache using ROM API 2013-03-04 17:00:23 +01:00
boot_order.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
devices-gpmc-nand.c ARM omap: include individual SoC files 2012-12-19 21:51:49 +01:00
dmtimer.c arm: am33xx: Move function to read from Master OSC 2016-01-26 08:01:06 +01:00
gpmc.c Merge branch 'for-next/omap-drivers' 2013-12-06 08:23:27 +01:00
omap3_clock.c ARM: OMAP: Add SoC prefix to running_in_* functions 2013-11-22 11:24:42 +01:00
omap3_generic.c ARM: Omap3: Remove useless inline 2015-12-10 11:05:49 +01:00
omap3_xload_usb.c ARM: OMAP: Add omap3 USB loader tool 2015-07-02 08:20:48 +02:00
omap4_clock.c OMAP4: fix writel data/address swap regression 2013-11-25 08:28:53 +01:00
omap4_generic.c restart: replace reset_cpu with registered restart handlers 2015-08-27 21:37:03 +02:00
omap4_rom_usb.c OMAP: Move bootsource functions 2013-04-03 09:21:12 +02:00
omap4_twl6030_mmc.c twl6030: Set WR_S for VMMC 2013-05-31 09:03:18 +02:00
omap_devices.c include: Move ns16550 serial platform_data to include/platform_data 2016-04-15 08:44:42 +02:00
omap_fb.c ARM omap-fb: add board helper code 2013-06-24 21:49:34 +02:00
omap_generic.c include: Move bulk of boot.h to bootm.h 2016-07-26 08:31:31 +02:00
s32k_clksource.c ARM omap: Use SoC specific defines for gpmc and timer base 2012-12-19 21:51:49 +01:00
syslib.c Remove old, inaccurate "FileName:" cruft from ARM files 2012-12-05 19:51:14 +01:00
xload.c convert users to %pI4 2016-09-22 11:30:38 +02:00