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

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

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

/* MT8192 have multiple bases to program pin configuration listed as the below:
 * iocfg0:0x10005000, iocfg_rm:0x11C20000, iocfg_bm:0x11D10000,
 * iocfg_bl:0x11D30000, iocfg_br:0x11D40000, 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 mt8192_pin_mode_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_dir_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_di_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_do_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_smt_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_ies_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_pu_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_pd_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_drv_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_pupd_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_r0_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_r1_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_drv_adv_range[] =;

static const struct mtk_pin_field_calc mt8192_pin_rsel_range[] =;

static const unsigned int mt8192_pull_type[] =;

static const char * const mt8192_pinctrl_register_base_names[] =;

static const struct mtk_eint_hw mt8192_eint_hw =;

static const struct mtk_pin_reg_calc mt8192_reg_cals[PINCTRL_PIN_REG_MAX] =;

static const struct mtk_pin_soc mt8192_data =;

static const struct of_device_id mt8192_pinctrl_of_match[] =;

static struct platform_driver mt8192_pinctrl_driver =;

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

MODULE_DESCRIPTION();