]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/keymile/km82xx/km82xx.c
powerpc/82xx/km: add testpin detection for mgcoge3ne
[people/ms/u-boot.git] / board / keymile / km82xx / km82xx.c
index 03cd10c58b62a14672d06ad51913e2ff767c2e96..cc9a7c9a8eb3a0cbb6d21b1962a93f644043edcf 100644 (file)
@@ -473,3 +473,12 @@ int ft_board_setup(void *blob, bd_t *bd)
        return 0;
 }
 #endif /* defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) */
+
+#if defined(CONFIG_MGCOGE3NE)
+int get_testpin(void)
+{
+       /* Testpin is Port C pin 29 - enable = low */
+       int testpin = !get_pin(0x00000004, 2);
+       return testpin;
+}
+#endif