linux/drivers/misc/smpro-misc.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Ampere Computing SoC's SMpro Misc Driver
 *
 * Copyright (c) 2022, Ampere Computing LLC
 */
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

/* Boot Stage/Progress Registers */
#define BOOTSTAGE
#define BOOTSTAGE_LO
#define CUR_BOOTSTAGE
#define BOOTSTAGE_HI

/* SOC State Registers */
#define SOC_POWER_LIMIT

struct smpro_misc {};

static ssize_t boot_progress_show(struct device *dev, struct device_attribute *da, char *buf)
{}

static DEVICE_ATTR_RO(boot_progress);

static ssize_t soc_power_limit_show(struct device *dev, struct device_attribute *da, char *buf)
{}

static ssize_t soc_power_limit_store(struct device *dev, struct device_attribute *da,
				     const char *buf, size_t count)
{}

static DEVICE_ATTR_RW(soc_power_limit);

static struct attribute *smpro_misc_attrs[] =;

ATTRIBUTE_GROUPS();

static int smpro_misc_probe(struct platform_device *pdev)
{}

static struct platform_driver smpro_misc_driver =;

module_platform_driver();

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