11 #include <soc/addressmap.h>
12 #include <soc/clock.h>
13 #include <soc/display.h>
17 #include <soc/mmu_operations.h>
42 int retry_count_init = 0;
43 int retry_count_edp_prepare = 0;
68 while (retry_count_init++ < 3) {
74 if (retry_count_init == 3) {
105 1 << 7 | 0 << 6 | 0 << 5 | 0 << 0));
142 switch (detected_mode) {
150 if (retry_count_edp_prepare++ < 3) {
static void write32(void *addr, uint32_t val)
#define printk(level,...)
int rk_edp_get_edid(struct edid *edid)
struct fb_info * fb_new_framebuffer_info_from_edid(const struct edid *edid, uintptr_t fb_addr)
void mainboard_power_on_backlight(void)
const struct mipi_panel_data * mainboard_get_mipi_mode(struct edid_mode *edid_mode)
void edid_set_framebuffer_bits_per_pixel(struct edid *edid, int fb_bpp, int row_byte_alignment)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define BIOS_WARNING
BIOS_WARNING - Bad configuration.
static struct rk3399_grf_regs *const rk3399_grf
#define RK_CLRSETBITS(clr, set)
void rk_mipi_prepare(const struct edid *edid, const struct mipi_panel_data *panel_data)
static struct rk3288_cru_reg *const cru_ptr
void rkclk_configure_vop_aclk(u32 vop_id, u32 aclk_hz)
void rkclk_configure_edp(void)
int rkclk_configure_vop_dclk(u32 vop_id, u32 dclk_hz)
void rk_display_init(struct device *dev, u32 lcdbase, unsigned long fb_size)
void rkclk_configure_mipi(void)
static void reset_edp(void)
DEVTREE_CONST void * chip_info
u32 framebuffer_bits_per_pixel
void rkvop_mode_set(u32 vop_id, const struct edid *edid, u32 mode)
void rkvop_prepare(u32 vop_id, const struct edid *edid)