[Armadeus-commitlog] armadeus branch, master, updated. release-3.4-125-g9416e23
Brought to you by:
sszy
|
From: Nicolas <th...@us...> - 2011-05-11 05:51:46
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 9416e234e922e82d85eae0959f21c9b9225bdb06 (commit)
from 46803acfafbb3148d4f942940611f6b666f80fb1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9416e234e922e82d85eae0959f21c9b9225bdb06
Author: Nicolas Colombain <nic...@ar...>
Date: Wed May 11 07:51:00 2011 +0200
[LINUX] APF51 fix erratic fpga load
-----------------------------------------------------------------------
Summary of changes:
.../fpga/dev_tools/loader/apf51-fpga-loader.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/target/linux/modules/fpga/dev_tools/loader/apf51-fpga-loader.c b/target/linux/modules/fpga/dev_tools/loader/apf51-fpga-loader.c
index 5bfc2d7..1b39b29 100644
--- a/target/linux/modules/fpga/dev_tools/loader/apf51-fpga-loader.c
+++ b/target/linux/modules/fpga/dev_tools/loader/apf51-fpga-loader.c
@@ -52,22 +52,19 @@ int apf51_fpga_pre(void)
{
#define EMI_CLK_SEL 1<<26
- /* change emi_clk_sel to ensure blck smaller than 50MHz */
- temp_clk = __raw_readl( MX51_IO_ADDRESS(MX51_CCM_BASE_ADDR)+ MXC_CCM_CBCDR );
- __raw_writel( temp_clk | EMI_CLK_SEL, MX51_IO_ADDRESS(MX51_CCM_BASE_ADDR)+ MXC_CCM_CBCDR );
-
temp_rcr1 = __raw_readl( MX51_IO_ADDRESS(MX51_WEIM_BASE_ADDR) + MXC_CS1RCR1_ADDR );
__raw_writel( 0x01000010, MX51_IO_ADDRESS(MX51_WEIM_BASE_ADDR) + MXC_CS1RCR1_ADDR );
temp_wcr1 = __raw_readl(MX51_IO_ADDRESS(MX51_WEIM_BASE_ADDR) + MXC_CS1WCR1_ADDR);
__raw_writel( 0x01000008, MX51_IO_ADDRESS(MX51_WEIM_BASE_ADDR) + MXC_CS1WCR1_ADDR );
+ /* change emi_clk_sel to ensure blck smaller than 50MHz */
+ temp_clk = __raw_readl( MX51_IO_ADDRESS(MX51_CCM_BASE_ADDR)+ MXC_CCM_CBCDR );
+ __raw_writel( temp_clk | EMI_CLK_SEL, MX51_IO_ADDRESS(MX51_CCM_BASE_ADDR)+ MXC_CCM_CBCDR );
+
/* FPGA PROG */
gpio_direction_output(CONFIG_SYS_FPGA_PRG, 1);
- /* FPGA PWR */
- gpio_direction_output(CONFIG_SYS_FPGA_PWR, 1);
-
/* FPGA SUSPEND */
gpio_direction_output(CONFIG_SYS_FPGA_SUSPEND, 1);
@@ -77,6 +74,9 @@ int apf51_fpga_pre(void)
/* FPGA INIT# */
gpio_direction_input(CONFIG_SYS_FPGA_INIT);
+ /* FPGA PWR */
+ gpio_direction_output(CONFIG_SYS_FPGA_PWR, 1);
+
cs1_base = ioremap(MX51_CS1_BASE_ADDR, SZ_4K);
return 0;
@@ -158,6 +158,7 @@ int apf51_fpga_post(void)
{
/* restore emi_clk_sel */
__raw_writel( temp_clk, MX51_IO_ADDRESS(MX51_CCM_BASE_ADDR)+ MXC_CCM_CBCDR );
+ udelay(10);
__raw_writel( temp_rcr1, MX51_IO_ADDRESS(MX51_WEIM_BASE_ADDR) + MXC_CS1RCR1_ADDR );
__raw_writel( temp_wcr1, MX51_IO_ADDRESS(MX51_WEIM_BASE_ADDR) + MXC_CS1WCR1_ADDR );
@@ -169,6 +170,7 @@ int apf51_fpga_post(void)
int apf51_fpga_abort(void)
{
__raw_writel( temp_clk, MX51_IO_ADDRESS(MX51_CCM_BASE_ADDR)+ MXC_CCM_CBCDR );
+ udelay(10);
__raw_writel( temp_rcr1, MX51_IO_ADDRESS(MX51_WEIM_BASE_ADDR) + MXC_CS1RCR1_ADDR );
__raw_writel( temp_wcr1, MX51_IO_ADDRESS(MX51_WEIM_BASE_ADDR) + MXC_CS1WCR1_ADDR );
hooks/post-receive
--
armadeus
|