From: Heiko Schocher <hs-ynQEQJNshbs@public.gmane.org>
To: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Cc: U-Boot Mailing List
<u-boot-0aAXYlwwYIKGBzrmiIFOJg@public.gmane.org>,
Tom Warren <twarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Yen Lin <yelin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH v3 5/9] tegra: i2c: Add I2C driver
Date: Fri, 10 Feb 2012 07:29:46 +0100 [thread overview]
Message-ID: <4F34B95A.2030709@denx.de> (raw)
In-Reply-To: <1328318041-10943-6-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Hello Simon,
Simon Glass wrote:
> From: Yen Lin <yelin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>
> Add basic i2c driver for Tegra2 with 8- and 16-bit address support.
> The driver requires CONFIG_OF_CONTROL to obtain its configuration
> from the device tree.
>
> (Simon Glass: sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org modified for upstream)
>
> Signed-off-by: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
> ---
> Changes in v2:
> - Adjust definitions to fit new peripheral clock bindings
> - Change i2c array to static
> - Make i2c/dvc decision come from fdt
> - Remove i2c configuring using CONFIG (use fdt instead)
> - Return an error if an unavailable i2c bus is selected
> - Simplify code in i2c_addr_ok()
> - Tidy comment style
> - Use DIV_ROUND_UP() instead of a home-grown macro
> - Use new fdtdec alias decode function
>
> Changes in v3:
> - Add TEGRA_I2C_NUM_CONTROLLERS to select number of I2C ports
> - Add comment on how to select pinmux for I2C2
> - Change i2c_init() to reset speed and override the fdt setting
> - Fix i2c_addr_ok() function to check addresses correctly
> - Rename driver to tegra_i2c since it will later be shared with Tegra3
> - Tidy up I2C speed selection to use the peripheral clock
>
> arch/arm/include/asm/arch-tegra2/tegra_i2c.h | 160 ++++++++
> drivers/i2c/Makefile | 1 +
> drivers/i2c/tegra_i2c.c | 566 ++++++++++++++++++++++++++
> include/fdtdec.h | 2 +
> lib/fdtdec.c | 2 +
> 5 files changed, 731 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/include/asm/arch-tegra2/tegra_i2c.h
> create mode 100644 drivers/i2c/tegra_i2c.c
Acked-by: Heiko Schocher <hs-ynQEQJNshbs@public.gmane.org>
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2012-02-10 6:29 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-04 1:13 [PATCH v3 0/9] tegra: Add I2C driver and associated parts Simon Glass
[not found] ` <1328318041-10943-1-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-02-04 1:13 ` [PATCH v3 1/9] tegra: Rename NV_PA_PMC_BASE to TEGRA2_PMC_BASE Simon Glass
2012-02-04 1:13 ` [PATCH v3 2/9] fdt: Add function to allow aliases to refer to multiple nodes Simon Glass
2012-02-04 1:13 ` [PATCH v3 3/9] tegra: Enhance clock support to handle 16-bit clock divisors Simon Glass
[not found] ` <1328318041-10943-4-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-02-10 17:52 ` Tom Warren
2012-02-04 1:13 ` [PATCH v3 4/9] tegra: fdt: i2c: Add extra I2C bindings for U-Boot Simon Glass
[not found] ` <1328318041-10943-5-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-02-10 6:29 ` [U-Boot] " Heiko Schocher
2012-02-04 1:13 ` [PATCH v3 5/9] tegra: i2c: Add I2C driver Simon Glass
[not found] ` <1328318041-10943-6-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-02-09 23:17 ` Yen Lin
2012-02-10 6:29 ` Heiko Schocher [this message]
2012-02-04 1:13 ` [PATCH v3 6/9] tegra: i2c: Initialise I2C on Nvidia boards Simon Glass
[not found] ` <1328318041-10943-7-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-02-10 6:30 ` Heiko Schocher
2012-02-04 1:13 ` [PATCH v3 7/9] tegra: i2c: Select I2C ordering for Seaboard Simon Glass
[not found] ` <1328318041-10943-8-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-02-10 6:30 ` Heiko Schocher
2012-02-04 1:13 ` [PATCH v3 8/9] tegra: i2c: Select number of controllers for Tegra2 boards Simon Glass
[not found] ` <1328318041-10943-9-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-02-10 6:30 ` Heiko Schocher
2012-02-04 1:14 ` [PATCH v3 9/9] tegra: i2c: Enable I2C on Seaboard Simon Glass
2012-02-10 6:30 ` Heiko Schocher
2012-02-09 7:02 ` [PATCH v3 0/9] tegra: Add I2C driver and associated parts Heiko Schocher
[not found] ` <4F336F75.3010202-ynQEQJNshbs@public.gmane.org>
2012-02-09 17:35 ` [U-Boot] " Tom Warren
[not found] ` <5FBF8E85CA34454794F0F7ECBA79798F3792269860-wAPRp6hVlRhDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2012-02-10 6:22 ` Heiko Schocher
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=4F34B95A.2030709@denx.de \
--to=hs-ynqeqjnshbs@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=twarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=u-boot-0aAXYlwwYIKGBzrmiIFOJg@public.gmane.org \
--cc=yelin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).