[U-Boot] [PATCH 12/13 v5] ARM: OMAP3: Add Overo board

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sun Nov 9 16:05:11 CET 2008


 +
> +/******************************************************************************
> + * Routine: misc_init_r
> + * Description: Init ethernet (done here so udelay works)
> + *****************************************************************************/
> +int misc_init_r(void)
> +{
> +
> +	unsigned char byte;
> +
> +#ifdef CONFIG_DRIVER_OMAP34XX_I2C
> +	i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
> +#endif
> +	/* set vaux2 to 2.8V */
> +	byte = 0x20;
> +	i2c_write(0x4B, 0x76, 1, &byte, 1);
> +	byte = 0x09;
> +	i2c_write(0x4B, 0x79, 1, &byte, 1);
> +
> +	/* set vaux3 to 2.8V */
> +	byte = 0x20;
> +	i2c_write(0x4B, 0x7A, 1, &byte, 1);
> +	byte = 0x03;
> +	i2c_write(0x4B, 0x7D, 1, &byte, 1);
> +
> +	/* set vpll2 to 1.8V */
> +	byte = 0xE0;
> +	i2c_write(0x4B, 0x8E, 1, &byte, 1);
> +	byte = 0x05;
> +	i2c_write(0x4B, 0x91, 1, &byte, 1);
> +
> +	/* set VDAC to 1.8V */
> +	byte = 0x20;
> +	i2c_write(0x4B, 0x96, 1, &byte, 1);
> +	byte = 0x03;
> +	i2c_write(0x4B, 0x99, 1, &byte, 1);
> +
> +	byte = 0x33;
> +	i2c_write(0x4A, 0xEE, 1, &byte, 1);
as beagle board please add a comment a comment to explain what you do on I2C
> +
> +	*((uint *) 0x49058034) = 0xFFFFFAF9;
> +	*((uint *) 0x49056034) = 0x0F9F0FFF;
> +	*((uint *) 0x49058094) = 0x00000506;
> +	*((uint *) 0x49056094) = 0xF060F000;
> +
> +	return 0;
> +}
Best Regards,
J.


More information about the U-Boot mailing list