mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-18 08:22:04 +00:00
fusee: pass along lcd vendor to exosphere (needed for mariko fatal)
This commit is contained in:
parent
95b49294df
commit
6baf1d6593
3 changed files with 43 additions and 34 deletions
|
@ -62,6 +62,10 @@ static void dsi_wait(uint32_t timeout, uint32_t offset, uint32_t mask, uint32_t
|
|||
udelay(delay);
|
||||
}
|
||||
|
||||
uint16_t display_get_lcd_vendor(void) {
|
||||
return g_lcd_vendor;
|
||||
}
|
||||
|
||||
void display_init(void) {
|
||||
volatile tegra_car_t *car = car_get_regs();
|
||||
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
||||
|
|
|
@ -388,6 +388,8 @@
|
|||
void display_init(void);
|
||||
void display_end(void);
|
||||
|
||||
uint16_t display_get_lcd_vendor(void);
|
||||
|
||||
/* Switches screen backlight ON/OFF. */
|
||||
void display_backlight(bool enable);
|
||||
|
||||
|
|
|
@ -534,6 +534,9 @@ static void nxboot_configure_exosphere(uint32_t target_firmware, unsigned int ke
|
|||
exo_cfg.log_baud_rate = parse_cfg.log_baud_rate;
|
||||
if (parse_cfg.log_inverted) exo_cfg.log_flags |= EXOSPHERE_LOG_FLAG_INVERTED;
|
||||
|
||||
/* Apply lcd vendor. */
|
||||
exo_cfg.lcd_vendor = display_get_lcd_vendor();
|
||||
|
||||
if ((exo_cfg.target_firmware < ATMOSPHERE_TARGET_FIRMWARE_MIN) || (exo_cfg.target_firmware > ATMOSPHERE_TARGET_FIRMWARE_MAX)) {
|
||||
fatal_error("[NXBOOT] Invalid Exosphere target firmware!\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue