BP works well ON GEN2 phone use 2.6-git now,
the patch can be download on http://people.openezx.org/wyrm/gen2bp.patch
the main changes is
A:
the hand shake is diffrent form gen1 as list in ezx.c
gen1
/* Neptune handshake */
        GPIO0_GPIO | WAKEUP_ON_LEVEL_HIGH,      /* BP_RDY */
        GPIO57_GPIO,                            /* AP_RDY */
        GPIO13_GPIO | WAKEUP_ON_LEVEL_HIGH,     /* WDI */
        GPIO3_GPIO | WAKEUP_ON_LEVEL_HIGH,      /* WDI2 */
        GPIO82_GPIO,                            /* RESET */
gne2
        GPIO0_GPIO | WAKEUP_ON_LEVEL_HIGH,      /* BP_RDY */
        GPIO96_GPIO,                            /* AP_RDY */
        GPIO3_GPIO | WAKEUP_ON_LEVEL_HIGH,      /* WDI */
        GPIO116_GPIO,                           /* RESET */
        GPIO41_GPIO,                            /* BP_FLASH */


And we only do the last step hand shake in kernel,the first two step has
been done in blob.

B:
the DLCI define is diffrent from gen,like as
static __u8 tty2dlci_gen1[16] =
+    { 1, 2, 3, 4, 5, 6, 7, 8, 6, 7, 8, 9, 10, 11, 12, 13 };
+static __u8 iscmdtty_gen1[16] =
+    { 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 };
+
+static dlci_tty dlci2tty_gen1[] = { {0, 0},    /* DLCI 0 */
+    {0, 0},                            /* DLCI 1 */
+    {1, 1},                            /* DLCI 2 */
+    {2, 2},                            /* DLCI 3 */
+    {3, 3},                            /* DLCI 4 */
+    {4, 4},                            /* DLCI 5 */
+    {5, 8},                            /* DLCI 6 */
+    {6, 9},                            /* DLCI 7 */
+    {7, 10},                   /* DLCI 8 */
+    {11, 11},                  /* DLCI 9 */
+    {12, 12},                  /* DLCI 10 */
+    {13, 13},                  /* DLCI 11 */
+    {14, 14},                  /* DLCI 12 */
+    {15, 15}
+    };                         /* DLCI 13 */
static __u8 tty2dlci_gen2[ 23 ] =
+    { 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18 };
+static __u8 iscmdtty_gen2[ 23 ] =
+    { 1, 1, 1, 1, 1, 1, 1, 1, 1,  1,  0, 0, 0, 0,  0,  0,  0,  0,  0,  0,
0,  0,  0 };
+
+static dlci_tty dlci2tty_gen2[] = { {0, 0},      /* DLCI 0 */
+    {0, 0},      /* DLCI 1 */
+    {1, 1},      /* DLCI 2 */
+    {2, 2},      /* DLCI 3 */
+    {3, 3},      /* DLCI 4 */
+    {4, 4},      /* DLCI 5 */
+    {10, 10},    /* DLCI 6 */
+    {5, 11},     /* DLCI 7 */
+    {6, 12},     /* DLCI 8 */
+    {7, 13},     /* DLCI 9 */
+    {8, 14},     /* DLCI 10 */
+    {9, 15},     /* DLCI 11 */
+    {16, 16},    /* DLCI 12 */
+    {17, 17},    /* DLCI 13 */
+    {18, 18},    /* DLCI 14 */
+    {19, 19},    /* DLCI 15 */
+    {20, 20},    /* DLCI 16 */
+    {21, 21},    /* DLCI 17 */
+    {22, 22} };  /* DLCI 18 */

C:
I don't know why we must select old scheme first in hub.c

D:
in tapi server we must open all mux0~8

Reply via email to