Browse Source

fix 3a780e pnps cmd.

Change-Id: Idf9f5f44f422a33b056902cb24cb7cf1ea7e7a22
Signed-off-by: qiaochong <qiaochong@loongson.cn>
master
qiaochong 9 years ago
committed by Chong Qiao
parent
commit
b80186eb0a
  1. 7
      Targets/Bonito3a780e/Bonito/mycmd.c

7
Targets/Bonito3a780e/Bonito/mycmd.c

@ -116,7 +116,6 @@ default: return -1;break;
return 0;
}
#if PCI_IDSEL_CS5536 != 0
static int logicdev=0;
static int PnpRead_w83627(int type,long long addr,union commondata *mydata)
@ -143,19 +142,13 @@ default: return -1;break;
return 0;
}
#endif
static int pnps(int argc,char **argv)
{
#if PCI_IDSEL_CS5536 != 0
logicdev=strtoul(argv[1],0,0);
syscall1=(void*)PnpRead_w83627;
syscall2=(void*)PnpWrite_w83627;
#else
syscall1=(void*)PnpRead;
syscall2=(void*)PnpWrite;
#endif
syscall_addrtype=0;
return 0;
}

Loading…
Cancel
Save