[U-Boot-Users] [DNX#2006072842000051] [PATCH 07/08]: tsi108 i2c support

DENX Support System support at denx.de
Fri Jul 28 12:00:04 CEST 2006


Hello list,

inside the automatic U-Boot patch tracking system a new ticket
[DNX#2006072842000051] was created:

<snip>
> tsi108 i2c support.
> 
> Signed-off-by: Alexandre Bounine <alexandreb at tundra.com>
> Signed-off-by: Roy Zang	<tie-fei.zang at freescale.com>
> 
> ---
>  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(-)
> 
> diff --git a/board/mpc7448hpc2/ts_i2c.h b/board/mpc7448hpc2/ts_i2c.h
> new file mode 100644
> index 0000000..722b06f
> --- /dev/null
> +++ b/board/mpc7448hpc2/ts_i2c.h
> @@ -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
> 0x00000004
> +
> +/* 
> + * I2C : Register address offset definitions
> + */
> +#define I2C_CNTRL1
> (0x00000000)
> +#define I2C_CNTRL2
> (0x00000004)
> +#define I2C_RD_DATA
> (0x00000008)
> +#define I2C_TX_DATA
> (0x0000000c)
> +
> +/*
> + * I2C : Register Bit Masks and Reset Values
> + *           definitions for every register 
> + */
> +
> +/* I2C_CNTRL1 : Reset Value */
> +#define I2C_CNTRL1_RESET_VALUE
> (0x0000000a)
> +
> +/* I2C_CNTRL1 : Register Bits Masks Definitions */
> +#define I2C_CNTRL1_DEVCODE
> (0x0000000f)
> +#define I2C_CNTRL1_PAGE
> (0x00000700)
> +#define I2C_CNTRL1_BYTADDR
> (0x00ff0000)
> +#define I2C_CNTRL1_I2CWRITE
> (0x01000000)
> +
> +/* I2C_CNTRL1 : Read/Write Bit Mask Definition */
> +#define I2C_CNTRL1_RWMASK
> (0x01ff070f)
> +
> +/* I2C_CNTRL1 : Unused/Reserved bits Definition */
> +#define I2C_CNTRL1_RESERVED
> (0xfe00f8f0)
> +
> +/* I2C_CNTRL2 : Reset Value */
> +#define I2C_CNTRL2_RESET_VALUE
> (0x00000000)
> +
> +/* I2C_CNTRL2 : Register Bits Masks Definitions */
> +#define I2C_CNTRL2_SIZE
> (0x00000003)
> +#define I2C_CNTRL2_LANE
> (0x0000000c)
> +#define I2C_CNTRL2_MULTIBYTE
> (0x00000010)
> +#define I2C_CNTRL2_START
> (0x00000100)
> +#define I2C_CNTRL2_WR_STATUS
> (0x00010000)
> +#define I2C_CNTRL2_RD_STATUS
> (0x00020000)
</snip>

Your U-Boot support team




More information about the U-Boot mailing list