From a1ab7a55ffc768da55e4cb30a87cfb85b1231902 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 4 Dec 2008 15:06:48 +0000 Subject: Meg-FX: s3c register definitions really should be unsigned. Switch from 'int' to 'unsigned long' like other targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19325 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.c') diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.c index 8300944243..836dedd462 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.c @@ -43,7 +43,7 @@ void i2c_write(int addr, const unsigned char *buf, int count) mutex_lock(&i2c_mtx); /* Turn on I2C clock */ - s3c_regset(&CLKCON, 1 << 16); + s3c_regset32(&CLKCON, 1 << 16); /* Set mode to master transmitter and enable lines */ IICSTAT = I2C_MODE_MASTER | I2C_MODE_TX | I2C_RXTX_ENB; @@ -76,7 +76,7 @@ void i2c_write(int addr, const unsigned char *buf, int count) IICSTAT = 0; /* Turn off I2C clock */ - s3c_regclr(&CLKCON, 1 << 16); + s3c_regclr32(&CLKCON, 1 << 16); mutex_unlock(&i2c_mtx); } @@ -92,11 +92,11 @@ void i2c_init(void) INTPND = IIC_MASK; /* Enable i2c interrupt in controller */ - s3c_regclr(&INTMOD, IIC_MASK); - s3c_regclr(&INTMSK, IIC_MASK); + s3c_regclr32(&INTMOD, IIC_MASK); + s3c_regclr32(&INTMSK, IIC_MASK); /* Turn on I2C clock */ - s3c_regset(&CLKCON, 1 << 16); + s3c_regset32(&CLKCON, 1 << 16); /* Set GPE15 (IICSDA) and GPE14 (IICSCL) to IIC */ GPECON = (GPECON & ~((3 << 30) | (3 << 28))) | @@ -110,7 +110,7 @@ void i2c_init(void) IICLC = (0 << 0); /* Turn off I2C clock */ - s3c_regclr(&CLKCON, 1 << 16); + s3c_regclr32(&CLKCON, 1 << 16); } void IIC(void) -- cgit v1.2.3