#19996: Add support for ZBT WE-826
-----------------------------+--------------------------------
  Reporter:  oskari.rauta@…  |      Owner:  developers
      Type:  enhancement     |     Status:  reopened
  Priority:  highest         |  Milestone:  Chaos Calmer 15.05
 Component:  base system     |    Version:  Trunk
Resolution:                  |   Keywords:  zbt,we
-----------------------------+--------------------------------

Comment (by silverk):

 Replying to [comment:36 augustus_meyer@…]:
 > Having also the problem of SD card to be RO, I got following info from
 ZBT, be applied against the build src:
 > - edit ../drivers/mmc/host/mtk-mmc/board.h:
 >     modify "#define MSDC_WP_PIN_EN (1<<1)"
 >     to
 >     "#define MSDC_WP_PIN_EN (0<<1)"
 > - edit ../drivers/mmc/host/mtk-mmc/sd.c:
 >      modify "#define MSDC_WP_PIN_EN (1<<1)"
 >     to
 >     "#define MSDC_WP_PIN_EN (0<<1)"
 >
 > and recompile. This worked for me.
 > As I am not familar with the official patch procedure, one of the
 developers might take care of this, as it most likely also applies to
 other MT7620-based boards.
 > Kudos to ZBT customers service.


 Thank you!

 there is allready patch
 {{{
 0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
 }}}
 which shall be fixed. Does anybody know should I make new ticket or will
 this one do the job?


 Needed fix diff:


 {{{
 diff --git a/target/linux/ramips/patches-4.4/0046-mmc-MIPS-ralink-add-
 sdhci-for-mt7620a-SoC.patch b/target/linux/ramips/patches-4.4/0046-mmc-
 MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
 index 7ac0aba..c0d0d3d 100644
 --- a/target/linux/ramips/patches-4.4/0046-mmc-MIPS-ralink-add-sdhci-for-
 mt7620a-SoC.patch
 +++ b/target/linux/ramips/patches-4.4/0046-mmc-MIPS-ralink-add-sdhci-for-
 mt7620a-SoC.patch
 @@ -157,7 +157,7 @@ Signed-off-by: John Crispin <blo...@openwrt.org>
  +typedef void (*pm_callback_t)(pm_message_t state, void *data);
  +
  +#define MSDC_CD_PIN_EN      (1 << 0)  /* card detection pin is wired
 */
 -+#define MSDC_WP_PIN_EN      (1 << 1)  /* write protection pin is wired
 */
 ++#define MSDC_WP_PIN_EN      (0 << 1)  /* write protection pin is not
 wired */
  +#define MSDC_RST_PIN_EN     (1 << 2)  /* emmc reset pin is wired
 */
  +#define MSDC_SDIO_IRQ       (1 << 3)  /* use internal sdio irq (bus)
 */
  +#define MSDC_EXT_SDIO_IRQ   (1 << 4)  /* use external sdio irq
 */
 @@ -1825,7 +1825,7 @@ Signed-off-by: John Crispin <blo...@openwrt.org>
  +
  +#define MSDC_SMPL_FALLING   (1)
  +#define MSDC_CD_PIN_EN      (1 << 0)  /* card detection pin is wired
 */
 -+#define MSDC_WP_PIN_EN      (1 << 1)  /* write protection pin is wired
 */
 ++#define MSDC_WP_PIN_EN      (0 << 1)  /* write protection pin is not
 wired */
  +#define MSDC_REMOVABLE      (1 << 5)  /* removable slot
 */
  +#define MSDC_SYS_SUSPEND    (1 << 6)  /* suspended by system
 */
  +#define MSDC_HIGHSPEED      (1 << 7)
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/19996#comment:37>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
openwrt-tickets@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to