[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rockbox-cvs
Subject:    XduooX3 Tweak LCD drive strength and slew
From:       rockbox-gerrit-noreply--- via rockbox-cvs <rockbox-cvs () cool ! haxx ! se>
Date:       2020-08-30 21:27:29
Message-ID: 202008302127.07ULRTOu2448975 () stuffed ! shaftnet ! org
[Download RAW message or body]

commit 06e9abc428fc5add36bebf9fed8a5a6353e41b21
Author: William Wilgus <wilgus.william@gmail.com>
Date:   Sun Aug 30 17:22:19 2020 -0400

    XduooX3 Tweak LCD drive strength and slew
    
    Change-Id: Ic5ee9e700a0c8acffc39b51cedc24ff44d230fd3

diff --git a/firmware/export/jz4760b.h b/firmware/export/jz4760b.h
index be1e4f3aea..e61689105c 100644
--- a/firmware/export/jz4760b.h
+++ b/firmware/export/jz4760b.h
@@ -275,9 +275,9 @@
 #define REG_GPIO_PXDS2(n) 	REG32(GPIO_PXDS2(n))
 #define REG_GPIO_PXDS2S(n) 	REG32(GPIO_PXDS2S(n))
 #define REG_GPIO_PXDS2C(n) 	REG32(GPIO_PXDS2C(n))
-#define REG_GPIO_PXSL(n) 	REG32(GPIO_PXSL(n))
-#define REG_GPIO_PXSLS(n) 	REG32(GPIO_PXSLS(n))
-#define REG_GPIO_PXSLC(n) 	REG32(GPIO_PXSLC(n))
+#define REG_GPIO_PXSL(n) 	REG32(GPIO_PXSL(n))   /* Port Slew */
+#define REG_GPIO_PXSLS(n) 	REG32(GPIO_PXSLS(n))  /* Port Slew -- Fast */
+#define REG_GPIO_PXSLC(n) 	REG32(GPIO_PXSLC(n))  /* Port Slew -- Slow */
 
 /*----------------------------------------------------------------
  * p is the port number (0,1,2,3,4,5)
diff --git a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/lcd-xduoo_x3.c \
b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/lcd-xduoo_x3.c index \
                ce8840f9d2..d4ab26ea5f 100644
--- a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/lcd-xduoo_x3.c
+++ b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/lcd-xduoo_x3.c
@@ -97,10 +97,20 @@ static inline void bitdelay(void)
 
 void lcd_hw_init(void)
 {
-    REG_GPIO_PXFUNC(2) = 0x000C73FC; /* D0-D7 RD DC CS RES WR */
-    REG_GPIO_PXSELC(2) = 0x000C73FC;
-    REG_GPIO_PXDIRS(2) = 0x000C73FC;
-    REG_GPIO_PXDATS(2) = 0x000C73FC;
+    REG_GPIO_PXFUNC(2) = 0x000C73FC; /* D0-D7 RD DC CS RES WR -- GPIO/INTERRUPT */
+    REG_GPIO_PXSELC(2) = 0x000C73FC; /* GPIO */
+
+    REG_GPIO_PXPEC(2) = 0x000C73FC; /* ENABLE PULLUP*/
+
+    REG_GPIO_PXDIRS(2) = 0x000C73FC; /* OUTPUT */
+    REG_GPIO_PXDATS(2) = 0x000C73FC; /* D0-D7 RD DC CS RES WR -- SET BIT */
+
+    REG_GPIO_PXSLC(2)  = 0x000C73FC; /* slew -- slow rate */
+
+    REG_GPIO_PXDS0C(2) = 0x000C73FC; /* Low pin drive strength */
+    REG_GPIO_PXDS1C(2) = 0x000C73FC;
+    REG_GPIO_PXDS2C(2) = 0x000C73FC;
+
     __gpio_clear_pin(PIN_BL_EN);
     __gpio_as_output(PIN_BL_EN);
     __gpio_clear_pin(PIN_LCD_RES);
_______________________________________________
rockbox-cvs mailing list
rockbox-cvs@cool.haxx.se
https://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic