History

vexpress: Move setting master site to vexpress-config bus

There's only a single caller of vexpress_config_set_master() from vexpress-sysreg.c. Let's just make the registers needed available to vexpress-config and move all the code there. The registers needed aren't used anywhere else either. With this, we can get rid of the private API between these 2 drivers.

Rob Herring committed 6 years ago

Commit 310f80d1 parent a5a38763 files · +34 −37Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/vexpress.h+0−9
@@ -10,15 +10,6 @@ · 9 unmodified lines
10#include <linux/device.h>10#include <linux/device.h>
11#include <linux/regmap.h>11#include <linux/regmap.h>
12 12
13#define VEXPRESS_SITE_MB 0
14#define VEXPRESS_SITE_DB1 1
15#define VEXPRESS_SITE_DB2 2
16#define VEXPRESS_SITE_MASTER 0xf
17
18/* Config infrastructure */
19
20void vexpress_config_set_master(u32 site);
21
22/* Config regmap API */13/* Config regmap API */
23 14
24struct regmap *devm_regmap_init_vexpress_config(struct device *dev);15struct regmap *devm_regmap_init_vexpress_config(struct device *dev);