From f57f70aab9d5ed7964f2f791829a2d780b788a7e Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Thu, 13 Oct 2005 01:45:54 +0200 Subject: Support passing of OF flat trees to the kernel. Patch by Pantelis Antoniou, 04 Sep 2005 --- common/cmd_immap.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'common/cmd_immap.c') diff --git a/common/cmd_immap.c b/common/cmd_immap.c index 9db5f2cc46..f1b05357c8 100644 --- a/common/cmd_immap.c +++ b/common/cmd_immap.c @@ -318,11 +318,20 @@ int do_iopset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { uint rcode = 0; + iopin_t iopin; static uint port = 0; static uint pin = 0; static uint value = 0; - static enum { DIR, PAR, SOR, ODR, DAT, INT } cmd = DAT; - iopin_t iopin; + static enum { + DIR, + PAR, + SOR, + ODR, + DAT, +#if defined(CONFIG_8xx) + INT +#endif + } cmd = DAT; if (argc != 5) { puts ("iopset PORT PIN CMD VALUE\n"); -- cgit v1.2.1