summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2012-12-03 17:14:22 +0100
committerH. Nikolaus Schaller <hns@goldelico.com>2012-12-03 17:14:22 +0100
commit792daa7ace8db2bd0b6778981ff47b29522cb1a5 (patch)
treec71bfbae85ca96f780643d71a8fe9e5c6f0320d0
parent26258e32e08cb939bf1c753eb29498505191d092 (diff)
downloadbootable_bootloader_goldelico_gta04-792daa7ace8db2bd0b6778981ff47b29522cb1a5.zip
bootable_bootloader_goldelico_gta04-792daa7ace8db2bd0b6778981ff47b29522cb1a5.tar.gz
bootable_bootloader_goldelico_gta04-792daa7ace8db2bd0b6778981ff47b29522cb1a5.tar.bz2
added systest keyboard command
-rw-r--r--u-boot/board/goldelico/gta04/commands.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/u-boot/board/goldelico/gta04/commands.c b/u-boot/board/goldelico/gta04/commands.c
index b65e463..f40d850 100644
--- a/u-boot/board/goldelico/gta04/commands.c
+++ b/u-boot/board/goldelico/gta04/commands.c
@@ -40,6 +40,8 @@
#include "systest.h"
#include "twl4030-additions.h"
+#define TWL4030_I2C_BUS (1-1)
+
/* LCM commands */
static int do_lcd_color(int argc, char *const argv[])
@@ -601,6 +603,9 @@ static int do_systest(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
if (strncmp ("gp", argv[1], 2) == 0) {
return gpiotest();
}
+ if (strncmp ("ke", argv[1], 2) == 0) {
+ return keytest();
+ }
}
if(argc == 3) {
if (strncmp ("ot", argv[1], 2) == 0) {
@@ -621,6 +626,7 @@ U_BOOT_CMD(systest, 3, 0, do_systest, "System Test",
"au[dio] - test audio\n"
"ir[da] - test IrDA\n"
"gp[io] - test some GPIOs\n"
+ "ke[ytest] - test TCA8418 keyboard\n"
"wl[anbt] - test WLAN/BT module\n"
"wp - apply power to WLAN/BT module\n"
"ch[arging] - init and test BCI/BKBAT\n"