linux/drivers/pinctrl/mediatek/pinctrl-mt6779.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2019 MediaTek Inc.
 * Author: Andy Teng <[email protected]>
 *
 */

#include <linux/module.h>
#include "pinctrl-mtk-mt6779.h"
#include "pinctrl-paris.h"

/* MT6779 have multiple bases to program pin configuration listed as the below:
 * gpio:0x10005000,     iocfg_rm:0x11C20000, iocfg_br:0x11D10000,
 * iocfg_lm:0x11E20000, iocfg_lb:0x11E70000, iocfg_rt:0x11EA0000,
 * iocfg_lt:0x11F20000, iocfg_tl:0x11F30000
 * _i_based could be used to indicate what base the pin should be mapped into.
 */

#define PIN_FIELD_BASE(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits)

#define PINS_FIELD_BASE(s_pin, e_pin, i_base, s_addr, x_addrs, s_bit, x_bits)

static const struct mtk_pin_field_calc mt6779_pin_mode_range[] =;

static const struct mtk_pin_field_calc mt6779_pin_dir_range[] =;

static const struct mtk_pin_field_calc mt6779_pin_di_range[] =;

static const struct mtk_pin_field_calc mt6779_pin_do_range[] =;

static const struct mtk_pin_field_calc mt6779_pin_ies_range[] =;

static const struct mtk_pin_field_calc mt6779_pin_smt_range[] =;

static const struct mtk_pin_field_calc mt6779_pin_pu_range[] =;

static const struct mtk_pin_field_calc mt6779_pin_pd_range[] =;

static const struct mtk_pin_field_calc mt6779_pin_drv_range[] =;

static const struct mtk_pin_field_calc mt6779_pin_pupd_range[] =;

static const struct mtk_pin_field_calc mt6779_pin_r0_range[] =;

static const struct mtk_pin_field_calc mt6779_pin_r1_range[] =;

static const struct mtk_pin_reg_calc mt6779_reg_cals[PINCTRL_PIN_REG_MAX] =;

static const char * const mt6779_pinctrl_register_base_names[] =;

static const struct mtk_eint_hw mt6779_eint_hw =;

static const struct mtk_pin_soc mt6779_data =;

static const struct of_device_id mt6779_pinctrl_of_match[] =;
MODULE_DEVICE_TABLE(of, mt6779_pinctrl_of_match);

static struct platform_driver mt6779_pinctrl_driver =;

static int __init mt6779_pinctrl_init(void)
{}
arch_initcall(mt6779_pinctrl_init);

MODULE_LICENSE();
MODULE_DESCRIPTION();