Patch for port I/O commands, 'in' and 'out'.
This patch provides port I/O commands for architectures that support them. AFAIK, the only current architecture using a separate IO space is IA32 (aka x86).
-------------- next part --------------
Index: sf/u-boot/CHANGELOG
u-boot/CHANGELOG renamed from u-boot/CHANGELOG:1.1.1.1 +3 -0
@@ -2,6 +2,9 @@ Changes since U-Boot 0.3.1: ====================================================================== +* Patch by Marc Singer, 28 May 2003: + Added port I/O commands. + * Patch by Dave Ellis, 22 May 2003: Fix problem with only partially cleared .bss segment
Index: sf/u-boot/common/Makefile
u-boot/common/Makefile renamed from u-boot/common/Makefile:1.1.1.1 +1 -1
@@ -36,7 +36,7 @@ cmd_jffs2.o cmd_log.o cmd_mem.o cmd_mii.o cmd_misc.o \ cmd_net.o cmd_nvedit.o env_common.o \ env_flash.o env_eeprom.o env_nvram.o env_nowhere.o \ - cmd_pci.o cmd_pcmcia.o \ + cmd_pci.o cmd_pcmcia.o cmd_portio.o \ cmd_reginfo.o cmd_scsi.o cmd_vfd.o cmd_usb.o \ command.o console.o devices.o dlmalloc.o \ docecc.o environment.o flash.o fpga.o \
Index: sf/u-boot/common/cmd_mem.c
u-boot/common/cmd_mem.c renamed from u-boot/common/cmd_mem.c:1.1.1.1 +2 -1
@@ -31,7 +31,8 @@#include <command.h> #include <cmd_mem.h> -#if (CONFIG_COMMANDS & (CFG_CMD_MEMORY |CFG_CMD_PCI |CFG_CMD_I2C )) +#if (CONFIG_COMMANDS & (CFG_CMD_MEMORY |CFG_CMD_PCI |CFG_CMD_I2C \ + |CMD_CMD_PORTIO ))int cmd_get_data_size (char * arg,int default_size) {/* Check for a size specification .b, .w or .l.
Index: sf/u-boot/common/cmd_portio.c
u-boot/common/cmd_portio.c new file +155 -0
155 lines not on this page · raw message
Index: sf/u-boot/common/command.c
u-boot/common/command.c renamed from u-boot/common/command.c:1.1.1.1 +4 -0
@@ -79,6 +79,8 @@#include <cmd_boota.h> #endif +#include <cmd_portio.h> +/* * HELP command */
@@ -284,6 +286,7 @@CMD_TBL_IMM CMD_TBL_INMCMD_TBL_IMW + CMD_TBL_INCMD_TBL_ICRC CMD_TBL_IPROBECMD_TBL_ILOOP
@@ -314,6 +317,7 @@CMD_TBL_NANDBOOT CMD_TBL_NEXTCMD_TBL_NM + CMD_TBL_OUTCMD_TBL_PCI CMD_TBL_PRINTENVCMD_TBL_PROTECT
Index: sf/u-boot/include/cmd_confdefs.h
u-boot/include/cmd_confdefs.h renamed from u-boot/include/cmd_confdefs.h:1.1.1.1 +1 -0
@@ -80,6 +80,7 @@#define CFG_CMD_VFD 0x0000400000000000/* VFD support (TRAB) */ #define CFG_CMD_NAND 0x0000800000000000/* NAND support */ #define CFG_CMD_BMP 0x0001000000000000/* BMP support */ +#define CFG_CMD_PORTIO 0x0002000000000000/* Port I/O */ #define CFG_CMD_ALL 0xFFFFFFFFFFFFFFFF/* ALL commands */
Index: sf/u-boot/include/cmd_portio.h
u-boot/include/cmd_portio.h new file +51 -0
51 lines not on this page · raw message
Quoted 4 lines · In message <[email protected]> you wrote:
This patch provides port I/O commands for architectures that support them. AFAIK, the only current architecture using a separate IO space is IA32 (aka x86).
Added. Will push to CVS later.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Dealing with failure is easy: work hard to improve. Success is also easy to handle: you've solved the wrong problem. Work hard to improve.