swap chipselects on the Pronghorn series
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 11 Jul 2008 15:13:12 +0000 (15:13 +0000)
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 11 Jul 2008 15:13:12 +0000 (15:13 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11767 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ixp4xx/patches-2.6.26/110-pronghorn_series_support.patch

index 5a19af6..45589a8 100644 (file)
 +      platform_add_devices(pronghorn_devices, ARRAY_SIZE(pronghorn_devices));
 +
 +      if (machine_is_pronghorn()) {
-+              pronghorn_pata_resources[0].start = IXP4XX_EXP_BUS_BASE(3);
-+              pronghorn_pata_resources[0].end = IXP4XX_EXP_BUS_END(3);
-+
-+              pronghorn_pata_resources[1].start = IXP4XX_EXP_BUS_BASE(4);
-+              pronghorn_pata_resources[1].end = IXP4XX_EXP_BUS_END(4);
-+
-+              pronghorn_pata_data.cs0_cfg = IXP4XX_EXP_CS3;
-+              pronghorn_pata_data.cs1_cfg = IXP4XX_EXP_CS4;
-+      } else {
 +              pronghorn_pata_resources[0].start = IXP4XX_EXP_BUS_BASE(2);
 +              pronghorn_pata_resources[0].end = IXP4XX_EXP_BUS_END(2);
 +
 +
 +              pronghorn_pata_data.cs0_cfg = IXP4XX_EXP_CS2;
 +              pronghorn_pata_data.cs1_cfg = IXP4XX_EXP_CS3;
++      } else {
++              pronghorn_pata_resources[0].start = IXP4XX_EXP_BUS_BASE(3);
++              pronghorn_pata_resources[0].end = IXP4XX_EXP_BUS_END(3);
++
++              pronghorn_pata_resources[1].start = IXP4XX_EXP_BUS_BASE(4);
++              pronghorn_pata_resources[1].end = IXP4XX_EXP_BUS_END(4);
++
++              pronghorn_pata_data.cs0_cfg = IXP4XX_EXP_CS3;
++              pronghorn_pata_data.cs1_cfg = IXP4XX_EXP_CS4;
 +
 +              platform_device_register(&pronghorn_i2c_gpio);
 +      }
This page took 0.021097 seconds and 4 git commands to generate.