linux/drivers/platform/x86/intel/bxtwc_tmu.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Intel BXT Whiskey Cove PMIC TMU driver
 *
 * Copyright (C) 2016 Intel Corporation. All rights reserved.
 *
 * This driver adds TMU (Time Management Unit) support for Intel BXT platform.
 * It enables the alarm wake-up functionality in the TMU unit of Whiskey Cove
 * PMIC.
 */

#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/mfd/intel_soc_pmic.h>

#define BXTWC_TMUIRQ
#define BXTWC_MIRQLVL1
#define BXTWC_MTMUIRQ_REG
#define BXTWC_MIRQLVL1_MTMU
#define BXTWC_TMU_WK_ALRM
#define BXTWC_TMU_SYS_ALRM
#define BXTWC_TMU_ALRM_MASK
#define BXTWC_TMU_ALRM_IRQ

struct wcove_tmu {};

static irqreturn_t bxt_wcove_tmu_irq_handler(int irq, void *data)
{}

static int bxt_wcove_tmu_probe(struct platform_device *pdev)
{}

static void bxt_wcove_tmu_remove(struct platform_device *pdev)
{}

#ifdef CONFIG_PM_SLEEP
static int bxtwc_tmu_suspend(struct device *dev)
{}

static int bxtwc_tmu_resume(struct device *dev)
{}
#endif

static SIMPLE_DEV_PM_OPS(bxtwc_tmu_pm_ops, bxtwc_tmu_suspend, bxtwc_tmu_resume);

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

static struct platform_driver bxt_wcove_tmu_driver =;

module_platform_driver();

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