ARM: 6368/1: move the PrimeCell IDs to use macros

This make four macros for the PrimeCell ID register available to
drivers that use them witout using the PrimeCell/AMBA bus
abstraction and struct amba_device. It also moves the magic
PrimeCell CID "B105F00D" to the bus.h header file.

Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Russell King <[email protected]>
This commit is contained in:
Linus Walleij 2010-09-07 22:43:19 +01:00 • committed by Russell King
commit 01723a9566
2 changed files with 12 additions and 5 deletions

View file

@ -298,7 +298,7 @@ int amba_device_register(struct amba_device *dev, struct resource *parent)
amba_put_disable_pclk(dev);
if (cid == 0xb105f00d)
if (cid == AMBA_CID)
dev->periphid = pid;
if (!dev->periphid)