linux/drivers/mfd/mt6397-core.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2014 MediaTek Inc.
 * Author: Flora Fu, MediaTek
 */

#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/irqdomain.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/mfd/core.h>
#include <linux/mfd/mt6323/core.h>
#include <linux/mfd/mt6331/core.h>
#include <linux/mfd/mt6357/core.h>
#include <linux/mfd/mt6358/core.h>
#include <linux/mfd/mt6359/core.h>
#include <linux/mfd/mt6397/core.h>
#include <linux/mfd/mt6323/registers.h>
#include <linux/mfd/mt6331/registers.h>
#include <linux/mfd/mt6357/registers.h>
#include <linux/mfd/mt6358/registers.h>
#include <linux/mfd/mt6359/registers.h>
#include <linux/mfd/mt6397/registers.h>

#define MT6323_RTC_BASE
#define MT6323_RTC_SIZE

#define MT6357_RTC_BASE
#define MT6357_RTC_SIZE

#define MT6331_RTC_BASE
#define MT6331_RTC_SIZE

#define MT6358_RTC_BASE
#define MT6358_RTC_SIZE

#define MT6397_RTC_BASE
#define MT6397_RTC_SIZE

#define MT6323_PWRC_BASE
#define MT6323_PWRC_SIZE

static const struct resource mt6323_rtc_resources[] =;

static const struct resource mt6357_rtc_resources[] =;

static const struct resource mt6331_rtc_resources[] =;

static const struct resource mt6358_rtc_resources[] =;

static const struct resource mt6397_rtc_resources[] =;

static const struct resource mt6358_keys_resources[] =;

static const struct resource mt6359_keys_resources[] =;

static const struct resource mt6323_keys_resources[] =;

static const struct resource mt6357_keys_resources[] =;

static const struct resource mt6331_keys_resources[] =;

static const struct resource mt6397_keys_resources[] =;

static const struct resource mt6323_pwrc_resources[] =;

static const struct mfd_cell mt6323_devs[] =;

static const struct mfd_cell mt6357_devs[] =;

/* MT6331 is always used in combination with MT6332 */
static const struct mfd_cell mt6331_mt6332_devs[] =;

static const struct mfd_cell mt6358_devs[] =;

static const struct mfd_cell mt6359_devs[] =;

static const struct mfd_cell mt6397_devs[] =;

struct chip_data {};

static const struct chip_data mt6323_core =;

static const struct chip_data mt6357_core =;

static const struct chip_data mt6331_mt6332_core =;

static const struct chip_data mt6358_core =;

static const struct chip_data mt6359_core =;

static const struct chip_data mt6397_core =;

static int mt6397_probe(struct platform_device *pdev)
{}

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

static const struct platform_device_id mt6397_id[] =;
MODULE_DEVICE_TABLE(platform, mt6397_id);

static struct platform_driver mt6397_driver =;

module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();