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

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2021 MediaTek Inc.
 *
 * Author: Guodong Liu <[email protected]>
 *
 */

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

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

static const struct mtk_pin_field_calc mt8186_pin_dir_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_di_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_do_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_ies_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_smt_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_pu_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_pd_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_pupd_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_r0_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_r1_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_drv_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_drv_adv_range[] =;

static const struct mtk_pin_field_calc mt8186_pin_rsel_range[] =;

static const struct mtk_pin_rsel mt8186_pin_rsel_val_range[] =;

static const unsigned int mt8186_pull_type[] =;

static const struct mtk_pin_reg_calc mt8186_reg_cals[PINCTRL_PIN_REG_MAX] =;

static const char * const mt8186_pinctrl_register_base_names[] =;

static const struct mtk_eint_hw mt8186_eint_hw =;

static const struct mtk_pin_soc mt8186_data =;

static const struct of_device_id mt8186_pinctrl_of_match[] =;

static struct platform_driver mt8186_pinctrl_driver =;

static int __init mt8186_pinctrl_init(void)
{}

arch_initcall(mt8186_pinctrl_init);