Index: packages/hal/arm/snds//current/ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/hal/arm/snds/current/ChangeLog,v retrieving revision 1.5 diff -c -r1.5 ChangeLog *** packages/hal/arm/snds//current/ChangeLog 13 Feb 2003 19:08:45 -0000 1.5 --- packages/hal/arm/snds//current/ChangeLog 23 May 2003 23:06:35 -0000 *************** *** 1,3 **** --- 1,7 ---- + 2003-05-23 Michael Checky + + * include/plf_io.h: Added register defines for the I2C controller. + 2002-10-19 Jonathan Larmour * include/hal_platform_setup.h (PLATFORM_SETUP1): Only define if Index: packages/hal/arm/snds//current/include/plf_io.h =================================================================== RCS file: /cvs/ecos/ecos/packages/hal/arm/snds/current/include/plf_io.h,v retrieving revision 1.3 diff -c -r1.3 plf_io.h *** packages/hal/arm/snds//current/include/plf_io.h 5 Feb 2003 18:26:42 -0000 1.3 --- packages/hal/arm/snds//current/include/plf_io.h 23 May 2003 23:06:35 -0000 *************** *** 271,276 **** --- 271,294 ---- #define KS32C_UART_STAT_TC 0x80 // tx complete //----------------------------------------------------------------------------- + // I2C controller + + #define KS32C_I2CCON (KS32C_REG_BASE + 0xf000) + #define KS32C_I2CBUF (KS32C_REG_BASE + 0xf004) + #define KS32C_I2CPS (KS32C_REG_BASE + 0xf008) + #define KS32C_I2CCNT (KS32C_REG_BASE + 0xf00c) + + #define KS32C_I2C_CON_BF (0x1 << 0) + #define KS32C_I2C_CON_IEN (0x1 << 1) + #define KS32C_I2C_CON_LRB (0x1 << 2) + #define KS32C_I2C_CON_ACK (0x1 << 3) + #define KS32C_I2C_CON_START (0x1 << 4) + #define KS32C_I2C_CON_STOP (0x1 << 5) + #define KS32C_I2C_CON_RESTART (0x3 << 4) + #define KS32C_I2C_CON_BUSY (0x1 << 6) + #define KS32C_I2C_CON_RESET (0x1 << 7) + + //----------------------------------------------------------------------------- // Cache #define KS32C_CACHE_SET0_ADDR 0x14000000 #define KS32C_CACHE_SET1_ADDR 0x14800000