![Rob Herring](/assets/img/avatar_default.png)
The only thing that vexpress-syscfg does is provide a regmap to vexpress-config bus child devices. There's little reason to have 2 components for this. The current structure with initcall ordering requirements makes turning these components into modules more difficult. So let's start to simplify things and merge vexpress-syscfg into vexpress-config. There's no functional change in this commit and it's still separate components until subsequent commits. Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Liviu Dudau <liviu.dudau@arm.com> Signed-off-by: Rob Herring <robh@kernel.org>
27 lines
491 B
C
27 lines
491 B
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);
|
|
|
|
/* Config regmap API */
|
|
|
|
struct regmap *devm_regmap_init_vexpress_config(struct device *dev);
|
|
|
|
#endif
|