Loading arch/arm/mach-s3c2410/dma.c +19 −0 Original line number Original line Diff line number Diff line Loading @@ -127,8 +127,27 @@ static struct s3c24xx_dma_selection __initdata s3c2410_dma_sel = { .map_size = ARRAY_SIZE(s3c2410_dma_mappings), .map_size = ARRAY_SIZE(s3c2410_dma_mappings), }; }; static struct s3c24xx_dma_order __initdata s3c2410_dma_order = { .channels = { [DMACH_SDI] = { .list = { [0] = 3 | DMA_CH_VALID, [1] = 2 | DMA_CH_VALID, [2] = 0 | DMA_CH_VALID, }, }, [DMACH_I2S_IN] = { .list = { [0] = 1 | DMA_CH_VALID, [1] = 2 | DMA_CH_VALID, }, }, }, }; static int s3c2410_dma_add(struct sys_device *sysdev) static int s3c2410_dma_add(struct sys_device *sysdev) { { s3c24xx_dma_order_set(&s3c2410_dma_order); return s3c24xx_dma_init_map(&s3c2410_dma_sel); return s3c24xx_dma_init_map(&s3c2410_dma_sel); } } Loading Loading
arch/arm/mach-s3c2410/dma.c +19 −0 Original line number Original line Diff line number Diff line Loading @@ -127,8 +127,27 @@ static struct s3c24xx_dma_selection __initdata s3c2410_dma_sel = { .map_size = ARRAY_SIZE(s3c2410_dma_mappings), .map_size = ARRAY_SIZE(s3c2410_dma_mappings), }; }; static struct s3c24xx_dma_order __initdata s3c2410_dma_order = { .channels = { [DMACH_SDI] = { .list = { [0] = 3 | DMA_CH_VALID, [1] = 2 | DMA_CH_VALID, [2] = 0 | DMA_CH_VALID, }, }, [DMACH_I2S_IN] = { .list = { [0] = 1 | DMA_CH_VALID, [1] = 2 | DMA_CH_VALID, }, }, }, }; static int s3c2410_dma_add(struct sys_device *sysdev) static int s3c2410_dma_add(struct sys_device *sysdev) { { s3c24xx_dma_order_set(&s3c2410_dma_order); return s3c24xx_dma_init_map(&s3c2410_dma_sel); return s3c24xx_dma_init_map(&s3c2410_dma_sel); } } Loading