boot: finish i2c driver

This commit is contained in:
Michael Scire 2019-05-02 08:30:13 -07:00
parent 55a8154691
commit 31c4c33042
7 changed files with 439 additions and 0 deletions

View file

@ -19,6 +19,7 @@
#include <stratosphere.hpp>
#include "boot_types.hpp"
#include "i2c_driver/i2c_types.hpp"
class Boot {
public:
@ -39,4 +40,8 @@ class Boot {
/* SPL Utilities. */
static HardwareType GetHardwareType();
/* I2C Utilities. */
static Result ReadI2cRegister(I2cSessionImpl &session, u8 *dst, size_t dst_size, const u8 *cmd, size_t cmd_size);
static Result WriteI2cRegister(I2cSessionImpl &session, const u8 *src, size_t src_size, const u8 *cmd, size_t cmd_size);
};