LCD controller address can be accessed in u-boot?
My processor sdk version is ti-processor-sdk-linux-am335x-evm-08.02.00.24. The uboot version in psdk is 2021.1. I want to enable LCD driver in u-boot. I have selected the AM335X_LCD and DM_VIDEO driver component via "make menuconfig". But when running on the board, u-boot crashes during startup. After code tracing and positioning, I found that it would crash when accessing the LCD controller address.
In file drivers/video/am335x_fb.c:
static ulong am335x_fb_set_pixel_clk_rate(struct am335x_lcdhw *regs, ulong rate)
{
struct dpll_params dpll_disp = { 1, 0, 1, -1, -1, -1, -1 };
struct dpll_data dd;
ulong round_rate;
u32 reg;
round_rate = am335x_dpll_round_rate(&dd, rate);
if (IS_ERR_VALUE(round_rate))
return round_rate;
dpll_disp.m = dd.rounded_m;
dpll_disp.n = dd.rounded_n;
do_setup_dpll(&dpll_disp_regs, &dpll_disp);
reg = readl(®s->ctrl) & ~LCDC_CTRL_CLK_DIVISOR_MASK;
reg |= LCDC_CTRL_CLK_DIVISOR(dd.rounded_div);
writel(reg, ®s->ctrl);
return round_rate;
}
U-boot will crash when executing the red text code above.
I have serched for related issues on the site, but the u-boot versions are relatively old and have no reference value.
Is there anything else wrong with my configuration?