From 0aee2ef9cc335fcc909a3dca886660795b862ead Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Mon, 2 Apr 2012 17:11:13 +0200 Subject: made compatible to DM3730 --- uart-loader/board/omap3430labrador/omap3430labrador.c | 2 +- uart-loader/common/cmd_load.c | 16 ++++++++++++++-- uart-loader/include/configs/omap3430labrador.h | 4 ++++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/uart-loader/board/omap3430labrador/omap3430labrador.c b/uart-loader/board/omap3430labrador/omap3430labrador.c index 33361f4..1a4e243 100644 --- a/uart-loader/board/omap3430labrador/omap3430labrador.c +++ b/uart-loader/board/omap3430labrador/omap3430labrador.c @@ -777,7 +777,7 @@ MUX_VAL(CP(GPMC_nCS6), (IEN | PTD | EN | M4)) /*GPT_PWM11/GPIO57*/\ MUX_VAL(CP(JTAG_EMU0), (IEN | PTD | DIS | M0)) /*JTAG_EMU0*/\ MUX_VAL(CP(JTAG_EMU1), (IEN | PTD | DIS | M0)) /*JTAG_EMU1*/\ MUX_VAL(CP(ETK_CLK), (IEN | PTD | DIS | M4)) /*GPIO_12*/\ - MUX_VAL(CP(ETK_CTL), (IEN | PTD | DIS | M4)) /*GPIO_13*/\ +MUX_VAL(CP(ETK_CTL), (IEN | PTU | DIS | M4)) /*GPIO_13*/\ MUX_VAL(CP(ETK_D0 ), (IEN | PTD | DIS | M4)) /*GPIO_14*/\ MUX_VAL(CP(ETK_D1 ), (IEN | PTD | DIS | M4)) /*GPIO_15*/\ MUX_VAL(CP(ETK_D2 ), (IEN | PTD | DIS | M4)) /*GPIO_16*/\ diff --git a/uart-loader/common/cmd_load.c b/uart-loader/common/cmd_load.c index 872833d..6bd07e4 100644 --- a/uart-loader/common/cmd_load.c +++ b/uart-loader/common/cmd_load.c @@ -168,6 +168,18 @@ void testfn(void) int do_comand_line(void) { // add testing code here printf ("Welcome to uart-loader\n"); + printf (" c - run test code in RAM\n"); + printf (" x [addr] - execute\n"); + printf (" l - loop hello world\n"); + printf (" ram - fill ram with data pattern\n"); + printf (" a addr - set address\n"); + printf (" r [size] - read bytes\n"); + printf (" rl [size] - read long words\n"); + printf (" f [value [size]] - write bytes\n"); + printf (" bl - blink backlight\n"); + printf (" g - show GPIOs\n"); + printf (" m - show PinMux\n"); + return 0; while(1) { char *c; int argc=0; @@ -190,7 +202,7 @@ int do_comand_line(void) break; // command default: if(pos < sizeof(line)/sizeof(line[0])) { - putc(line[pos]); + putc(line[pos]); // echo pos++; } continue; @@ -234,7 +246,7 @@ int do_comand_line(void) else if(strcmp(argv[0], "l") == 0) { // l - loop int d=1; while(1) - printf ("Welcome to uart-monitor (%d)\n", d++), udelay(500*1000); + printf ("Welcome to uart-loader (%d)\n", d++), udelay(500*1000); } else if(strcmp(argv[0], "ram") == 0) { int val=0x55; diff --git a/uart-loader/include/configs/omap3430labrador.h b/uart-loader/include/configs/omap3430labrador.h index e1e2665..53b72f1 100644 --- a/uart-loader/include/configs/omap3430labrador.h +++ b/uart-loader/include/configs/omap3430labrador.h @@ -27,6 +27,10 @@ #ifndef __CONFIG_H #define __CONFIG_H +/* configure for GTA04 with DM3730 */ +#define CONFIG_OMAP36XX 1 /* or 36XX (DM3730) */ +#define PRCM_CLK_CFG2_400MHZ 1 + /* serial printf facility takes about 3.5K */ #define CFG_PRINTF //#undef CFG_PRINTF -- cgit v1.1