Author: manu
Date: Sat Apr 27 14:59:08 2019
New Revision: 346789
URL: https://svnweb.freebsd.org/changeset/base/346789

Log:
  arm: allwinner: a10: Correct pin functions
  
  PB20 and PB21 alternate function 1 is i2c2 not i2c1
  
  Reported by:  Horiki Mori ([email protected])
  PR:    237401
  MFC after:    1 week

Modified:
  head/sys/arm/allwinner/a10/a10_padconf.c

Modified: head/sys/arm/allwinner/a10/a10_padconf.c
==============================================================================
--- head/sys/arm/allwinner/a10/a10_padconf.c    Sat Apr 27 14:56:24 2019        
(r346788)
+++ head/sys/arm/allwinner/a10/a10_padconf.c    Sat Apr 27 14:59:08 2019        
(r346789)
@@ -77,8 +77,8 @@ const static struct allwinner_pins a10_pins[] = {
        {"PB17", 1, 17, {"gpio_in", "gpio_out", "spi2", "jtag", NULL, NULL, 
NULL, NULL}},
        {"PB18", 1, 18, {"gpio_in", "gpio_out", "i2c1", NULL, NULL, NULL, NULL, 
NULL}},
        {"PB19", 1, 19, {"gpio_in", "gpio_out", "i2c1", NULL, NULL, NULL, NULL, 
NULL}},
-       {"PB20", 1, 20, {"gpio_in", "gpio_out", "i2c1", NULL, NULL, NULL, NULL, 
NULL}},
-       {"PB21", 1, 21, {"gpio_in", "gpio_out", "i2c1", NULL, NULL, NULL, NULL, 
NULL}},
+       {"PB20", 1, 20, {"gpio_in", "gpio_out", "i2c2", NULL, NULL, NULL, NULL, 
NULL}},
+       {"PB21", 1, 21, {"gpio_in", "gpio_out", "i2c2", NULL, NULL, NULL, NULL, 
NULL}},
        {"PB22", 1, 22, {"gpio_in", "gpio_out", "uart0", "ir1", NULL, NULL, 
NULL, NULL}},
        {"PB23", 1, 23, {"gpio_in", "gpio_out", "uart0", "ir1", NULL, NULL, 
NULL, NULL}},
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to