diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2013-02-12 14:03:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-12 20:35:52 +0100 |
commit | ed4da3f2de93bf445f10b762aeb1fc75967b5660 (patch) | |
tree | 073f2b2cc43a7a569c5fa501a45d5c5331c84997 /drivers/clocksource | |
parent | a59a5acf68e6a46aee285f3f2d95d64854cbf115 (diff) | |
download | barebox-ed4da3f2de93bf445f10b762aeb1fc75967b5660.tar.gz barebox-ed4da3f2de93bf445f10b762aeb1fc75967b5660.tar.xz |
sp804: introduce amba_is_arm_sp804 to detect if the sp804 is present at the address
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/amba-sp804.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clocksource/amba-sp804.c b/drivers/clocksource/amba-sp804.c index d9a30c228c..fedcb64839 100644 --- a/drivers/clocksource/amba-sp804.c +++ b/drivers/clocksource/amba-sp804.c @@ -9,7 +9,7 @@ #include <io.h> #include <driver.h> #include <errno.h> -#include <linux/amba/bus.h> +#include <linux/amba/sp804.h> #include <linux/clk.h> #include <linux/err.h> @@ -73,8 +73,8 @@ static int sp804_probe(struct amba_device *dev, const struct amba_id *id) static struct amba_id sp804_ids[] = { { - .id = 0x00141804, - .mask = 0x00ffffff, + .id = AMBA_ARM_SP804_ID, + .mask = AMBA_ARM_SP804_ID_MASK, }, { 0, 0 }, }; |