aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2020-02-11 21:02:36 +0100
committerLubomir Rintel <lkundrak@v3.sk>2020-03-23 18:58:56 +0100
commitb7b3586ad821ef7500d45beb566a797ebfd2ca32 (patch)
treea8fe2236c977d1ea174396ed8dffaf8a1e7a8555
parentab7b6eacb4389283e134b7c9a4f7c06f33c916f7 (diff)
downloadopenfirmware-b7b3586ad821ef7500d45beb566a797ebfd2ca32.tar.gz
olpc/lcd: fix a messed up horizontal front porch calculation
There's a nice hfp word that gives us exactly the value we need. Tested not to blow up on a XO-1.75.
-rw-r--r--cpu/arm/olpc/lcd.fth5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpu/arm/olpc/lcd.fth b/cpu/arm/olpc/lcd.fth
index 3ba12d34..f4e2c4b4 100644
--- a/cpu/arm/olpc/lcd.fth
+++ b/cpu/arm/olpc/lcd.fth
@@ -67,9 +67,8 @@ width >bytes constant /scanline
htotal >chunks vtotal wljoin h# 114 lcd! \ SPUT_V_H_TOTAL
- htotal >chunks hdisp - hbp >chunks - 6 - ( low )
- hbp >chunks wljoin h# 11c lcd!
-
+ hfp >chunks hbp >chunks wljoin h# 11c lcd!
+
vfp vbp wljoin h# 120 lcd!
h# 2000FF00 h# 194 lcd! \ DMA CTRL 1