Commit Graph

21 Commits

Author SHA1 Message Date
Michael Scire
b05ba02f04 libmeso: explicitly blacklist ::sdmmc::, instead of relying on incorrect board tricks 2020-12-29 13:07:58 -08:00
Michael Scire
e82a57dc85 ams: resolve source dir inconsistency 2020-12-29 13:07:57 -08:00
Michael Scire
fd5212f399 fs: update + consolidate path normalization logic 2020-12-11 03:48:57 -08:00
Michael Scire
c891dfcff7 sdmmc: fix UHS-I tuning init for SD cards 2020-12-02 06:52:58 -08:00
Michael Scire
5aae240bc9 sdmmc: various fixes + logging as bugs are debugged 2020-12-02 06:52:58 -08:00
Michael Scire
3f4e0b4912 exo: read first two sd card sectors in mariko_fatal 2020-12-02 06:52:57 -08:00
Michael Scire
23609fb983 exo: implement start of mariko fatal handler 2020-12-02 06:52:57 -08:00
Michael Scire
f99c30920b boot: add rgltr/clkrst overrides, skel I2cBusAccessor 2020-12-02 06:52:44 -08:00
Michael Scire
3756f81d9e wec: implement wec driver components for boot sysmodule 2020-12-02 06:52:43 -08:00
SciresM
791b402320 sdmmc: implement driver suitable for fs + bootloader
* sdmmc: begin skeletoning sdmmc driver

* sdmmc: add most of SdHostStandardController

* sdmmc: implement most of SdmmcController

* sdmmc: Sdmmc2Controller

* sdmmc: skeleton implementation of Sdmmc1Controller

* sdmmc: complete abstract logic for Sdmmc1 power controller

* sdmmc: implement gpio handling for sdmmc1-register-control

* sdmmc: implement pinmux handling for sdmmc1-register-control

* sdmmc: fix building for arm32 and in stratosphere context

* sdmmc: implement voltage enable/set for sdmmc1-register-control

* util: move T(V)SNPrintf from kernel to util

* sdmmc: implement BaseDeviceAccessor

* sdmmc: implement MmcDeviceAccessor

* sdmmc: implement clock reset controller for register api

* sdmmc: fix bug in WaitWhileCommandInhibit, add mmc accessors

* exo: add sdmmc test program

* sdmmc: fix speed mode extension, add CheckMmcConnection for debug

* sdmmc: add DeviceDetector, gpio: implement client api

* gpio: modernize client api instead of doing it the lazy way

* sdmmc: SdCardDeviceAccessor impl

* sdmmc: update test program to read first two sectors of sd card

* sdmmc: fix vref sel

* sdmmc: finish outward-facing api (untested)

* ams: changes for libvapours including tegra register defs

* sdmmc: remove hwinit
2020-12-02 06:52:42 -08:00
Michael Scire
dc59a2d2e5 kern: build with -Wextra 2020-09-07 10:51:36 -07:00
Michael Scire
1674d4d220 exo2: implement warmboot firmware 2020-06-14 22:54:06 -07:00
Michael Scire
eef3dda23b exo2: fix bugs in device unique data decrypytion 2020-06-14 22:54:01 -07:00
Michael Scire
7561db5ed2 exo2: Implement (untested) SmcDecryptDeviceUniqueData 2020-06-14 22:54:01 -07:00
SciresM
b38939adb5 Implement support for parsing/interacting with NCAs. (#942)
* fs: implement support for interacting with ncas.

* spl: extend to use virtual keyslots
2020-05-12 15:44:19 -07:00
Michael Scire
da6eac986d buildsystem: fix building 2020-04-06 17:44:36 -07:00
Michael Scire
18396d1a36 crypto: add aes (ecb, ctr, xts) 2020-04-05 23:25:44 -07:00
SciresM
926d5a55d6 mem: implement most of StandardAllocator (#860)
This was tested using `https://github.com/node-dot-cpp/alloc-test` plus a few other by-hand tests.

It seems to work for the case we care about (sysmodules without thread cache-ing).

External users are advised to build with assertions on and contact SciresM if you find issues.

This is a lot of code to have gotten right in one go, and it was written mostly after midnight while sick, so there are probably un-noticed issues.
2020-03-30 20:41:21 -07:00
Michael Scire
3fd36b170d crypto: add Sha256Context 2020-03-18 00:15:01 -07:00
Michael Scire
577e3936a6 crypto: implement RSA-2048-PSS 2020-03-02 19:51:06 -08:00
Michael Scire
98cc1dd870 crypto: Implement BigNum/ExpMod 2020-03-02 19:51:06 -08:00