]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/blackfin/include/asm/config.h
Blackfin: post: generalize led/button tests with GPIOs
[people/ms/u-boot.git] / arch / blackfin / include / asm / config.h
index bc3c25215f22b1d4f92e0095dee296ad67642cba..53af310ecfbd00b0a3baa736d8965452a9ccffbd 100644 (file)
 # define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
 #endif
 
+/* Blackfin POST tests */
+#ifdef CONFIG_POST_BSPEC1_GPIO_LEDS
+# define CONFIG_POST_BSPEC1 \
+       { \
+               "LED test", "led", "This test verifies LEDs on the board.", \
+               POST_MEM | POST_ALWAYS, &led_post_test, NULL, NULL, \
+               CONFIG_SYS_POST_BSPEC1, \
+       }
+#endif
+#ifdef CONFIG_POST_BSPEC2_GPIO_BUTTONS
+# define CONFIG_POST_BSPEC2 \
+       { \
+               "Button test", "button", "This test verifies buttons on the board.", \
+               POST_MEM | POST_ALWAYS, &button_post_test, NULL, NULL, \
+               CONFIG_SYS_POST_BSPEC2, \
+       }
+#endif
+
 #endif