public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 05/10] [ARM] TQMA31: add support for	I2C, I2C temperature sensor and I2C-EEPROM
Date: Tue, 8 Jul 2008 12:36:01 +0200	[thread overview]
Message-ID: <20080708103601.GD10985@game.jcrosoft.org> (raw)
In-Reply-To: <20080704145008.12049.42306.stgit@tq-sewsrv-4.tq-net.de>

>  #if defined(CONFIG_DISPLAY_CPUINFO)
>  int print_cpuinfo (void)
>  {
> diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
> index 6f9306f..68d2720 100644
> --- a/drivers/i2c/mxc_i2c.c
> +++ b/drivers/i2c/mxc_i2c.c
> @@ -209,4 +209,17 @@ int i2c_write(uchar chip, uint addr, int alen, uchar *buf, int len)
>  	return 0;
>  }
>  
> +int i2c_get_bus_speed(void)
> +{
> +	return -1;
> +}
> +
> +int i2c_set_bus_speed (unsigned int speed)
> +{
> +	if (speed != CFG_I2C_SPEED)
> +		return -1;
> +
> +	return 0;
> +}
why do you refuse to change the i2c bus speed?
> +
>  #endif /* CONFIG_HARD_I2C */
> diff --git a/include/asm-arm/arch-mx31/mx31-regs.h b/include/asm-arm/arch-mx31/mx31-regs.h
> index ea15108..c0e516f 100644
> --- a/include/asm-arm/arch-mx31/mx31-regs.h
> +++ b/include/asm-arm/arch-mx31/mx31-regs.h
> @@ -168,6 +168,9 @@
>  
>  extern u32 mx31_get_ipg_clk(void);
>  extern void mx31_gpio_mux(unsigned long mode);
> +extern void mx31_pad_ctl (u32 field, u32 val);
>  
>  #endif /* __ASM_ARCH_MX31_H */
> diff --git a/include/configs/TQMA31.h b/include/configs/TQMA31.h
> index 255355d..f96fd74 100644
> --- a/include/configs/TQMA31.h
> +++ b/include/configs/TQMA31.h
> @@ -154,6 +154,43 @@
>  
>  
>  /*******************************************************************************
> + * I2C
> + ******************************************************************************/
> +
> +/* Use the processor internal controller */
> +#define CONFIG_HARD_I2C
> +#define CONFIG_I2C_MXC
> +
> +/* Configure I2C1 */
> +#define CFG_I2C_MX31_PORT1
> +
> +#define CFG_I2C_SPEED 			100000
please use tab instead of whitespace
> +#define CFG_I2C_SLAVE 			0
please use tab instead of whitespace
> +
> +/* Don't probe these addrs */
> +#define CFG_I2C_NOPROBES		{0x00}
> +
Best Regards,
J.

  reply	other threads:[~2008-07-08 10:36 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-04 14:50 [U-Boot-Users] [PATCH 00/10] [ARM] TQMA31: new board Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 01/10] [ARM] MXC: insert bus busy check in i2c_probe Jens Gehrlein
2008-07-05 15:59   ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-07 12:21     ` Jens Gehrlein
2008-07-07 14:55       ` Wolfgang Denk
2008-07-07 15:24         ` Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 02/10] [ARM] MX31: fix bit masks in function mx31_decode_pll() Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 03/10] [ARM] MX31: fix typos in defines for UART and SPI IO multiplexer pins Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 04/10] [ARM] TQMA31: add new board with i.MX31 processor Jens Gehrlein
2008-07-04 18:28   ` Magnus Lilja
2008-07-06 12:04   ` Magnus Lilja
2008-07-07 10:27   ` Detlev Zundel
2008-07-07 11:26     ` Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 05/10] [ARM] TQMA31: add support for I2C, I2C temperature sensor and I2C-EEPROM Jens Gehrlein
2008-07-08 10:36   ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2008-07-08 11:30     ` Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 06/10] [ARM] TQMA31: add support for SPI and SPI device MC13783-RTC Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 07/10] [ARM] TQMA31: adjust voltage regulators in PMIC MC13738 Jens Gehrlein
2008-07-04 18:28   ` Magnus Lilja
2008-07-08  8:55     ` Jens Gehrlein
2008-07-09 16:01       ` Magnus Lilja
2008-07-09 16:11         ` Detlev Zundel
2008-07-09 16:31           ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 08/10] [ARM] TQMA31: adjust pad property of IPU pin FPSHIFT for the display Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 09/10] [ARM] TQMA31: add FPGA configuration flash Jens Gehrlein
2008-07-08 10:37   ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 10/10] [ARM] TQMA31: new kernel param. to pass the eth MAC addr to the Linux eth chip driver Jens Gehrlein
2008-07-05 16:18   ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-07  7:38     ` Jens Gehrlein
2008-07-04 15:01 ` [U-Boot-Users] [PATCH 00/10] [ARM] TQMA31: new board Jens Gehrlein
2008-07-04 16:43   ` Peter Pearse
2008-07-06 22:38     ` Wolfgang Denk
2008-07-06 22:38   ` Wolfgang Denk
2008-07-04 18:28 ` Magnus Lilja

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080708103601.GD10985@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox