Skip to contentSkip to conversation

Patch for port I/O commands, 'in' and 'out'.

U-Boot-Users Marc Singer 2 participants 2 messages May 29, 2003 – May 30, 2003

lore
Share & tools
lore
#0 lore raw

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
diff -u sf/u-boot/CHANGELOG:1.1.1.1 sf/u-boot/CHANGELOG:1.2
@@ -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
diff -u sf/u-boot/common/Makefile:1.1.1.1 sf/u-boot/common/Makefile:1.2
@@ -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
diff -u sf/u-boot/common/cmd_mem.c:1.1.1.1 sf/u-boot/common/cmd_mem.c:1.2
@@ -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
diff -u sf/u-boot/common/command.c:1.1.1.1 sf/u-boot/common/command.c:1.2
@@ -79,6 +79,8 @@
 #include <cmd_boota.h>
 #endif
 
+#include <cmd_portio.h>
+
 /*
  * HELP command
  */
@@ -284,6 +286,7 @@
 	CMD_TBL_IMM
 	CMD_TBL_INM
 	CMD_TBL_IMW
+	CMD_TBL_IN
 	CMD_TBL_ICRC
 	CMD_TBL_IPROBE
 	CMD_TBL_ILOOP
@@ -314,6 +317,7 @@
 	CMD_TBL_NANDBOOT
 	CMD_TBL_NEXT
 	CMD_TBL_NM
+	CMD_TBL_OUT
 	CMD_TBL_PCI
 	CMD_TBL_PRINTENV
 	CMD_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
diff -u sf/u-boot/include/cmd_confdefs.h:1.1.1.1 sf/u-boot/include/cmd_confdefs.h:1.2
@@ -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

#1 lore raw
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.