diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2020-02-11 21:02:36 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2021-01-10 02:10:56 +0100 |
commit | b243df0ac6d7c93a0ce8a5b33bf790c2bdade48d (patch) | |
tree | 4e2d0b68ff5745f05751b5189e2e9aae70e8397c | |
parent | 3e79366fbc2d20d87cb1da3a2e66fea358d97bf8 (diff) | |
download | openfirmware-b243df0ac6d7c93a0ce8a5b33bf790c2bdade48d.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.fth | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpu/arm/olpc/lcd.fth b/cpu/arm/olpc/lcd.fth index 13274d4b..048e23ea 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 |