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

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2020 MediaTek Inc.
 *
 * Author: Zhiyong Tao <[email protected]>
 *
 */

#include "pinctrl-mtk-mt8195.h"
#include "pinctrl-paris.h"

/* MT8195 have multiple bases to program pin configuration listed as the below:
 * iocfg[0]:0x10005000, iocfg[1]:0x11d10000, iocfg[2]:0x11d30000,
 * iocfg[3]:0x11d40000, iocfg[4]:0x11e20000, iocfg[5]:0x11eb0000,
 * iocfg[6]:0x11f40000.
 * _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 mt8195_pin_mode_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_dir_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_di_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_do_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_ies_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_smt_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_pu_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_pd_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_pupd_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_r0_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_r1_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_drv_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_drv_adv_range[] =;

static const struct mtk_pin_field_calc mt8195_pin_rsel_range[] =;

static const struct mtk_pin_rsel mt8195_pin_rsel_val_range[] =;

static const unsigned int mt8195_pull_type[] =;

static const struct mtk_pin_reg_calc mt8195_reg_cals[PINCTRL_PIN_REG_MAX] =;

static const char * const mt8195_pinctrl_register_base_names[] =;

static const struct mtk_eint_hw mt8195_eint_hw =;

static const struct mtk_pin_soc mt8195_data =;

static const struct of_device_id mt8195_pinctrl_of_match[] =;

static struct platform_driver mt8195_pinctrl_driver =;

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