On Monday, July 13, 2015 at 05:23:16 PM, Otavio Salvador wrote:
> Add LVDS and HDMI support.
> 
> Signed-off-by: Otavio Salvador <ota...@ossystems.com.br>

[...]

> +static void setup_display(void)
> +{
> +     struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
> +     struct iomuxc *iomux = (struct iomuxc *)IOMUXC_BASE_ADDR;
> +     int reg;
> +
> +     enable_ipu_clock();
> +     imx_setup_hdmi();
> +
> +     /* Turn on LDB0, LDB1, IPU,IPU DI0 clocks */
> +     reg = __raw_readl(&mxc_ccm->CCGR3);
> +     reg |= MXC_CCM_CCGR3_LDB_DI0_MASK | MXC_CCM_CCGR3_LDB_DI1_MASK;

setbits_le32() ?

> +     writel(reg, &mxc_ccm->CCGR3);

[...]

> +     reg = readl(&iomux->gpr[3]);
> +     reg = (reg & ~(IOMUXC_GPR3_LVDS1_MUX_CTL_MASK |
> +            IOMUXC_GPR3_HDMI_MUX_CTL_MASK))
> +         | (IOMUXC_GPR3_MUX_SRC_IPU1_DI0 <<
> +            IOMUXC_GPR3_LVDS1_MUX_CTL_OFFSET);

Why is this pipe (bitwise OR operator) once on the right, the next time
on the left ? Consistency please :-(

> +     writel(reg, &iomux->gpr[3]);
> +}
[...]

Best regards,
Marek Vasut
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to