initial steps for dsi bringup

incomplete, but it lets the kernel bring it up... sometimes
This commit is contained in:
Andre Heider 2018-02-06 05:40:13 +01:00
parent b867cd4a72
commit a99840ba00
3 changed files with 8 additions and 8 deletions

View file

@ -18,10 +18,10 @@ if BOARD_NINTENDO_SWITCH
config BOARD_SPECIFIC_OPTIONS # dummy config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y def_bool y
select BOARD_ROMSIZE_KB_16384 select BOARD_ROMSIZE_KB_16384
#select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
#select MAINBOARD_FORCE_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select SOC_NVIDIA_TEGRA210 select SOC_NVIDIA_TEGRA210
#select MAINBOARD_DO_DSI_INIT select MAINBOARD_DO_DSI_INIT
config BOOTBLOCK_WRAP_BCT config BOOTBLOCK_WRAP_BCT
def_bool n def_bool n

View file

@ -29,8 +29,8 @@ enum {
/* Panel related GPIOs */ /* Panel related GPIOs */
LCD_EN = GPIO(V1), LCD_EN = GPIO(V1),
LCD_RST_L = GPIO(V2), LCD_RST_L = GPIO(V2),
EN_VDD18_LCD = GPIO(V3), EN_VDD18_LCD = GPIO(I0),
EN_VDD_LCD = GPIO(V4), EN_VDD_LCD = GPIO(I1),
}; };
#endif /* __MAINBOARD_NINTENDO_SWITCH_CBFS_GPIO_H__ */ #endif /* __MAINBOARD_NINTENDO_SWITCH_CBFS_GPIO_H__ */

View file

@ -98,6 +98,7 @@ static void setup_audio(void)
soc_configure_ape(); soc_configure_ape();
clock_enable_audio(); clock_enable_audio();
} }
#endif
static const struct pad_config lcd_gpio_padcfgs[] = { static const struct pad_config lcd_gpio_padcfgs[] = {
/* LCD_EN */ /* LCD_EN */
@ -167,7 +168,6 @@ static int configure_display_blocks(void)
return 0; return 0;
} }
#endif
static void powergate_unused_partitions(void) static void powergate_unused_partitions(void)
{ {
@ -197,18 +197,18 @@ static void mainboard_init(device_t dev)
soc_configure_i2c6pad(); soc_configure_i2c6pad();
i2c_init(I2C6_BUS); i2c_init(I2C6_BUS);
setup_audio(); setup_audio();
#endif
/* if panel needs to bringup */ /* if panel needs to bringup */
if (display_init_required()) if (display_init_required())
configure_display_blocks(); configure_display_blocks();
#endif
powergate_unused_partitions(); powergate_unused_partitions();
} }
void display_startup(device_t dev) void display_startup(device_t dev)
{ {
//dsi_display_startup(dev); dsi_display_startup(dev);
} }
static void mainboard_enable(device_t dev) static void mainboard_enable(device_t dev)