#include <common.h>
#include <i2c.h>
-#include <asm/arch/gpio.h>
#include <asm/arch/adc.h>
+#include <asm/arch/gpio.h>
+#include <asm/arch/mmc.h>
DECLARE_GLOBAL_DATA_PTR;
static void check_auto_burn(void)
{
- unsigned long magic_base = CONFIG_SYS_SDRAM_BASE + 0x02000000;
+ unsigned int magic_base = CONFIG_SYS_SDRAM_BASE + 0x02000000;
unsigned int count = 0;
char buf[64];
}
/* Clear the magic value */
- memset(magic_base, 0, 2);
+ memset((void *)magic_base, 0, 2);
}
#define LP3974_REG_ONOFF1 0x11
{
unsigned char addr;
unsigned char val[2];
- char buf[4];
addr = 0xC0 >> 1; /* MAX8952 */
if (max8952_probe())
*
* Returns: 0 on success, not 0 on failure
*/
+int i2c_read_r(uchar chip, uint addr, int alen, uchar *buffer, int len);
int i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len);
int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len);