From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 07/12] sunxi: Add i2c support
Date: Mon, 09 Jun 2014 16:48:18 +0200 [thread overview]
Message-ID: <5395C932.10004@redhat.com> (raw)
In-Reply-To: <538EA1DE.8020407@denx.de>
Hi,
On 06/04/2014 06:34 AM, Heiko Schocher wrote:
> Hello Hans,
>
> Am 03.06.2014 21:41, schrieb Hans de Goede:
>> Add support for the i2c controller found on all Allwinner sunxi SoCs,
>> this is the same controller as found on the Marvell orion5x and kirkwood
>> SoC families, with a slightly different register layout, so this patch uses
>> the existing mvtwsi code.
>>
>> Signed-off-by: Hans de Goede<hdegoede@redhat.com>
>> Acked-by: Ian Campbell<ijc@hellion.org.uk>
>> ---
>> arch/arm/cpu/armv7/sunxi/board.c | 6 ++++++
>> arch/arm/include/asm/arch-sunxi/i2c.h | 15 +++++++++++++++
>> board/sunxi/board.c | 7 +++++++
>> drivers/i2c/Makefile | 1 +
>> drivers/i2c/mvtwsi.c | 18 ++++++++++++++++++
>> include/configs/sunxi-common.h | 9 +++++++++
>> 6 files changed, 56 insertions(+)
>> create mode 100644 arch/arm/include/asm/arch-sunxi/i2c.h
> [...]
>> diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
>> index 1d1c87d..2db083c 100644
>> --- a/include/configs/sunxi-common.h
>> +++ b/include/configs/sunxi-common.h
>> @@ -161,6 +161,15 @@
>> #undef CONFIG_CMD_NET
>> #undef CONFIG_CMD_NFS
>>
>> +/* I2C */
>> +#define CONFIG_SPL_I2C_SUPPORT
>> +/* No CONFIG_SYS_I2C as we use the non converted mvtwsi driver */
>> +#define CONFIG_HARD_I2C
>
> NACK. Goal is to get rid of HARD_I2C define ... please convert this
> driver to fit with CONFIG_SYS_I2C framework.
> A fast look in this driver, this should not to be to hard, as this
> driver does not support multi busses...
>
> A good example for porting a i2c driver with no multibus support is:
>
> commit 0bdffe71fddeaa46768a39305797e4512dee0f15
> Author: Heiko Schocher <hs@denx.de>
> Date: Fri Nov 8 07:30:53 2013 +0100
>
> i2c, zynq: convert zynq i2c driver to new multibus/multiadapter framework
Ok, one patch converting the mvtwsi driver to CONFIG_SYS_I2C coming up.
Note I've tested this on multiple sunxi boards / SoC generations, but
I don't have any kirkwood or orion5x boards, so I cannot guarantee that
this patch won't cause regressions there (I've compile tested the patch
with kirkwood and orion5x board configs).
Regards,
Hans
next prev parent reply other threads:[~2014-06-09 14:48 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-03 19:41 [U-Boot] [PATCH v2 00/12] sunxi: Bug fixes, sun4i and sun5i support, pmic support and network improvements Hans de Goede
2014-06-03 19:41 ` [U-Boot] [PATCH v2 01/12] sunxi: mksunxiboot: Fix loading of files with a size which is not a multiple of 4 Hans de Goede
2014-06-03 19:41 ` [U-Boot] [PATCH v2 02/12] sunxi: Fix u-boot-spl.lds to refer to .vectors Hans de Goede
2014-06-03 19:41 ` [U-Boot] [PATCH v2 03/12] sunxi: Remove mmc DMA support Hans de Goede
2014-06-03 19:41 ` [U-Boot] [PATCH v2 04/12] sunxi: Implement reset_cpu Hans de Goede
2014-06-03 19:41 ` [U-Boot] [PATCH v2 05/12] sunxi: Add sun4i support Hans de Goede
2014-06-05 18:13 ` Ian Campbell
2014-06-03 19:41 ` [U-Boot] [PATCH v2 06/12] sunxi: Add sun5i support Hans de Goede
2014-06-05 18:14 ` Ian Campbell
2014-06-03 19:41 ` [U-Boot] [PATCH v2 07/12] sunxi: Add i2c support Hans de Goede
2014-06-04 4:34 ` Heiko Schocher
2014-06-09 14:48 ` Hans de Goede [this message]
2014-06-03 19:41 ` [U-Boot] [PATCH v2 08/12] sunxi: Add axp209 pmic support Hans de Goede
2014-06-05 18:40 ` Ian Campbell
2014-06-09 8:25 ` Hans de Goede
2014-06-09 8:50 ` Ian Campbell
2014-06-09 8:59 ` Hans de Goede
2014-06-09 9:06 ` Albert ARIBAUD
2014-06-09 9:08 ` Hans de Goede
2014-06-09 10:09 ` Ian Campbell
2014-06-03 19:41 ` [U-Boot] [PATCH v2 09/12] sunxi: Add axp152 " Hans de Goede
2014-06-05 18:48 ` Ian Campbell
2014-06-03 19:42 ` [U-Boot] [PATCH v2 10/12] net: Rename and cleanup sunxi (Allwinner) emac driver Hans de Goede
2014-06-03 19:42 ` [U-Boot] [PATCH v2 11/12] sunxi: Add emac glue, enable emac on the cubieboard Hans de Goede
2014-06-05 18:49 ` Ian Campbell
2014-06-03 19:42 ` [U-Boot] [PATCH v2 12/12] sunxi: Add support for using MII phy-s with the GMAC nic Hans de Goede
2014-06-05 18:50 ` Ian Campbell
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=5395C932.10004@redhat.com \
--to=hdegoede@redhat.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