#
…

2023-01-13

00:11hertz has quit [Ping timeout: 480 seconds]
00:12hertz has joined #asahi-re
02:47amarioguy has quit [Remote host closed the connection]
03:40marcanq3k2: I looked at that (mostly blind over the same UART lol), IIRC the closest relative was S3C2400 but some things were moved around
03:41marcandid you look at the bit defines from linux?
03:43marcanalso IIRC these chips only have edge triggered IRQs, so you need to get the sequencing right
03:43marcani.e. RXTO won't fire if you enable it with stuff already in the FIFO
03:44marcaninternally edge triggered that is
03:44marcanyou 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
03:54mini0n has joined #asahi-re
04:34pthariensflame has joined #asahi-re
04:38mini0n has quit []
05:02pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
06:04SSJ_GZ has joined #asahi-re
06:35cylm has quit [Ping timeout: 480 seconds]
09:17MajorBiscuit has joined #asahi-re
09:49ChaosPrincess has quit [Quit: WeeChat 3.7.1]
09:49ChaosPrincess has joined #asahi-re
10:03q3k2 is now known as q3k
10:06q3kmarcan: 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.
10:07q3kthe 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.
10:07q3ki guess i'll just continue poking at it and re-re-read the original firmware's implementation
10:08q3ks,UTCON,UCON,
10:13marcanq3k: I believe the original implementation had discrete IRQs, then Apple merged them into one, so it's possible that one still has them split
10:13marcanmight want to compare with S3C2400 which has the RX TO enable bit in a different position
10:18cylm has joined #asahi-re
10:37bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:28cylm has quit [Ping timeout: 480 seconds]
12:27MajorBiscuit has quit [Quit: WeeChat 3.6]
13:02Zopolis4 has joined #asahi-re
13:10ChaosPrincessq3k: you might want to look at what sandcastle people are doing. though caveat emptor on their code, i recommend checking it before using
13:24StupidYui has quit [Ping timeout: 480 seconds]
13:24nico_32 has quit [Ping timeout: 480 seconds]
13:34nico_32 has joined #asahi-re
13:48bisko has joined #asahi-re
13:50chadmed_ has quit [Remote host closed the connection]
14:01mofux has joined #asahi-re
14:01mofux has quit [Remote host closed the connection]
14:16balor has joined #asahi-re
14:19hightower2 has quit [Ping timeout: 480 seconds]
14:35flokli has joined #asahi-re
15:04hightower2 has joined #asahi-re
15:08nicolas17 has joined #asahi-re
15:29hightower2 has quit []
16:11balor has quit [Quit: balor]
17:07amarioguy has joined #asahi-re
17:12Zopolis4 has quit [Quit: Connection closed for inactivity]
17:31nicolas17 has quit [Ping timeout: 480 seconds]
18:03leftas has joined #asahi-re
18:25DarkShadow4444 has joined #asahi-re
18:26DarkShadow4444 has quit [Remote host closed the connection]
18:26DarkShadow4444 has joined #asahi-re
18:32DarkShadow44 has quit [Ping timeout: 480 seconds]
18:33hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:40sethbrasile has joined #asahi-re
18:41sethbrasile is now known as SethTheGreat
18:42SethTheGreat is now known as seeeath
19:24seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:24nicolas17 has joined #asahi-re
19:24sethbrasile has joined #asahi-re
19:44balor has joined #asahi-re
19:46balrog has quit [Quit: Bye]
19:50balrog has joined #asahi-re
19:57pthariensflame has joined #asahi-re
20:04pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
20:36leftas has quit [Quit: Bye!]
20:36leftas has joined #asahi-re
20:36leftas has quit []
20:37leftas has joined #asahi-re
22:20sethbrasile has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:22seeeath has joined #asahi-re
22:40SSJ_GZ has quit [Ping timeout: 480 seconds]
22:40chadmed_ has joined #asahi-re
…