Do not include file from dt-bindings and simply use the already present defines.
Reported by: jmcneill MFC after: 1 week
This commit is contained in:
@@ -57,8 +57,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <dev/extres/clk/clk.h>
|
||||
#include <dev/extres/hwreset/hwreset.h>
|
||||
|
||||
#include <dt-bindings/pinctrl/sun4i-a10.h>
|
||||
|
||||
#if defined(__aarch64__)
|
||||
#include "opt_soc.h"
|
||||
#endif
|
||||
@@ -602,8 +600,8 @@ aw_fdt_configure_pins(device_t dev, phandle_t cfgxref)
|
||||
if (a10_gpio_get_drv(sc, pin_num) != pin_drive)
|
||||
a10_gpio_set_drv(sc, pin_num, pin_drive);
|
||||
if (a10_gpio_get_pud(sc, pin_num) != pin_pull &&
|
||||
(pin_pull == SUN4I_PINCTRL_PULL_UP ||
|
||||
pin_pull == SUN4I_PINCTRL_PULL_DOWN))
|
||||
(pin_pull == A10_GPIO_PULLUP ||
|
||||
pin_pull == A10_GPIO_PULLDOWN))
|
||||
a10_gpio_set_pud(sc, pin_num, pin_pull);
|
||||
A10_GPIO_UNLOCK(sc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user