Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CODEC driver #11

Open
Wolfvak opened this issue Mar 31, 2021 · 2 comments
Open

CODEC driver #11

Wolfvak opened this issue Mar 31, 2021 · 2 comments
Assignees
Labels
ctr Issue affects old3DS and 2DS driver enhancement New feature or request ktr Issue affects new3DS and new2DS

Comments

@Wolfvak
Copy link
Member

Wolfvak commented Mar 31, 2021

Currently there's a single "codec" device connected via the SPI bus and it controls touchscreen and circlepad stuff. In reality this driver also controls other registers responsible for sound (https://problemkaputt.de/gbatek.htm#3dstscregistersummary) and works similarly to the MCU or any other mfd, so it needs to be split off. However, the codec driver is also the one responsible for managing the swkbd which is pretty essential.

We need something like wifi or infrared to have proper communications with the system while debugging it (there are no UART ports exposed) before we can even think about ripping out swkbd and splitting the codec driver.

Marking as blocked by #6

@Wolfvak Wolfvak added enhancement New feature or request ctr Issue affects old3DS and 2DS ktr Issue affects new3DS and new2DS blocked labels Mar 31, 2021
@profi200
Copy link

profi200 commented Apr 1, 2021

"Reference" implementation:
https://github.com/profi200/open_agb_firm/blob/kernel_experiments/source/arm11/hardware/codec.c

It's a dumpster fire but that's to be expected with reverse engineered code i didn't have time to clean up yet.

@Wolfvak
Copy link
Member Author

Wolfvak commented Apr 1, 2021

@Wolfvak Wolfvak added the driver label Apr 13, 2021
@Wolfvak Wolfvak self-assigned this Apr 15, 2021
@Wolfvak Wolfvak linked a pull request Apr 22, 2021 that will close this issue
@Wolfvak Wolfvak removed the blocked label Apr 22, 2021
@Wolfvak Wolfvak removed a link to a pull request May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctr Issue affects old3DS and 2DS driver enhancement New feature or request ktr Issue affects new3DS and new2DS
Projects
None yet
Development

No branches or pull requests

2 participants