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

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

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

/* MT8188 have multiple bases to program pin configuration listed as the below:
 * iocfg[0]:0x10005000, iocfg[1]:0x11c00000, iocfg[2]:0x11e10000,
 * iocfg[3]:0x11e20000, iocfg[4]:0x11ea0000
 * _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 mt8188_pin_mode_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_dir_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_di_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_do_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_smt_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_ies_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_tdsel_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_rdsel_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_pupd_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_r0_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_r1_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_pu_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_pd_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_drv_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_drv_adv_range[] =;

static const struct mtk_pin_field_calc mt8188_pin_rsel_range[] =;

static const struct mtk_pin_rsel mt8188_pin_rsel_val_range[] =;

static const unsigned int mt8188_pull_type[] =;

static const struct mtk_pin_reg_calc mt8188_reg_cals[PINCTRL_PIN_REG_MAX] =;

static const char * const mt8188_pinctrl_register_base_name[] =;

static const struct mtk_eint_hw mt8188_eint_hw =;

static const struct mtk_pin_soc mt8188_data =;

static const struct of_device_id mt8188_pinctrl_of_match[] =;

static struct platform_driver mt8188_pinctrl_driver =;

static int __init mt8188_pinctrl_init(void)
{}

arch_initcall(mt8188_pinctrl_init);

MODULE_DESCRIPTION();