forked from luck/tmp_suning_uos_patched
1802d0beec
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 655 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
*
|
|
* Copyright (C) 2012 ARM Limited
|
|
*/
|
|
|
|
#ifndef _LINUX_VEXPRESS_H
|
|
#define _LINUX_VEXPRESS_H
|
|
|
|
#include <linux/device.h>
|
|
#include <linux/regmap.h>
|
|
|
|
#define VEXPRESS_SITE_MB 0
|
|
#define VEXPRESS_SITE_DB1 1
|
|
#define VEXPRESS_SITE_DB2 2
|
|
#define VEXPRESS_SITE_MASTER 0xf
|
|
|
|
/* Config infrastructure */
|
|
|
|
void vexpress_config_set_master(u32 site);
|
|
u32 vexpress_config_get_master(void);
|
|
|
|
void vexpress_config_lock(void *arg);
|
|
void vexpress_config_unlock(void *arg);
|
|
|
|
int vexpress_config_get_topo(struct device_node *node, u32 *site,
|
|
u32 *position, u32 *dcc);
|
|
|
|
/* Config bridge API */
|
|
|
|
struct vexpress_config_bridge_ops {
|
|
struct regmap * (*regmap_init)(struct device *dev, void *context);
|
|
void (*regmap_exit)(struct regmap *regmap, void *context);
|
|
};
|
|
|
|
struct device *vexpress_config_bridge_register(struct device *parent,
|
|
struct vexpress_config_bridge_ops *ops, void *context);
|
|
|
|
/* Config regmap API */
|
|
|
|
struct regmap *devm_regmap_init_vexpress_config(struct device *dev);
|
|
|
|
/* Platform control */
|
|
|
|
void vexpress_flags_set(u32 data);
|
|
|
|
#endif
|