1.1 --- a/pkg/devices/lib/gpio/include/gpio-jz4780.h Fri Sep 22 21:56:34 2023 +0200
1.2 +++ b/pkg/devices/lib/gpio/include/gpio-jz4780.h Sun Sep 24 01:53:43 2023 +0200
1.3 @@ -2,7 +2,7 @@
1.4 * GPIO driver for Ingenic JZ4780.
1.5 * (See below for additional copyright and licensing notices.)
1.6 *
1.7 - * Copyright (C) 2017, 2018 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2017, 2018, 2023 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -118,6 +118,7 @@
1.13 void config_pull(unsigned pin, unsigned mode);
1.14 void config_pad(unsigned pin, unsigned func, unsigned value);
1.15 void config_get(unsigned pin, unsigned reg, unsigned *value);
1.16 + void config_pad_get(unsigned pin, unsigned *func, unsigned *value);
1.17
1.18 // Multiple pin configuration methods.
1.19
1.20 @@ -154,6 +155,7 @@
1.21 void jz4780_gpio_config_pull(void *gpio, unsigned pin, unsigned mode);
1.22 void jz4780_gpio_config_pad(void *gpio, unsigned pin, unsigned func, unsigned value);
1.23 void jz4780_gpio_config_get(void *gpio, unsigned pin, unsigned reg, unsigned *value);
1.24 +void jz4780_gpio_config_pad_get(void *gpio, unsigned pin, unsigned *func, unsigned *value);
1.25
1.26 void jz4780_gpio_multi_setup(void *gpio, Pin_slice const *mask, unsigned mode, unsigned outvalues);
1.27 void jz4780_gpio_multi_config_pad(void *gpio, Pin_slice const *mask, unsigned func, unsigned value);