ARM: tegra: paz00 patches for 2.6.40
Subsystems (3)
cover ARM: tegra: paz00 patches for 2.6.40
Hi Collin,
the following patches are intended for 2.6.40 merge. They are mostly similar to the TrimSlice patches sent by Mike a few days ago.
We are still stuggling with the sound codec (alc5632) and the nvec, so there is nothing to connect to the i2c yet. On the other hand, I'm wondering what's up with the atd7461 included in most (all?) boards. It's compatible with lm90, but the driver will never register because of the wrong name.
May I ask if there is some timeline for framebuffer integration? A netbook without display is of not much use (ok, same holds for keyboard/mouse).
Thanks!
Marc
Marc Dietrich (4):
ARM: tegra: paz00: whitespace cleanup
ARM: tegra: paz00: register i2c busses
ARM: tegra: paz00: enable usb ports
ARM: tegra: paz00: cleanup sdhci ports
arch/arm/mach-tegra/board-paz00-pinmux.c | 10 ++--- arch/arm/mach-tegra/board-paz00.c | 72 +++++++++++++++++++++++++---- arch/arm/mach-tegra/board-paz00.h | 10 ++--- 3 files changed, 70 insertions(+), 22 deletions(-)
Signature · 1 line
1.7.4.2
PATCH 1/4 ARM: tegra: paz00: whitespace cleanup
--- arch/arm/mach-tegra/board-paz00-pinmux.c | 12 ++++++------ arch/arm/mach-tegra/board-paz00.h | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-)
arch/arm/mach-tegra/board-paz00-pinmux.c +6 -6
@@ -141,12 +141,12 @@ static struct tegra_pingroup_config paz00_pinmux[] = { };static struct tegra_gpio_table gpio_table[] = { - { .gpio =TEGRA_GPIO_SD1_CD , .enable = true }, - { .gpio =TEGRA_GPIO_SD1_WP , .enable = true }, - { .gpio =TEGRA_GPIO_SD1_POWER , .enable = true }, - { .gpio =TEGRA_GPIO_SD4_CD , .enable = true }, - { .gpio =TEGRA_GPIO_SD4_WP , .enable = true }, - { .gpio =TEGRA_GPIO_SD4_POWER , .enable = true }, + { .gpio =TEGRA_GPIO_SD1_CD , .enable = true }, + { .gpio =TEGRA_GPIO_SD1_WP , .enable = true }, + { .gpio =TEGRA_GPIO_SD1_POWER , .enable = true }, + { .gpio =TEGRA_GPIO_SD4_CD , .enable = true }, + { .gpio =TEGRA_GPIO_SD4_WP , .enable = true }, + { .gpio =TEGRA_GPIO_SD4_POWER , .enable = true }, };void paz00_pinmux_init (void )
arch/arm/mach-tegra/board-paz00.h +6 -6
@@ -17,12 +17,12 @@#ifndef _MACH_TEGRA_BOARD_PAZ00_H#define _MACH_TEGRA_BOARD_PAZ00_H -#define TEGRA_GPIO_SD1_CD TEGRA_GPIO_PV5 -#define TEGRA_GPIO_SD1_WP TEGRA_GPIO_PH1 -#define TEGRA_GPIO_SD1_POWER TEGRA_GPIO_PT3 -#define TEGRA_GPIO_SD4_CD TEGRA_GPIO_PH2 -#define TEGRA_GPIO_SD4_WP TEGRA_GPIO_PH3 -#define TEGRA_GPIO_SD4_POWER TEGRA_GPIO_PI6 +#define TEGRA_GPIO_SD1_CD TEGRA_GPIO_PV5 +#define TEGRA_GPIO_SD1_WP TEGRA_GPIO_PH1 +#define TEGRA_GPIO_SD1_POWER TEGRA_GPIO_PT3 +#define TEGRA_GPIO_SD4_CD TEGRA_GPIO_PH2 +#define TEGRA_GPIO_SD4_WP TEGRA_GPIO_PH3 +#define TEGRA_GPIO_SD4_POWER TEGRA_GPIO_PI6void paz00_pinmux_init (void );
Signature · 1 line
1.7.4.2
PATCH 1/4 ARM: tegra: paz00: whitespace cleanup
Quoted 2 lines · Marc Dietrich
Signed-off-by Marc Dietrich <[email protected]>
Please provide a simple changelog, not just a topic. I know, there isn't much to write home about on this one but it's good habit.
Same applies to patch 2 and 3 in this series.
-Olof
PATCH 1/4 ARM: tegra: paz00: whitespace cleanup
Hi Olof,
Quoted 7 lines · Marc Dietrich
Quoted 1 line
Signed-off-by Marc Dietrich <[email protected]>Please provide a simple changelog, not just a topic. I know, there isn't much to write home about on this one but it's good habit.
Same applies to patch 2 and 3 in this series.
arrr - again.
Sorry, will resubmit (with two more changes).
Thanks
Marc
PATCH 2/4 ARM: tegra: paz00: register i2c busses
In reply to Marc Dietrich--- arch/arm/mach-tegra/board-paz00.c | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-)
arch/arm/mach-tegra/board-paz00.c +27 -0
@@ -25,6 +25,8 @@#include <linux/dma-mapping.h> #include <linux/pda_power.h> #include <linux/io.h> +#include <linux/i2c.h> +#include <linux/i2c-tegra.h> #include <asm/mach-types.h> #include <asm/mach/arch.h>
@@ -70,6 +72,29 @@ static struct platform_device *paz00_devices[] __initdata = { &tegra_sdhci_device4, }; +static struct tegra_i2c_platform_data paz00_i2c1_platform_data = { + .bus_clk_rate =400000 , +}; + +static struct tegra_i2c_platform_data paz00_i2c2_platform_data = { + .bus_clk_rate =400000 , +}; + +static struct tegra_i2c_platform_data paz00_dvc_platform_data = { + .bus_clk_rate =400000 , +}; + +static void paz00_i2c_init (void ) +{ + tegra_i2c_device1.dev.platform_data = &paz00_i2c1_platform_data; + tegra_i2c_device2.dev.platform_data = &paz00_i2c2_platform_data; + tegra_i2c_device4.dev.platform_data = &paz00_dvc_platform_data; + +platform_device_register (&tegra_i2c_device1); +platform_device_register (&tegra_i2c_device2); +platform_device_register (&tegra_i2c_device4); +} +static void __init tegra_paz00_fixup (struct machine_desc *desc,struct tag *tags,char **cmdline,struct meminfo *mi) {
@@ -115,6 +140,8 @@ static void __init tegra_paz00_init(void) tegra_sdhci_device4.dev.platform_data = &sdhci_pdata4;platform_add_devices (paz00_devices,ARRAY_SIZE (paz00_devices)); + +paz00_i2c_init (); }MACHINE_START (PAZ00 ,"paz00" )
Signature · 1 line
1.7.4.2
PATCH 3/4 ARM: tegra: paz00: enable usb ports
In reply to Marc Dietrich--- arch/arm/mach-tegra/board-paz00-pinmux.c | 1 + arch/arm/mach-tegra/board-paz00.c | 35 +++++++++++++++++++++++++++++- arch/arm/mach-tegra/board-paz00.h | 1 + 3 files changed, 36 insertions(+), 1 deletions(-)
arch/arm/mach-tegra/board-paz00-pinmux.c +1 -0
@@ -147,6 +147,7 @@ static struct tegra_gpio_table gpio_table[] = { { .gpio = TEGRA_GPIO_SD4_CD, .enable = true }, { .gpio = TEGRA_GPIO_SD4_WP, .enable = true }, { .gpio = TEGRA_GPIO_SD4_POWER, .enable = true }, + { .gpio = TEGRA_ULPI_RST, .enable = true }, };void paz00_pinmux_init (void )
arch/arm/mach-tegra/board-paz00.c +34 -1
@@ -27,6 +27,7 @@#include <linux/io.h> #include <linux/i2c.h> #include <linux/i2c-tegra.h> +#include <linux/platform_data/tegra_usb.h> #include <asm/mach-types.h> #include <asm/mach/arch.h>
@@ -36,6 +37,8 @@#include <mach/iomap.h> #include <mach/irqs.h> #include <mach/sdhci.h> +#include <mach/usb_phy.h> +#include <mach/gpio.h> #include "board.h" #include "board-paz00.h"
@@ -95,6 +98,36 @@ static void paz00_i2c_init(void)platform_device_register (&tegra_i2c_device4); } +static struct tegra_ulpi_config ulpi_phy_config = { + .reset_gpio =TEGRA_ULPI_RST , + .clk ="cdev2" , +}; + +static struct tegra_ehci_platform_data tegra_ehci_pdata[] = { + [0 ] = { + .operating_mode =TEGRA_USB_OTG , + .power_down_on_bus_suspend =1 , + }, + [1 ] = { + .phy_config = &ulpi_phy_config, + .operating_mode =TEGRA_USB_HOST , + .power_down_on_bus_suspend =1 , + }, + [2 ] = { + .operating_mode =TEGRA_USB_HOST , + .power_down_on_bus_suspend =1 , + }, +}; + +static void paz00_usb_init (void ) +{ + tegra_ehci2_device.dev.platform_data = &tegra_ehci_pdata[1 ]; + tegra_ehci3_device.dev.platform_data = &tegra_ehci_pdata[2 ]; + +platform_device_register (&tegra_ehci2_device); +platform_device_register (&tegra_ehci3_device); +} +static void __init tegra_paz00_fixup (struct machine_desc *desc,struct tag *tags,char **cmdline,struct meminfo *mi) {
@@ -109,7 +142,6 @@ static __initdata struct tegra_clk_init_table paz00_clk_init_table[] = { { NULL, NULL, 0, 0}, }; -static struct tegra_sdhci_platform_data sdhci_pdata1 = { .cd_gpio =TEGRA_GPIO_SD1_CD , .wp_gpio = TEGRA_GPIO_SD1_WP,
@@ -142,6 +174,7 @@ static void __init tegra_paz00_init(void)platform_add_devices (paz00_devices,ARRAY_SIZE (paz00_devices));paz00_i2c_init (); +paz00_usb_init (); }MACHINE_START (PAZ00 ,"paz00" )
arch/arm/mach-tegra/board-paz00.h +1 -0
@@ -23,6 +23,7 @@#define TEGRA_GPIO_SD4_CD TEGRA_GPIO_PH2#define TEGRA_GPIO_SD4_WP TEGRA_GPIO_PH3#define TEGRA_GPIO_SD4_POWER TEGRA_GPIO_PI6 +#define TEGRA_ULPI_RST TEGRA_GPIO_PV0void paz00_pinmux_init (void );
Signature · 1 line
1.7.4.2
PATCH 4/4 ARM: tegra: paz00: cleanup sdhci ports
In reply to Marc DietrichThe internal storage has no gpios connected to. Also the second port is not connected at all, so remove it from the board file.
--- arch/arm/mach-tegra/board-paz00-pinmux.c | 3 --- arch/arm/mach-tegra/board-paz00.c | 10 +--------- arch/arm/mach-tegra/board-paz00.h | 3 --- 3 files changed, 1 insertions(+), 15 deletions(-)
arch/arm/mach-tegra/board-paz00-pinmux.c +0 -3
@@ -144,9 +144,6 @@ static struct tegra_gpio_table gpio_table[] = { { .gpio = TEGRA_GPIO_SD1_CD, .enable = true }, { .gpio = TEGRA_GPIO_SD1_WP, .enable = true }, { .gpio = TEGRA_GPIO_SD1_POWER, .enable = true }, - { .gpio = TEGRA_GPIO_SD4_CD, .enable = true }, - { .gpio = TEGRA_GPIO_SD4_WP, .enable = true }, - { .gpio = TEGRA_GPIO_SD4_POWER, .enable = true }, { .gpio = TEGRA_ULPI_RST, .enable = true }, };
arch/arm/mach-tegra/board-paz00.c +1 -9
@@ -71,7 +71,6 @@ static struct platform_device debug_uart = {static struct platform_device *paz00_devices[]__initdata = { &debug_uart, &tegra_sdhci_device1, - &tegra_sdhci_device2, &tegra_sdhci_device4, };
@@ -148,16 +147,10 @@ static struct tegra_sdhci_platform_data sdhci_pdata1 = { .power_gpio = TEGRA_GPIO_SD1_POWER, }; -static struct tegra_sdhci_platform_data sdhci_pdata2 = { +static struct tegra_sdhci_platform_data sdhci_pdata4 = { .cd_gpio =-1 , .wp_gpio =-1 , .power_gpio =-1 , -}; - -static struct tegra_sdhci_platform_data sdhci_pdata4 = { - .cd_gpio =TEGRA_GPIO_SD4_CD , - .wp_gpio =TEGRA_GPIO_SD4_WP , - .power_gpio =TEGRA_GPIO_SD4_POWER , .is_8bit =1 , };
@@ -168,7 +161,6 @@ static void __init tegra_paz00_init(void)paz00_pinmux_init (); tegra_sdhci_device1.dev.platform_data = &sdhci_pdata1; - tegra_sdhci_device2.dev.platform_data = &sdhci_pdata2; tegra_sdhci_device4.dev.platform_data = &sdhci_pdata4;platform_add_devices (paz00_devices,ARRAY_SIZE (paz00_devices));
arch/arm/mach-tegra/board-paz00.h +0 -3
@@ -20,9 +20,6 @@#define TEGRA_GPIO_SD1_CD TEGRA_GPIO_PV5#define TEGRA_GPIO_SD1_WP TEGRA_GPIO_PH1#define TEGRA_GPIO_SD1_POWER TEGRA_GPIO_PT3 -#define TEGRA_GPIO_SD4_CD TEGRA_GPIO_PH2 -#define TEGRA_GPIO_SD4_WP TEGRA_GPIO_PH3 -#define TEGRA_GPIO_SD4_POWER TEGRA_GPIO_PI6#define TEGRA_ULPI_RST TEGRA_GPIO_PV0void paz00_pinmux_init (void );
Signature · 1 line
1.7.4.2