ARM: tegra: board: disable the alignement fix
Suresh Mangipudi [Wed, 15 May 2013 04:47:47 +0000 (09:47 +0530)]
Disable the h/w alignment fix for T114 A02.

Bug 1289107

Change-Id: I6d64e2de23d0358a2edbf3730e4f1b6a70f6903b
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/228649
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

arch/arm/mach-tegra/board-dalmore.c
arch/arm/mach-tegra/board-macallan.c
arch/arm/mach-tegra/board-pluto.c
arch/arm/mach-tegra/board-roth.c
arch/arm/mach-tegra/board-tegratab.c

index 422f275..c90ff71 100644 (file)
@@ -537,12 +537,6 @@ static void dalmore_usb_init(void)
        tegra_set_usb_wake_source();
 
        if (!(usb_port_owner_info & UTMI1_PORT_OWNER_XUSB)) {
-               if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA11 &&
-                       tegra_revision == TEGRA_REVISION_A02) {
-                       tegra_ehci1_utmi_pdata \
-                       .unaligned_dma_buf_supported = true;
-                       tegra_udc_pdata.unaligned_dma_buf_supported = true;
-               }
                tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
                platform_device_register(&tegra_otg_device);
                /* Setup the udc platform data */
@@ -550,11 +544,6 @@ static void dalmore_usb_init(void)
        }
 
        if (!(usb_port_owner_info & UTMI2_PORT_OWNER_XUSB)) {
-               if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA11 &&
-                       tegra_revision == TEGRA_REVISION_A02) {
-                       tegra_ehci3_utmi_pdata \
-                       .unaligned_dma_buf_supported = true;
-               }
                tegra_ehci3_device.dev.platform_data = &tegra_ehci3_utmi_pdata;
                platform_device_register(&tegra_ehci3_device);
        }
@@ -679,10 +668,6 @@ static void dalmore_modem_init(void)
        switch (modem_id) {
        case TEGRA_BB_NEMO: /* on board i500 HSIC */
                if (!(usb_port_owner_info & HSIC1_PORT_OWNER_XUSB)) {
-                       if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11) &&
-                               (tegra_revision == TEGRA_REVISION_A02))
-                               tegra_ehci2_hsic_baseband_pdata \
-                               .unaligned_dma_buf_supported = true;
                        platform_device_register(&icera_nemo_device);
                }
                break;
index 1844666..575f5de 100644 (file)
@@ -460,12 +460,6 @@ static void macallan_usb_init(void)
        tegra_set_usb_wake_source();
 
        if (!(usb_port_owner_info & UTMI1_PORT_OWNER_XUSB)) {
-               if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA11 &&
-                       tegra_revision == TEGRA_REVISION_A02) {
-                       tegra_ehci1_utmi_pdata \
-                       .unaligned_dma_buf_supported = true;
-                       tegra_udc_pdata.unaligned_dma_buf_supported = true;
-               }
                tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
                platform_device_register(&tegra_otg_device);
                /* Setup the udc platform data */
@@ -542,10 +536,6 @@ static void macallan_modem_init(void)
        switch (modem_id) {
        case TEGRA_BB_NEMO: /* on board i500 HSIC */
                if (!(usb_port_owner_info & HSIC1_PORT_OWNER_XUSB))
-                       if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11) &&
-                               (tegra_revision == TEGRA_REVISION_A02))
-                               tegra_ehci2_hsic_baseband_pdata \
-                               .unaligned_dma_buf_supported = true;
                        platform_device_register(&icera_nemo_device);
                break;
        }
index 57e40b1..3e40015 100644 (file)
@@ -1031,13 +1031,6 @@ static void pluto_usb_init(void)
        int usb_port_owner_info = tegra_get_usb_port_owner_info();
 
        if (!(usb_port_owner_info & UTMI1_PORT_OWNER_XUSB)) {
-               if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11) &&
-                       (tegra_revision == TEGRA_REVISION_A02)) {
-                       tegra_ehci1_utmi_pdata \
-                       .unaligned_dma_buf_supported = true;
-                       tegra_udc_pdata \
-                       .unaligned_dma_buf_supported = true;
-               }
                tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
                platform_device_register(&tegra_otg_device);
 
@@ -1058,19 +1051,11 @@ static void pluto_modem_init(void)
        switch (modem_id) {
        case TEGRA_BB_I500: /* on board i500 HSIC */
                if (!(usb_port_owner_info & HSIC1_PORT_OWNER_XUSB)) {
-                       if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11) &&
-                               (tegra_revision == TEGRA_REVISION_A02))
-                                       tegra_ehci2_hsic_baseband_pdata \
-                                       .unaligned_dma_buf_supported = true;
                        platform_device_register(&icera_baseband_device);
                }
                break;
        case TEGRA_BB_I500SWD: /* i500 SWD HSIC */
                if (!(usb_port_owner_info & HSIC2_PORT_OWNER_XUSB)) {
-                       if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11) &&
-                               (tegra_revision == TEGRA_REVISION_A02))
-                                       tegra_ehci3_hsic_baseband2_pdata \
-                                       .unaligned_dma_buf_supported = true;
                        platform_device_register(&icera_baseband2_device);
                }
                break;
@@ -1086,10 +1071,6 @@ static void pluto_modem_init(void)
                        tegra_hsic_pdata.ops = &oem1_hsic_pops;
                        tegra_ehci3_device.dev.platform_data
                                = &tegra_hsic_pdata;
-                       if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11) &&
-                               (tegra_revision == TEGRA_REVISION_A02))
-                               tegra_hsic_pdata \
-                               .unaligned_dma_buf_supported = true;
                        platform_device_register(&tegra_bb_oem1);
                }
                break;
@@ -1109,9 +1090,6 @@ static void pluto_modem_init(void)
                                = MDM2_PWR_ON_FOR_PLUTO_A02;
                }
                /* baseband-power.ko will register ehci3 device */
-               if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11) &&
-                       (tegra_revision == TEGRA_REVISION_A02))
-                       tegra_hsic_pdata.unaligned_dma_buf_supported = true;
                tegra_hsic_pdata.ops = &oem2_plat_ops;
                tegra_hsic_pdata.u_data.host.remote_wakeup_supported = false;
                tegra_hsic_pdata.u_data.host.power_off_on_suspend = false;
@@ -1141,10 +1119,6 @@ static void pluto_modem_init(void)
                break;
        case TEGRA_BB_HSIC_HUB: /* HSIC hub */
                if (!(usb_port_owner_info & HSIC2_PORT_OWNER_XUSB)) {
-                       if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11) &&
-                               (tegra_revision == TEGRA_REVISION_A02))
-                                       tegra_ehci3_hsic_smsc_hub_pdata \
-                                       .unaligned_dma_buf_supported = true;
                        tegra_ehci3_device.dev.platform_data =
                                &tegra_ehci3_hsic_smsc_hub_pdata;
                        platform_device_register(&tegra_ehci3_device);
index 3eb1b69..e5d4eab 100644 (file)
@@ -575,14 +575,6 @@ static struct tegra_usb_otg_data tegra_otg_pdata = {
 
 static void roth_usb_init(void)
 {
-       if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11)
-               && (tegra_revision == TEGRA_REVISION_A02)) {
-                       tegra_ehci1_utmi_pdata \
-                       .unaligned_dma_buf_supported = true;
-                       tegra_udc_pdata.unaligned_dma_buf_supported = true;
-                       tegra_ehci3_utmi_pdata \
-                       .unaligned_dma_buf_supported = true;
-       }
        tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
        platform_device_register(&tegra_otg_device);
 
index e8e2996..94481cf 100644 (file)
@@ -433,12 +433,6 @@ static void tegratab_usb_init(void)
        tegra_set_usb_wake_source();
 
        if (!(usb_port_owner_info & UTMI1_PORT_OWNER_XUSB)) {
-               if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA11 &&
-                       tegra_revision == TEGRA_REVISION_A02) {
-                       tegra_ehci1_utmi_pdata \
-                       .unaligned_dma_buf_supported = true;
-                       tegra_udc_pdata.unaligned_dma_buf_supported = true;
-               }
                tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
                platform_device_register(&tegra_otg_device);
                /* Setup the udc platform data */
@@ -515,10 +509,6 @@ static void tegratab_modem_init(void)
        switch (modem_id) {
        case TEGRA_BB_NEMO: /* on board i500 HSIC */
                if (!(usb_port_owner_info & HSIC1_PORT_OWNER_XUSB)) {
-                       if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11) &&
-                               (tegra_revision == TEGRA_REVISION_A02))
-                               tegra_ehci2_hsic_baseband_pdata \
-                               .unaligned_dma_buf_supported = true;
                        platform_device_register(&icera_nemo_device);
                }
                break;