X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cmd%2Ftsi148.c;h=0d849d9979e46ed10535cc58295cef375d946532;hb=refs%2Fheads%2Ftizen_7.0;hp=ea96d0ffb0a56d9bcd352fb325e87cdfd8593f73;hpb=d82477748d641e60ba3e1a0b55d98362aed70f80;p=platform%2Fkernel%2Fu-boot.git diff --git a/cmd/tsi148.c b/cmd/tsi148.c index ea96d0f..0d849d9 100644 --- a/cmd/tsi148.c +++ b/cmd/tsi148.c @@ -1,15 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2009 Reinhard Arlt, reinhard.arlt@esd-electronics.com * * base on universe.h by * * (C) Copyright 2003 Stefan Roese, stefan.roese@esd-electronics.com - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include +#include #include #include #include @@ -383,7 +383,7 @@ int tsi148_vme_crg_window(unsigned int vmeAddr, int vam) /* * Tundra Tsi148 configuration */ -int do_tsi148(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +int do_tsi148(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { ulong addr1 = 0, addr2 = 0, size = 0, vam = 0, vdw = 0; char cmd = 'x'; @@ -392,15 +392,15 @@ int do_tsi148(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) if (argc > 1) cmd = argv[1][0]; if (argc > 2) - addr1 = simple_strtoul(argv[2], NULL, 16); + addr1 = hextoul(argv[2], NULL); if (argc > 3) - addr2 = simple_strtoul(argv[3], NULL, 16); + addr2 = hextoul(argv[3], NULL); if (argc > 4) - size = simple_strtoul(argv[4], NULL, 16); + size = hextoul(argv[4], NULL); if (argc > 5) - vam = simple_strtoul(argv[5], NULL, 16); + vam = hextoul(argv[5], NULL); if (argc > 6) - vdw = simple_strtoul(argv[6], NULL, 16); + vdw = hextoul(argv[6], NULL); switch (cmd) { case 'c':