mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-26 02:50:49 +02:00
add compatibility hack for gpio stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2396 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
aa8d1f449e
commit
2c96d574ae
@ -19210,8 +19210,8 @@ diff -urN linux.old/drivers/net/hnd/linux_osl.c linux.dev/drivers/net/hnd/linux_
|
|||||||
+#endif /* BINOSL */
|
+#endif /* BINOSL */
|
||||||
diff -urN linux.old/drivers/net/hnd/sbutils.c linux.dev/drivers/net/hnd/sbutils.c
|
diff -urN linux.old/drivers/net/hnd/sbutils.c linux.dev/drivers/net/hnd/sbutils.c
|
||||||
--- linux.old/drivers/net/hnd/sbutils.c 1970-01-01 01:00:00.000000000 +0100
|
--- linux.old/drivers/net/hnd/sbutils.c 1970-01-01 01:00:00.000000000 +0100
|
||||||
+++ linux.dev/drivers/net/hnd/sbutils.c 2005-11-08 12:54:06.123274250 +0100
|
+++ linux.dev/drivers/net/hnd/sbutils.c 2005-11-08 17:58:18.918914500 +0100
|
||||||
@@ -0,0 +1,2823 @@
|
@@ -0,0 +1,2837 @@
|
||||||
+/*
|
+/*
|
||||||
+ * Misc utility routines for accessing chip-specific features
|
+ * Misc utility routines for accessing chip-specific features
|
||||||
+ * of the SiliconBackplane-based Broadcom chips.
|
+ * of the SiliconBackplane-based Broadcom chips.
|
||||||
@ -21068,6 +21068,8 @@ diff -urN linux.old/drivers/net/hnd/sbutils.c linux.dev/drivers/net/hnd/sbutils.
|
|||||||
+ si = SB_INFO(sbh);
|
+ si = SB_INFO(sbh);
|
||||||
+ regoff = 0;
|
+ regoff = 0;
|
||||||
+
|
+
|
||||||
|
+ priority = GPIO_DRV_PRIORITY; /* compatibility hack */
|
||||||
|
+
|
||||||
+ /* gpios could be shared on router platforms */
|
+ /* gpios could be shared on router platforms */
|
||||||
+ if ((BUSTYPE(si->sb.bustype) == SB_BUS) && (val || mask)) {
|
+ if ((BUSTYPE(si->sb.bustype) == SB_BUS) && (val || mask)) {
|
||||||
+ mask = priority ? (sb_gpioreservation & mask) :
|
+ mask = priority ? (sb_gpioreservation & mask) :
|
||||||
@ -21101,6 +21103,8 @@ diff -urN linux.old/drivers/net/hnd/sbutils.c linux.dev/drivers/net/hnd/sbutils.
|
|||||||
+ si = SB_INFO(sbh);
|
+ si = SB_INFO(sbh);
|
||||||
+ regoff = 0;
|
+ regoff = 0;
|
||||||
+
|
+
|
||||||
|
+ priority = GPIO_DRV_PRIORITY; /* compatibility hack */
|
||||||
|
+
|
||||||
+ /* gpios could be shared on router platforms */
|
+ /* gpios could be shared on router platforms */
|
||||||
+ if ((BUSTYPE(si->sb.bustype) == SB_BUS) && (val || mask)) {
|
+ if ((BUSTYPE(si->sb.bustype) == SB_BUS) && (val || mask)) {
|
||||||
+ mask = priority ? (sb_gpioreservation & mask) :
|
+ mask = priority ? (sb_gpioreservation & mask) :
|
||||||
@ -21135,6 +21139,8 @@ diff -urN linux.old/drivers/net/hnd/sbutils.c linux.dev/drivers/net/hnd/sbutils.
|
|||||||
+ si = SB_INFO(sbh);
|
+ si = SB_INFO(sbh);
|
||||||
+ regoff = 0;
|
+ regoff = 0;
|
||||||
+
|
+
|
||||||
|
+ priority = GPIO_DRV_PRIORITY; /* compatibility hack */
|
||||||
|
+
|
||||||
+ /* gpios could be shared on router platforms */
|
+ /* gpios could be shared on router platforms */
|
||||||
+ if ((BUSTYPE(si->sb.bustype) == SB_BUS) && (val || mask)) {
|
+ if ((BUSTYPE(si->sb.bustype) == SB_BUS) && (val || mask)) {
|
||||||
+ mask = priority ? (sb_gpioreservation & mask) :
|
+ mask = priority ? (sb_gpioreservation & mask) :
|
||||||
@ -21167,6 +21173,8 @@ diff -urN linux.old/drivers/net/hnd/sbutils.c linux.dev/drivers/net/hnd/sbutils.
|
|||||||
+
|
+
|
||||||
+ si = SB_INFO(sbh);
|
+ si = SB_INFO(sbh);
|
||||||
+
|
+
|
||||||
|
+ priority = GPIO_DRV_PRIORITY; /* compatibility hack */
|
||||||
|
+
|
||||||
+ /* only cores on SB_BUS share GPIO's and only applcation users need to reserve/release GPIO */
|
+ /* only cores on SB_BUS share GPIO's and only applcation users need to reserve/release GPIO */
|
||||||
+ if ( (BUSTYPE(si->sb.bustype) != SB_BUS) || (!priority)) {
|
+ if ( (BUSTYPE(si->sb.bustype) != SB_BUS) || (!priority)) {
|
||||||
+ ASSERT((BUSTYPE(si->sb.bustype) == SB_BUS) && (priority));
|
+ ASSERT((BUSTYPE(si->sb.bustype) == SB_BUS) && (priority));
|
||||||
@ -21200,6 +21208,8 @@ diff -urN linux.old/drivers/net/hnd/sbutils.c linux.dev/drivers/net/hnd/sbutils.
|
|||||||
+
|
+
|
||||||
+ si = SB_INFO(sbh);
|
+ si = SB_INFO(sbh);
|
||||||
+
|
+
|
||||||
|
+ priority = GPIO_DRV_PRIORITY; /* compatibility hack */
|
||||||
|
+
|
||||||
+ /* only cores on SB_BUS share GPIO's and only applcation users need to reserve/release GPIO */
|
+ /* only cores on SB_BUS share GPIO's and only applcation users need to reserve/release GPIO */
|
||||||
+ if ( (BUSTYPE(si->sb.bustype) != SB_BUS) || (!priority)) {
|
+ if ( (BUSTYPE(si->sb.bustype) != SB_BUS) || (!priority)) {
|
||||||
+ ASSERT((BUSTYPE(si->sb.bustype) == SB_BUS) && (priority));
|
+ ASSERT((BUSTYPE(si->sb.bustype) == SB_BUS) && (priority));
|
||||||
@ -21258,6 +21268,8 @@ diff -urN linux.old/drivers/net/hnd/sbutils.c linux.dev/drivers/net/hnd/sbutils.
|
|||||||
+ si = SB_INFO(sbh);
|
+ si = SB_INFO(sbh);
|
||||||
+ regoff = 0;
|
+ regoff = 0;
|
||||||
+
|
+
|
||||||
|
+ priority = GPIO_DRV_PRIORITY; /* compatibility hack */
|
||||||
|
+
|
||||||
+ /* gpios could be shared on router platforms */
|
+ /* gpios could be shared on router platforms */
|
||||||
+ if ((BUSTYPE(si->sb.bustype) == SB_BUS) && (val || mask)) {
|
+ if ((BUSTYPE(si->sb.bustype) == SB_BUS) && (val || mask)) {
|
||||||
+ mask = priority ? (sb_gpioreservation & mask) :
|
+ mask = priority ? (sb_gpioreservation & mask) :
|
||||||
@ -21293,6 +21305,8 @@ diff -urN linux.old/drivers/net/hnd/sbutils.c linux.dev/drivers/net/hnd/sbutils.
|
|||||||
+ si = SB_INFO(sbh);
|
+ si = SB_INFO(sbh);
|
||||||
+ regoff = 0;
|
+ regoff = 0;
|
||||||
+
|
+
|
||||||
|
+ priority = GPIO_DRV_PRIORITY; /* compatibility hack */
|
||||||
|
+
|
||||||
+ /* gpios could be shared on router platforms */
|
+ /* gpios could be shared on router platforms */
|
||||||
+ if ((BUSTYPE(si->sb.bustype) == SB_BUS) && (val || mask)) {
|
+ if ((BUSTYPE(si->sb.bustype) == SB_BUS) && (val || mask)) {
|
||||||
+ mask = priority ? (sb_gpioreservation & mask) :
|
+ mask = priority ? (sb_gpioreservation & mask) :
|
||||||
|
Loading…
Reference in New Issue
Block a user