/* Ethernet initialisations Disk On Chip (NAND) Millenium initialization. The NAND lives in the CS2* space  */
int do_brightness(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
/* Ethernet initialisations Disk On Chip (NAND) Millenium initialization. The NAND lives in the CS2* space  */
int do_brightness(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
	int rcode = 0;
	ulong side;
	ulong bright;
	switch (argc) {
	case 3:
		side = simple_strtoul(argv[1], NULL, 10);
		bright = simple_strtoul(argv[2], NULL, 10);
		if ((side >= 0) && (side <= 3) &&
				(bright >= 0) && (bright <= 1000)) {
			vcxk_setbrightness(side, bright);
			rcode = 0;
		} else {
			printf("parameters out of range\n");
			printf("Usage:\n%s\n", cmdtp->usage);
			rcode = 1;
		}
		break;
	default:
		printf("Usage:\n%s\n", cmdtp->usage);
		rcode = 1;
		break;
	}
	return rcode;
}