[PATCH v2 1/6] ARM: brcmstb: add infrastructure for ARM-based Broadcom STB SoCs
From: Matt Porter <hidden>
Date: 2013-12-13 14:10:59
Also in:
lkml
On Tue, Nov 26, 2013 at 04:22:23PM -0800, Marc Carino wrote:
The BCM7xxx series of Broadcom SoCs are used primarily in set-top boxes. This patch adds machine support for the ARM-based Broadcom SoCs. Signed-off-by: Marc Carino <redacted> Acked-by: Florian Fainelli <f.fainelli@gmail.com>
<snip>
quoted hunk ↗ jump to hunk
diff --git a/arch/arm/mach-bcm/brcmstb.h b/arch/arm/mach-bcm/brcmstb.h new file mode 100644 index 0000000..d08dffc --- /dev/null +++ b/arch/arm/mach-bcm/brcmstb.h@@ -0,0 +1,70 @@ +/* + * Copyright (C) 2013 Broadcom Corporation + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation version 2. + * + * This program is distributed "as is" WITHOUT ANY WARRANTY of any + * kind, whether express or implied; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __BRCMSTB_H__ +#define __BRCMSTB_H__ + +#if !defined(__ASSEMBLY__) +#include <linux/smp.h> +#endif + +#define BRCMSTB_PERIPH_VIRT 0xfc000000 +#define BRCMSTB_PERIPH_PHYS 0xf0000000 +#define BRCMSTB_PERIPH_LENGTH 0x02000000 + +#define BVIRTADDR(x) (BRCMSTB_PERIPH_VIRT + ((x) & 0x0fffffff)) +#define BPHYSADDR(x) ((x) + BRCMSTB_PERIPH_PHYS) + +#define BCHP_UARTA_REG_START 0x00406b00 + +#define BCHP_IRQ0_IRQEN 0x00406780 +#define BCHP_IRQ0_IRQEN_uarta_irqen_MASK 0x00010000 +#define BCHP_IRQ0_IRQEN_uartb_irqen_MASK 0x00020000 +#define BCHP_IRQ0_IRQEN_uartc_irqen_MASK 0x00040000
These need to be all uppercase. Using bitops might be nice too. -Matt