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

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2018 MediaTek Inc.
 *
 * Author: ZH Chen <[email protected]>
 *
 */

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

/* MT6765 have multiple bases to program pin configuration listed as the below:
 * iocfg[0]:0x10005000, iocfg[1]:0x10002C00, iocfg[2]:0x10002800,
 * iocfg[3]:0x10002A00, iocfg[4]:0x10002000, iocfg[5]:0x10002200,
 * iocfg[6]:0x10002500, iocfg[7]:0x10002600.
 * _i_base 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 mt6765_pin_mode_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_dir_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_di_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_do_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_smt_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_pd_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_pu_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_tdsel_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_rdsel_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_drv_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_pupd_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_r0_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_r1_range[] =;

static const struct mtk_pin_field_calc mt6765_pin_ies_range[] =;

static const struct mtk_pin_reg_calc mt6765_reg_cals[PINCTRL_PIN_REG_MAX] =;

static const char * const mt6765_pinctrl_register_base_names[] =;

static const struct mtk_eint_hw mt6765_eint_hw =;

static const struct mtk_pin_soc mt6765_data =;

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

static struct platform_driver mt6765_pinctrl_driver =;

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

MODULE_LICENSE();
MODULE_DESCRIPTION();