brcm2708: update 3.10 patches with raspberrypi/rpi-3.10.y of 27 Apr. 2014
[openwrt.git] / target / linux / brcm2708 / patches-3.10 / 0117-BCM2708-Extend-mach-header.patch
1 From 4b91c17e8ac97e4326df2068a56a3ead2b920e93 Mon Sep 17 00:00:00 2001
2 From: Florian Meier <florian.meier@koalo.de>
3 Date: Fri, 22 Nov 2013 14:37:51 +0100
4 Subject: [PATCH 117/196] BCM2708: Extend mach header
5
6 Extend the headers of the mach-bcm2708
7 in order to support I2S and DMA engine.
8
9 Signed-off-by: Florian Meier <florian.meier@koalo.de>
10 ---
11  arch/arm/mach-bcm2708/include/mach/dma.h      | 2 ++
12  arch/arm/mach-bcm2708/include/mach/platform.h | 2 ++
13  2 files changed, 4 insertions(+)
14
15 diff --git a/arch/arm/mach-bcm2708/include/mach/dma.h b/arch/arm/mach-bcm2708/include/mach/dma.h
16 index ac7a4a0..f2568d4 100644
17 --- a/arch/arm/mach-bcm2708/include/mach/dma.h
18 +++ b/arch/arm/mach-bcm2708/include/mach/dma.h
19 @@ -45,6 +45,8 @@
20  #define BCM2708_DMA_ADDR       0x04
21  /* the current control block appears in the following registers - read only */
22  #define BCM2708_DMA_INFO       0x08
23 +#define BCM2708_DMA_SOURCE_AD  0x0c
24 +#define BCM2708_DMA_DEST_AD    0x10
25  #define BCM2708_DMA_NEXTCB     0x1C
26  #define BCM2708_DMA_DEBUG      0x20
27  
28 diff --git a/arch/arm/mach-bcm2708/include/mach/platform.h b/arch/arm/mach-bcm2708/include/mach/platform.h
29 index 992a630..2e7e1bb 100644
30 --- a/arch/arm/mach-bcm2708/include/mach/platform.h
31 +++ b/arch/arm/mach-bcm2708/include/mach/platform.h
32 @@ -62,10 +62,12 @@
33  #define DMA_BASE                (BCM2708_PERI_BASE + 0x7000)   /* DMA controller */
34  #define ARM_BASE                 (BCM2708_PERI_BASE + 0xB000)   /* BCM2708 ARM control block */
35  #define PM_BASE                         (BCM2708_PERI_BASE + 0x100000) /* Power Management, Reset controller and Watchdog registers */
36 +#define PCM_CLOCK_BASE           (BCM2708_PERI_BASE + 0x101098) /* PCM Clock */
37  #define RNG_BASE                 (BCM2708_PERI_BASE + 0x104000) /* Hardware RNG */
38  #define GPIO_BASE                (BCM2708_PERI_BASE + 0x200000) /* GPIO */
39  #define UART0_BASE               (BCM2708_PERI_BASE + 0x201000)        /* Uart 0 */
40  #define MMCI0_BASE               (BCM2708_PERI_BASE + 0x202000) /* MMC interface */
41 +#define I2S_BASE                 (BCM2708_PERI_BASE + 0x203000) /* I2S */
42  #define SPI0_BASE               (BCM2708_PERI_BASE + 0x204000) /* SPI0 */
43  #define BSC0_BASE               (BCM2708_PERI_BASE + 0x205000) /* BSC0 I2C/TWI */
44  #define UART1_BASE               (BCM2708_PERI_BASE + 0x215000) /* Uart 1 */
45 -- 
46 1.9.1
47