diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-10-14 16:27:08 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-15 08:57:38 +0200 |
commit | 908c4b0900a1069f7b346e0f178db01a35ed261c (patch) | |
tree | b1b87c92a7f84dd486f1c997abc0a8458ecb2151 /drivers/amba | |
parent | 840d4858d0aa7137e2e6b582c9303d9391536b37 (diff) | |
download | barebox-908c4b0900a1069f7b346e0f178db01a35ed261c.tar.gz barebox-908c4b0900a1069f7b346e0f178db01a35ed261c.tar.xz |
amba: add periph id RO params to the device
this will allow to knonw the pid probed
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/amba')
-rw-r--r-- | drivers/amba/bus.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index f0a40b69c5..d1ab53ca72 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c @@ -157,6 +157,13 @@ int amba_device_add(struct amba_device *dev) if (ret) goto err_release; + if (IS_ENABLED(CONFIG_PARAMETER)) { + char str[16]; + + sprintf(str, "0x%08x", dev->periphid); + dev_add_param_fixed(&dev->dev, "periphid", str); + } + return ret; err_release: release_region(res); |