diff options
Diffstat (limited to 'recipes-bsp/u-boot/files/v2019.07/0008-ARM-socfpga-stratix10-Enable-DMA330-DMA-controller.patch')
-rw-r--r-- | recipes-bsp/u-boot/files/v2019.07/0008-ARM-socfpga-stratix10-Enable-DMA330-DMA-controller.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/files/v2019.07/0008-ARM-socfpga-stratix10-Enable-DMA330-DMA-controller.patch b/recipes-bsp/u-boot/files/v2019.07/0008-ARM-socfpga-stratix10-Enable-DMA330-DMA-controller.patch new file mode 100644 index 0000000..91505b7 --- /dev/null +++ b/recipes-bsp/u-boot/files/v2019.07/0008-ARM-socfpga-stratix10-Enable-DMA330-DMA-controller.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From da0bd33c8c8f6a1b77ecaa4c676f8ee14997b9e9 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Ang, Chee Hong" <chee.hong.ang@intel.com> | ||
3 | Date: Wed, 30 Jan 2019 21:29:09 -0800 | ||
4 | Subject: [PATCH 08/12] ARM: socfpga: stratix10: Enable DMA330 DMA controller | ||
5 | |||
6 | Signed-off-by: Ang, Chee Hong <chee.hong.ang@intel.com> | ||
7 | --- | ||
8 | arch/arm/mach-socfpga/include/mach/reset_manager_s10.h | 1 + | ||
9 | arch/arm/mach-socfpga/spl_s10.c | 4 ++++ | ||
10 | 2 files changed, 5 insertions(+) | ||
11 | |||
12 | diff --git a/arch/arm/mach-socfpga/include/mach/reset_manager_s10.h b/arch/arm/mach-socfpga/include/mach/reset_manager_s10.h | ||
13 | index 1939ffa149..85424c28a6 100644 | ||
14 | --- a/arch/arm/mach-socfpga/include/mach/reset_manager_s10.h | ||
15 | +++ b/arch/arm/mach-socfpga/include/mach/reset_manager_s10.h | ||
16 | @@ -97,6 +97,7 @@ struct socfpga_reset_manager { | ||
17 | #define RSTMGR_DMA RSTMGR_DEFINE(1, 16) | ||
18 | #define RSTMGR_SPIM0 RSTMGR_DEFINE(1, 17) | ||
19 | #define RSTMGR_SPIM1 RSTMGR_DEFINE(1, 18) | ||
20 | +#define RSTMGR_DMA_OCP RSTMGR_DEFINE(1, 21) | ||
21 | #define RSTMGR_L4WD0 RSTMGR_DEFINE(2, 0) | ||
22 | #define RSTMGR_L4WD1 RSTMGR_DEFINE(2, 1) | ||
23 | #define RSTMGR_L4WD2 RSTMGR_DEFINE(2, 2) | ||
24 | diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c | ||
25 | index ec65e1ce64..04fa1a5696 100644 | ||
26 | --- a/arch/arm/mach-socfpga/spl_s10.c | ||
27 | +++ b/arch/arm/mach-socfpga/spl_s10.c | ||
28 | @@ -158,6 +158,10 @@ void board_init_f(ulong dummy) | ||
29 | writel(SYSMGR_DMA_IRQ_NS | SYSMGR_DMA_MGR_NS, &sysmgr_regs->dma); | ||
30 | writel(SYSMGR_DMAPERIPH_ALL_NS, &sysmgr_regs->dma_periph); | ||
31 | |||
32 | + /* enable DMA330 DMA */ | ||
33 | + socfpga_per_reset(SOCFPGA_RESET(DMA), 0); | ||
34 | + socfpga_per_reset(SOCFPGA_RESET(DMA_OCP), 0); | ||
35 | + | ||
36 | spl_disable_firewall_l4_per(); | ||
37 | |||
38 | spl_disable_firewall_l4_sys(); | ||
39 | -- | ||
40 | 2.21.0 | ||
41 | |||