linux/drivers/reset/sti/reset-stih407.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2014 STMicroelectronics (R&D) Limited
 * Author: Giuseppe Cavallaro <[email protected]>
 */
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <dt-bindings/reset/stih407-resets.h>
#include "reset-syscfg.h"

/* STiH407 Peripheral powerdown definitions. */
static const char stih407_core[] =;
static const char stih407_sbc_reg[] =;
static const char stih407_lpm[] =;

#define STIH407_PDN_0(_bit)
#define STIH407_PDN_1(_bit)
#define STIH407_PDN_ETH(_bit, _stat)

/* Powerdown requests control 0 */
#define SYSCFG_5000
#define SYSSTAT_5500
/* Powerdown requests control 1 (High Speed Links) */
#define SYSCFG_5001
#define SYSSTAT_5501

/* Ethernet powerdown/status/reset */
#define SYSCFG_4032
#define SYSSTAT_4520
#define SYSCFG_4002

static const struct syscfg_reset_channel_data stih407_powerdowns[] =;

/* Reset Generator control 0/1 */
#define SYSCFG_5128
#define SYSCFG_5131
#define SYSCFG_5132

#define LPM_SYSCFG_1

#define STIH407_SRST_CORE(_reg, _bit)

#define STIH407_SRST_SBC(_reg, _bit)

#define STIH407_SRST_LPM(_reg, _bit)

static const struct syscfg_reset_channel_data stih407_softresets[] =;

/* PicoPHY reset/control */
#define SYSCFG_5061

static const struct syscfg_reset_channel_data stih407_picophyresets[] =;

static const struct syscfg_reset_controller_data stih407_powerdown_controller =;

static const struct syscfg_reset_controller_data stih407_softreset_controller =;

static const struct syscfg_reset_controller_data stih407_picophyreset_controller =;

static const struct of_device_id stih407_reset_match[] =;

static struct platform_driver stih407_reset_driver =;

static int __init stih407_reset_init(void)
{}

arch_initcall(stih407_reset_init);