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-on: http://git-master/r/229189
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rama Kandhala <rkandhala@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

index 5b51b91..e4da679 100644 (file)
@@ -524,12 +524,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 */
@@ -537,11 +531,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);
        }
@@ -666,10 +655,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 c78b461..68ca5f1 100644 (file)
@@ -440,13 +440,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 */
index 8cde5fe..6713fcb 100644 (file)
@@ -1032,13 +1032,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,22 +1051,12 @@ 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;
+               if (!(usb_port_owner_info & HSIC1_PORT_OWNER_XUSB))
                        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;
+               if (!(usb_port_owner_info & HSIC2_PORT_OWNER_XUSB))
                        platform_device_register(&icera_baseband2_device);
-               }
                break;
        case TEGRA_BB_OEM1:     /* OEM1 HSIC */
                if ((board_info.board_id == BOARD_E1575) ||
@@ -1087,10 +1070,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;
@@ -1110,9 +1089,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;
@@ -1148,10 +1124,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 a5c36f2..297c48e 100644 (file)
@@ -538,14 +538,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);