2 * (C) Copyright 2011 DENX Software Engineering,
3 * Anatolij Gustschin <agust@denx.de>
5 * SPDX-License-Identifier: GPL-2.0+
13 #define GPIO_USB1_0 0x00010000
15 static int cmd_disp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
17 struct mpc5xxx_gpio *gpio = (struct mpc5xxx_gpio *)MPC5XXX_GPIO;
21 in_be32(&gpio->simple_dvo) & GPIO_USB1_0 ? "on" : "off");
25 if (!strncmp(argv[1], "on", 2)) {
26 setbits_be32(&gpio->simple_dvo, GPIO_USB1_0);
27 } else if (!strncmp(argv[1], "off", 3)) {
28 clrbits_be32(&gpio->simple_dvo, GPIO_USB1_0);
36 U_BOOT_CMD(disp, 2, 1, cmd_disp,
37 "disp [on/off] - switch display on/off",
38 "\n - print display on/off status\n"