aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2021-01-09 01:05:43 +0100
committerLubomir Rintel <lkundrak@v3.sk>2021-01-10 02:10:56 +0100
commite525f45014e590df9226fa838ea716cb2d1d4617 (patch)
tree183ae2d58230c3414feedcbdc9e3229b36774d61
parent1571fa501fd9d3ef85814cdc67c5f686b79993cc (diff)
downloadopenfirmware-e525f45014e590df9226fa838ea716cb2d1d4617.tar.gz
mmp3/hdmi: add 1024x768@60 mode
This is a regular XGI mode, not CEA; a good fallback choice for regular computer screens.
-rw-r--r--cpu/arm/mmp3/hdmi.fth7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpu/arm/mmp3/hdmi.fth b/cpu/arm/mmp3/hdmi.fth
index 1f574126..463cff64 100644
--- a/cpu/arm/mmp3/hdmi.fth
+++ b/cpu/arm/mmp3/hdmi.fth
@@ -83,6 +83,7 @@ create pll-table
25 , 3 , h# 1171d , 39 , 0 , h# 2 ,
27 , 3 , h# 12710 , 42 , 0 , h# 2 ,
54 , 2 , h# 12710 , 42 , 0 , h# 2 ,
+ 65 , 2 , h# 12710 , 50 , 0 , h# 2 ,
74 , 2 , h# 007e8 , 57 , 0 , h# 4 ,
108 , 1 , h# 1247d , 42 , 0 , h# 2 ,
148 , 1 , h# 007e8 , 57 , 0 , h# 4 ,
@@ -212,6 +213,7 @@ decimal
\ 2880 , 288 , 50 , 3456 , 576 , 312 , 24 , 54 , 28 , ???
\ 2880 , 480 , 60 , 3432 , 552 , 525 , 45 , 108 , 36 , ???
\ 2880 , 576 , 50 , 3456 , 576 , 625 , 49 , 108 , 38 , ???
+ 1024 , 768 , 60 , 1344 , 320 , 806 , 38 , 65 , 0 , 136 , 24 , 160 , 6 , 3 , 29 ,
-1 ,
hex
@@ -269,8 +271,11 @@ hex
idrv h# 1111 * 0 +bits
phy-cfg1!
;
+
: setup-fifo ( -- )
- 1 h# 3a hdmi-i! \ HDMI, not DCI, Mode. No pixel repetition
+ 8 res@ if 1 else 0 then
+ h# 3a hdmi-i! \ HDMI or DVI
+
1 h# 48 hdmi-i! \ DC_FIFO_WR_PTR \ Alt value: 0
h# 1a h# 49 hdmi-i! \ DC_FIFO_RD_PTR \ Alt value: 1f