fusee: pass along lcd vendor to exosphere (needed for mariko fatal)

This commit is contained in:
Michael Scire 2021-01-05 09:32:57 -08:00 committed by SciresM
parent 428b5b266c
commit 99e4920d9d
3 changed files with 43 additions and 34 deletions

View file

@ -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();

View file

@ -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);

View file

@ -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");
}