[U-Boot] [PATCH v3 1/6] arm: mvf600: Add Vybrid MVF600 CPU support

Fabio Estevam fabio.estevam at freescale.com
Tue May 21 15:48:13 CEST 2013


On 05/21/2013 06:02 AM, Alison Wang wrote:

> +#ifdef CONFIG_MXC_OCOTP
> +void enable_ocotp_clk(unsigned char enable)
> +{
> +	struct ccm_reg *ccm = (struct ccm_reg *)CCM_BASE_ADDR;
> +	u32 reg;
> +
> +	reg = readl(&ccm->ccgr6);
> +	if (enable)
> +		reg |= CCM_CCGR6_OCOTP_CTRL_MASK;
> +	else
> +		reg |= ~CCM_CCGR6_OCOTP_CTRL_MASK;

Don't you mean: reg &= ~CCM_CCGR6_OCOTP_CTRL_MASK; ?




More information about the U-Boot mailing list