diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-05-05 10:32:46 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-05-05 10:32:46 +0000 |
commit | 357ffb3c46a6c371fd84b56acd6f69cb6aad9bb8 (patch) | |
tree | 29035132e1313259010b945c7e37595939d369d9 /firmware/target/arm/tms320dm320/i2c-dm320.c | |
parent | ef5fa8eaf541a19ccf953051f119e4f56cf3c445 (diff) | |
download | rockbox-357ffb3c46a6c371fd84b56acd6f69cb6aad9bb8.tar.gz rockbox-357ffb3c46a6c371fd84b56acd6f69cb6aad9bb8.zip |
Convert the whole codebase to UTF-8, except docs/COMMITTERS and tools/creative.c, which need checking.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17369 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/i2c-dm320.c')
-rwxr-xr-x | firmware/target/arm/tms320dm320/i2c-dm320.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/target/arm/tms320dm320/i2c-dm320.c b/firmware/target/arm/tms320dm320/i2c-dm320.c index a87019c69c..7915ca5a94 100755 --- a/firmware/target/arm/tms320dm320/i2c-dm320.c +++ b/firmware/target/arm/tms320dm320/i2c-dm320.c | |||
@@ -9,7 +9,7 @@ | |||
9 | * | 9 | * |
10 | * Copyright (C) 2008 by Maurus Cuelenaere | 10 | * Copyright (C) 2008 by Maurus Cuelenaere |
11 | * | 11 | * |
12 | * DM320 I²C driver | 12 | * DM320 I²C driver |
13 | * | 13 | * |
14 | * All files in this archive are subject to the GNU General Public License. | 14 | * All files in this archive are subject to the GNU General Public License. |
15 | * See the file COPYING in the source tree root for full license agreement. | 15 | * See the file COPYING in the source tree root for full license agreement. |
@@ -145,12 +145,12 @@ int i2c_read(unsigned short address, unsigned char* buf, int count) | |||
145 | void i2c_init(void) | 145 | void i2c_init(void) |
146 | { | 146 | { |
147 | #if 0 //TODO: mimic OF I2C clock settings; currently this is done by the bootloader | 147 | #if 0 //TODO: mimic OF I2C clock settings; currently this is done by the bootloader |
148 | IO_CLK_MOD2 &= ~CLK_MOD2_I2C; // turn I²C clock off (just to be sure) | 148 | IO_CLK_MOD2 &= ~CLK_MOD2_I2C; // turn I²C clock off (just to be sure) |
149 | IO_CLK_LPCTL1 &= ~1; // set Powerdown mode to off | 149 | IO_CLK_LPCTL1 &= ~1; // set Powerdown mode to off |
150 | IO_CLK_SEL0 &= ~0x800; // set I²C clock to PLLA | 150 | IO_CLK_SEL0 &= ~0x800; // set I²C clock to PLLA |
151 | IO_CLK_DIV4 &= ~0x1F; // I²C clock division = 1 | 151 | IO_CLK_DIV4 &= ~0x1F; // I²C clock division = 1 |
152 | IO_CLK_MOD2 |= CLK_MOD2_I2C; // enable I²C clock | 152 | IO_CLK_MOD2 |= CLK_MOD2_I2C; // enable I²C clock |
153 | #endif | 153 | #endif |
154 | IO_I2C_SCS &= ~0x8; //set clock to 100 kHz | 154 | IO_I2C_SCS &= ~0x8; //set clock to 100 kHz |
155 | IO_INTC_EINT2 &= ~INTR_EINT2_I2C; // disable I²C interrupt | 155 | IO_INTC_EINT2 &= ~INTR_EINT2_I2C; // disable I²C interrupt |
156 | } | 156 | } |