diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2012-12-05 18:46:42 +0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-12-12 00:17:35 +0400 |
commit | 9ad557be2fc45bb0207cb6cb5de5bf51c9daa689 (patch) | |
tree | 954f156fda431d84103affb66678ced13fd12222 /include/command.h | |
parent | 096eb3f59b4b9bd002028a632fa02caafd634aa8 (diff) | |
download | u-boot-9ad557be2fc45bb0207cb6cb5de5bf51c9daa689.tar.xz |
Add console command to access io space registers
Provide u-boot console functions to access IO space registers. A no
thrills implementation, accessing one register at a time.
For example:
boot > iod 80
0080: 00000094
boot > iod.w 80
0080: 0094
boot > iod.b 80
0080: 94
boot > iow.b 0x80 12
boot > iod 0x80
0080: 00000012
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/command.h')
-rw-r--r-- | include/command.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/command.h b/include/command.h index 10bc2606c7..476e7cffc2 100644 --- a/include/command.h +++ b/include/command.h @@ -89,10 +89,10 @@ extern int cmd_auto_complete(const char *const prompt, char *buf, int *np, int * */ #if defined(CONFIG_CMD_MEMORY) \ - || defined(CONFIG_CMD_I2C) \ - || defined(CONFIG_CMD_ITEST) \ - || defined(CONFIG_CMD_PCI) \ - || defined(CONFIG_CMD_PORTIO) + || defined(CONFIG_CMD_I2C) \ + || defined(CONFIG_CMD_ITEST) \ + || defined(CONFIG_CMD_PCI) \ + || defined(CONFIG_CMD_PORTIO) #define CMD_DATA_SIZE extern int cmd_get_data_size(char* arg, int default_size); #endif |