: tsi108 i2c support
PATCH 7/8 : tsi108 i2c support
Hello list,
inside the automatic U-Boot patch tracking system a new ticket [DNX#2006072842000051] was created:
<snip>
Quoted 92 lines
tsi108 i2c support.
Signed-off-by Alexandre Bounine <[email protected]>Signed-off-by Roy Zang <[email protected]>--- board/mpc7448hpc2/ts_i2c.h | 104 ++++++++++++++ board/mpc7448hpc2/tsi108_i2c.c | 295 ++++++++++++++++++++++++++++++++++++++++ board/mpc7448hpc2/tsi108_i2c.h | 42 ++++++ 3 files changed, 441 insertions(+), 0 deletions(-)board/mpc7448hpc2/ts_i2c.h new file +24
-0@@ -0,0 +1,104 @@ +/* +* (C) Copyright 2004-05; Tundra Semiconductor Corp. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _TS_I2C_H_ +#define _TS_I2C_H_ + +#define I2C_NUM_REGS_TO_TEST
0x00000004board/mpc7448hpc2/ts_i2c.h new file +5
-0+ +/* +* I2C : Register address offset definitions +*/ +#define I2C_CNTRL1 (
0x00000000)
+#defineI2C_CNTRL2
(0x00000004)
+#defineI2C_RD_DATA
(0x00000008)
+#defineI2C_TX_DATA
(0x0000000c)board/mpc7448hpc2/ts_i2c.h new file +8
-0+ +/* +* I2C : Register Bit Masks and Reset Values +* definitions for every register +*/ + +/* I2C_CNTRL1 : Reset Value */ +#define I2C_CNTRL1_RESET_VALUE (
0x0000000a)board/mpc7448hpc2/ts_i2c.h new file +3
-0+ +/* I2C_CNTRL1 : Register Bits Masks Definitions */ +#define I2C_CNTRL1_DEVCODE (
0x0000000f)
+#defineI2C_CNTRL1_PAGE
(0x00000700)
+#defineI2C_CNTRL1_BYTADDR
(0x00ff0000)
+#defineI2C_CNTRL1_I2CWRITE
(0x01000000)board/mpc7448hpc2/ts_i2c.h new file +3
-0+ +/* I2C_CNTRL1 : Read/Write Bit Mask Definition */ +#define I2C_CNTRL1_RWMASK (
0x01ff070f)board/mpc7448hpc2/ts_i2c.h new file +3
-0+ +/* I2C_CNTRL1 : Unused/Reserved bits Definition */ +#define I2C_CNTRL1_RESERVED (
0xfe00f8f0)board/mpc7448hpc2/ts_i2c.h new file +3
-0+ +/* I2C_CNTRL2 : Reset Value */ +#define I2C_CNTRL2_RESET_VALUE (
0x00000000)board/mpc7448hpc2/ts_i2c.h new file +3
-0+ +/* I2C_CNTRL2 : Register Bits Masks Definitions */ +#define I2C_CNTRL2_SIZE (
0x00000003)
+#defineI2C_CNTRL2_LANE
(0x0000000c)
Quoted 8 lines
+#define
I2C_CNTRL2_MULTIBYTE
(0x00000010)
+#defineI2C_CNTRL2_START
(0x00000100)
+#defineI2C_CNTRL2_WR_STATUS
(0x00010000)
+#defineI2C_CNTRL2_RD_STATUS
(0x00020000)
</snip>
Your U-Boot support team