diff options
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/allwinner/a10/twi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/allwinner/a10/twi.h b/src/cpu/allwinner/a10/twi.h index c5f2974140..3dbb3020ac 100644 --- a/src/cpu/allwinner/a10/twi.h +++ b/src/cpu/allwinner/a10/twi.h @@ -39,7 +39,7 @@ enum twi_status { #define TWI_CLK_M_MASK (0xf << 3) #define TWI_CLK_M(m) (((m - 1) << 3) & TWI_CLK_M_MASK) #define TWI_CLK_N_MASK (0x7 << 0) -#define TWI_CLK_N(n) (((n) << 3) & TWI_CLK_N_MASK) +#define TWI_CLK_N(n) ((n) & TWI_CLK_N_MASK) struct a1x_twi { u32 addr; /**< 0x00: Slave address */ |