[PATCH 2/3] ARM: tegra: harmony: register i2c devices

Sergei Shtylyov sshtylyov at mvista.com
Mon Mar 7 10:43:44 EST 2011


Hello.

On 07-03-2011 11:26, Olof Johansson wrote:

> Register the base i2c busses on harmony. Devices coming at a later date,
> but this allows for hand-probing of some of them at least.

> Signed-off-by: Olof Johansson<olof at lixom.net>
> ---
>   arch/arm/mach-tegra/board-harmony.c |   32 ++++++++++++++++++++++++++++++++
>   1 files changed, 32 insertions(+), 0 deletions(-)

> diff --git a/arch/arm/mach-tegra/board-harmony.c b/arch/arm/mach-tegra/board-harmony.c
> index 38c2ab8..d46268d 100644
> --- a/arch/arm/mach-tegra/board-harmony.c
> +++ b/arch/arm/mach-tegra/board-harmony.c
[...]
> @@ -78,6 +80,35 @@ static struct platform_device harmony_audio_device = {
>   	},
>   };
>
> +static struct tegra_i2c_platform_data harmony_i2c1_platform_data = {
> +	.bus_clk_rate   = 400000,
> +};
> +
> +static struct tegra_i2c_platform_data harmony_i2c2_platform_data = {
> +	.bus_clk_rate   = 400000,
> +};
> +
> +static struct tegra_i2c_platform_data harmony_i2c3_platform_data = {
> +	.bus_clk_rate   = 400000,
> +};
> +
> +static struct tegra_i2c_platform_data harmony_dvc_platform_data = {
> +	.bus_clk_rate   = 400000,
> +};

    Why not share the paltform data between devices if it's the same anyway?

WBR, Sergei



More information about the linux-arm-kernel mailing list