Skip to content

Commit d92342d

Browse files
Linus WalleijBen Dooks
authored andcommitted
DMAENGINE: correct PL080 register header file
This PL008 among all other variables named PL080 doesn't seem right. Fix it. Also add some missing defined that I use in the new PL08x driver. Acked-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
1 parent 2d4a3b7 commit d92342d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎arch/arm/include/asm/hardware/pl080.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
/* Per channel configuration registers */
4545

46-
#define PL008_Cx_STRIDE (0x20)
46+
#define PL080_Cx_STRIDE (0x20)
4747
#define PL080_Cx_BASE(x) ((0x100 + (x * 0x20)))
4848
#define PL080_Cx_SRC_ADDR(x) ((0x100 + (x * 0x20)))
4949
#define PL080_Cx_DST_ADDR(x) ((0x104 + (x * 0x20)))
@@ -68,6 +68,8 @@
6868
#define PL080_CONTROL_TC_IRQ_EN (1 << 31)
6969
#define PL080_CONTROL_PROT_MASK (0x7 << 28)
7070
#define PL080_CONTROL_PROT_SHIFT (28)
71+
#define PL080_CONTROL_PROT_CACHE (1 << 30)
72+
#define PL080_CONTROL_PROT_BUFF (1 << 29)
7173
#define PL080_CONTROL_PROT_SYS (1 << 28)
7274
#define PL080_CONTROL_DST_INCR (1 << 27)
7375
#define PL080_CONTROL_SRC_INCR (1 << 26)

‎arch/arm/mach-s3c64xx/dma.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ static int s3c64xx_dma_init1(int chno, enum dma_ch chbase,
697697
chptr->number = chno;
698698
chptr->dmac = dmac;
699699
chptr->regs = regptr;
700-
regptr += PL008_Cx_STRIDE;
700+
regptr += PL080_Cx_STRIDE;
701701
}
702702

703703
/* for the moment, permanently enable the controller */

0 commit comments

Comments
 (0)