ChanServ changed the topic of #asahi-re to: Asahi Linux: porting Linux to Apple Silicon macs | Hardware / boot process / firmware interface reverse engineering | WARNING: this channel (only) may contain binary reverse engineering discussion | RE policy: https://alx.sh/re (MANDATORY READ) | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-re
hertz has quit [Ping timeout: 480 seconds]
hertz has joined #asahi-re
amarioguy has quit [Remote host closed the connection]
<marcan>
q3k2: I looked at that (mostly blind over the same UART lol), IIRC the closest relative was S3C2400 but some things were moved around
<marcan>
did you look at the bit defines from linux?
<marcan>
also IIRC these chips only have edge triggered IRQs, so you need to get the sequencing right
<marcan>
i.e. RXTO won't fire if you enable it with stuff already in the FIFO
<marcan>
internally edge triggered that is
<marcan>
you need to make sure the IRQs are enabled (possibly masked at the IRQ controller, but enabled as far as the UART goes), clear the UTRSTAT bits (they're write 1 to clear), drain the RX FIFO, and then you should get an IRQ next time a byte comes in and times out
<q3k>
marcan: yeah, i think i have all of this correct. i am getting the rx threshold interrupt, just not the timeout interrupt. pretty sure sequencing is also correct, i'm 'just' using the linux driver already there, and even if it's broken at startup then during the next threshold-driven drain of the fifo things should re-sequence correctly.
<q3k>
the only thing i've found so far is that if i poke some other bits in UTCON i start getting interrupts on another IRQ, but that still doesn't seem to be the rx timeout.
<q3k>
i guess i'll just continue poking at it and re-re-read the original firmware's implementation
<q3k>
s,UTCON,UCON,
<marcan>
q3k: I believe the original implementation had discrete IRQs, then Apple merged them into one, so it's possible that one still has them split
<marcan>
might want to compare with S3C2400 which has the RX TO enable bit in a different position
cylm has joined #asahi-re
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cylm has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit [Quit: WeeChat 3.6]
Zopolis4 has joined #asahi-re
<ChaosPrincess>
q3k: you might want to look at what sandcastle people are doing. though caveat emptor on their code, i recommend checking it before using
StupidYui has quit [Ping timeout: 480 seconds]
nico_32 has quit [Ping timeout: 480 seconds]
nico_32 has joined #asahi-re
bisko has joined #asahi-re
chadmed_ has quit [Remote host closed the connection]
mofux has joined #asahi-re
mofux has quit [Remote host closed the connection]
balor has joined #asahi-re
hightower2 has quit [Ping timeout: 480 seconds]
flokli has joined #asahi-re
hightower2 has joined #asahi-re
nicolas17 has joined #asahi-re
hightower2 has quit []
balor has quit [Quit: balor]
amarioguy has joined #asahi-re
Zopolis4 has quit [Quit: Connection closed for inactivity]
nicolas17 has quit [Ping timeout: 480 seconds]
leftas has joined #asahi-re
DarkShadow4444 has joined #asahi-re
DarkShadow4444 has quit [Remote host closed the connection]
DarkShadow4444 has joined #asahi-re
DarkShadow44 has quit [Ping timeout: 480 seconds]
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sethbrasile has joined #asahi-re
sethbrasile is now known as SethTheGreat
SethTheGreat is now known as seeeath
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]