]> www.infradead.org Git - users/rw/armboot.git/commitdiff
Bump version number
authorrobertkaiser <robertkaiser>
Thu, 13 Mar 2003 18:29:01 +0000 (18:29 +0000)
committerrobertkaiser <robertkaiser>
Thu, 13 Mar 2003 18:29:01 +0000 (18:29 +0000)
common/cmd_nvedit.c
include/armboot.h
include/version.h

index ebcf169d07591e98495fc455aa04fde0cc5a3017..62e631a568c6629025969873fe75da3db8bacfa5 100644 (file)
@@ -418,6 +418,17 @@ int _do_setenv (bd_t *bd, int flag, int argc, char *argv[])
     }
 #endif /* CONFIG_KEYBOARD */
 
+#ifdef CONFIG_ADJUST_LCD
+    if (strcmp(argv[1],"contrast") == 0) {
+       lcd_contrast(simple_strtoul(argv[2], NULL, 10));
+       return 0;
+       }
+    if (strcmp(argv[1],"brightness") == 0) {
+       lcd_brightness(simple_strtoul(argv[2], NULL, 10));
+       return 0;
+       }
+#endif /* CONFIG_ADJUST_LCD */
+
     return 0;
 }
 
@@ -624,4 +635,20 @@ void env_relocate(bd_t *bd)
         copy_filename (BootFile, s, sizeof(BootFile));
     }
 #endif  /* CFG_CMD_NET */
+
+#ifdef CONFIG_KEYBOARD
+    if ((s = getenv(bd, "keymap")) != NULL) {
+               kbd_mapping (s);
+    }
+#endif /* CONFIG_KEYBOARD */
+
+#ifdef CONFIG_ADJUST_LCD
+    if ((s = getenv(bd, "contrast")) != NULL) {
+               lcd_contrast(simple_strtoul(s, NULL, 10));
+       }
+    if ((s = getenv(bd, "brightness")) != NULL) {
+               lcd_brightness(simple_strtoul(s, NULL, 10));
+       }
+#endif /* CONFIG_ADJUST_LCD */
+
 }
index 8cef359c3f5f3ced9853a08ce92fcfb55beb6e00..26d4ecc8b66644f6e926f4c45f7dea3f9524a6fc 100644 (file)
@@ -251,6 +251,11 @@ int     kbd_tstc(void);
 void    kbd_mapping(const char *name);
 #endif
 
+#ifdef CONFIG_ADJUST_LCD
+int lcd_contrast(int);
+int lcd_brightness(int);
+#endif
+
 
 /* Byte swapping stuff */
 #define SWAP16(x)      ((((x) & 0xff) << 8) | ((x) >> 8))
index e89d03b705d9db1560a7ebcd9eb3a0ffdbb38299..b1835e53d84c82e880fa73d2d579d73ca7a05613 100644 (file)
@@ -25,6 +25,6 @@
 #ifndef        __VERSION_H__
 #define        __VERSION_H__
 
-#define        ARMBOOT_VERSION "ARMboot 1.0.2"
+#define        ARMBOOT_VERSION "ARMboot 1.1.1"
 
 #endif /* __VERSION_H__ */