linux/drivers/power/reset/odroid-go-ultra-poweroff.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (c) 2023 Neil Armstrong <[email protected]>
 */
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/mfd/rk808.h>
#include <linux/regmap.h>
#include <linux/module.h>
#include <linux/reboot.h>
#include <linux/i2c.h>

/*
 * The Odroid Go Ultra has 2 PMICs:
 * - RK818 (manages the battery and USB-C power supply)
 * - RK817
 * Both PMICs feeds power to the S922X SoC, so they must be powered-off in sequence.
 * Vendor does power-off the RK817 first, then the RK818 so here we follow this sequence.
 */

struct odroid_go_ultra_poweroff_data {};

static int odroid_go_ultra_poweroff_prepare(struct sys_off_data *data)
{}

static void odroid_go_ultra_poweroff_put_pmic_device(void *data)
{}

static int odroid_go_ultra_poweroff_get_pmic_device(struct device *dev, const char *compatible,
						    struct device **pmic)
{}

static int odroid_go_ultra_poweroff_probe(struct platform_device *pdev)
{}
static struct platform_device *pdev;

static struct platform_driver odroid_go_ultra_poweroff_driver =;

static int __init odroid_go_ultra_poweroff_init(void)
{}

static void __exit odroid_go_ultra_poweroff_exit(void)
{}

module_init();
module_exit(odroid_go_ultra_poweroff_exit);

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