blob: 7d7d669d29ebe001bd670d30a6a191d32d57c278 [file] [log] [blame]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef PINCONF_MESON_DRIVE_STRENGTH_H
#define PINCONF_MESON_DRIVE_STRENGTH_H
#include "pinctrl-meson.h"
struct meson_drive_bank {
const char *name;
unsigned int first;
unsigned int last;
struct meson_reg_desc reg;
};
struct meson_drive_data {
struct meson_drive_bank *drive_banks;
unsigned int num_drive_banks;
};
#define BANK_DRIVE(n, f, l, r, o) \
{ \
.name = n, \
.first = f, \
.last = l, \
.reg = {r, o}, \
}
int meson_pinconf_set_drive_strength(struct meson_pinctrl *pc,
unsigned int pin, u32 arg);
int meson_pinconf_get_drive_strength(struct meson_pinctrl *pc,
unsigned int pin, u32 *arg);
#endif /* PINCONF_MESON_DRIVE_STRENGTH_H */