diff --git a/board/nm/nmhw21/da9063.c b/board/nm/nmhw21/da9063.c index 4e3bf212e0..76f3d866c3 100644 --- a/board/nm/nmhw21/da9063.c +++ b/board/nm/nmhw21/da9063.c @@ -3,7 +3,7 @@ * * Dialog DA9063 PMIC * - * Copyright (C) 2018 NetModule AG - http://www.netmodule.com/ + * Copyright (C) 2018-2019 NetModule AG - http://www.netmodule.com/ * * SPDX-License-Identifier: GPL-2.0+ */ @@ -128,7 +128,6 @@ void da9063_set_gpio(unsigned bit, int state) bitmask = 1U << (bit-8); } -/* printf("da9063_set_gpio %d 0x%04x\n", pmic_reg, bitmask); */ ret = da9063_get_reg(pmic_reg, ®); if (ret == 0) { @@ -138,25 +137,3 @@ void da9063_set_gpio(unsigned bit, int state) (void)da9063_set_reg(pmic_reg, reg); } } - -static int do_pmic(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) -{ - uint8_t val = 0; - int bus; - int rc; - - bus = da9063_claim_i2c_bus(); - - rc = da9063_get_reg(0x2c, &val); - printf("%d: %02x\n", rc, val); - - da9063_release_i2c_bus(bus); - - return 0; -} - -U_BOOT_CMD( - pmic, 1, 1, do_pmic, - "pmic", - "" -); diff --git a/board/nm/nmhw21/da9063.h b/board/nm/nmhw21/da9063.h index c80284823d..b1fc76beb2 100644 --- a/board/nm/nmhw21/da9063.h +++ b/board/nm/nmhw21/da9063.h @@ -3,7 +3,7 @@ * * Dialog DA9063 PMIC * - * Copyright (C) 2018 NetModule AG - http://www.netmodule.com/ + * Copyright (C) 2018-2019 NetModule AG - http://www.netmodule.com/ * * SPDX-License-Identifier: GPL-2.0+ */