Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
95d50e5c
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
95d50e5c
编写于
6月 06, 2011
作者:
E
Eric Benard
提交者:
Albert ARIBAUD
6月 21, 2011
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cpu9260/9G20: fix board support
Signed-off-by:
N
Eric Bénard
<
eric@eukrea.com
>
上级
96fd9906
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
36 deletion
+24
-36
MAKEALL
MAKEALL
+0
-2
Makefile
Makefile
+0
-8
board/eukrea/cpu9260/cpu9260.c
board/eukrea/cpu9260/cpu9260.c
+16
-17
board/eukrea/cpu9260/led.c
board/eukrea/cpu9260/led.c
+3
-3
include/configs/cpu9260.h
include/configs/cpu9260.h
+5
-6
未找到文件。
MAKEALL
浏览文件 @
95d50e5c
...
...
@@ -455,8 +455,6 @@ LIST_at91="$(boards_by_soc at91)\
at91sam9m10g45ek
\
at91sam9rlek
\
CPUAT91
\
CPU9260
\
CPU9G20
\
pm9g45
\
SBC35_A9G20
\
TNY_A9260
\
...
...
Makefile
浏览文件 @
95d50e5c
...
...
@@ -820,14 +820,6 @@ at91sam9rlek_config : unconfig
fi
;
@
$(MKCONFIG)
-n
$@
-a
at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
CPU9G20_128M_config
\
CPU9G20_config
\
CPU9260_128M_config
\
CPU9260_config
:
unconfig
@
mkdir
-p
$(obj)
include
@
echo
"#define CONFIG_
$
(@:_config=) 1"
>
$(obj)
include/config.h
@
$(MKCONFIG)
-n
$@
-a
cpu9260 arm arm926ejs cpu9260 eukrea at91
at91sam9m10g45ek_nandflash_config
\
at91sam9m10g45ek_dataflash_config
\
at91sam9m10g45ek_dataflash_cs0_config
\
...
...
board/eukrea/cpu9260/cpu9260.c
浏览文件 @
95d50e5c
...
...
@@ -4,7 +4,7 @@
* Lead Tech Design <www.leadtechdesign.com>
* Ilko Iliev <www.ronetix.at>
*
* (C) Copyright 2009
* (C) Copyright 2009
-2011
* Eric Benard <eric@eukrea.com>
*
* See file CREDITS for list of people who contributed to this
...
...
@@ -27,16 +27,15 @@
*/
#include <common.h>
#include <asm/
sizes
.h>
#include <asm/
io
.h>
#include <asm/arch/at91sam9260.h>
#include <asm/arch/at91sam9_smc.h>
#include <asm/arch/at91_common.h>
#include <asm/arch/at91_matrix.h>
#include <asm/arch/at91_pmc.h>
#include <asm/arch/at91_rstc.h>
#include <asm/arch/at91_matrix.h>
#include <asm/arch/at91_pio.h>
#include <asm/arch/clk.h>
#include <asm/arch/io.h>
#include <asm/arch/hardware.h>
#if defined(CONFIG_RESET_PHY_R) && defined(CONFIG_MACB)
#include <net.h>
...
...
@@ -54,9 +53,9 @@ DECLARE_GLOBAL_DATA_PTR;
static
void
cpu9260_nand_hw_init
(
void
)
{
unsigned
long
csa
;
at91_smc_t
*
smc
=
(
at91_smc_t
*
)
AT
91_SMC_BASE
;
at91_matrix_t
*
matrix
=
(
at91_matrix_t
*
)
AT
91_MATRIX_BASE
;
at91_pmc_t
*
pmc
=
(
at91_pmc_t
*
)
AT
91_PMC_BASE
;
at91_smc_t
*
smc
=
(
at91_smc_t
*
)
AT
MEL_BASE_SMC
;
at91_matrix_t
*
matrix
=
(
at91_matrix_t
*
)
AT
MEL_BASE_MATRIX
;
at91_pmc_t
*
pmc
=
(
at91_pmc_t
*
)
AT
MEL_BASE_PMC
;
/* Enable CS3 */
csa
=
readl
(
&
matrix
->
csa
)
|
AT91_MATRIX_CSA_EBI_CS3A
;
...
...
@@ -93,7 +92,7 @@ static void cpu9260_nand_hw_init(void)
&
smc
->
cs
[
3
].
mode
);
#endif
writel
(
1
<<
AT
91SAM9260
_ID_PIOC
,
&
pmc
->
pcer
);
writel
(
1
<<
AT
MEL
_ID_PIOC
,
&
pmc
->
pcer
);
/* Configure RDY/BSY */
at91_set_pio_input
(
CONFIG_SYS_NAND_READY_PIN
,
1
);
...
...
@@ -107,11 +106,11 @@ static void cpu9260_nand_hw_init(void)
static
void
cpu9260_macb_hw_init
(
void
)
{
unsigned
long
rstcmr
;
at91_pmc_t
*
pmc
=
(
at91_pmc_t
*
)
AT
91_PMC_BASE
;
at91_rstc_t
*
rstc
=
(
at91_rstc_t
*
)
AT
91_RSTC_BASE
;
at91_pmc_t
*
pmc
=
(
at91_pmc_t
*
)
AT
MEL_BASE_PMC
;
at91_rstc_t
*
rstc
=
(
at91_rstc_t
*
)
AT
MEL_BASE_RSTC
;
/* Enable clock */
writel
(
1
<<
AT
91SAM9260_ID_EMAC
,
&
pmc
->
pcer
);
writel
(
1
<<
AT
MEL_ID_EMAC0
,
&
pmc
->
pcer
);
at91_set_pio_pullup
(
AT91_PIO_PORTA
,
17
,
1
);
...
...
@@ -136,14 +135,14 @@ static void cpu9260_macb_hw_init(void)
int
board_early_init_f
(
void
)
{
at91_pmc_t
*
pmc
=
(
at91_pmc_t
*
)
AT
91_PMC_BASE
;
at91_pmc_t
*
pmc
=
(
at91_pmc_t
*
)
AT
MEL_BASE_PMC
;
writel
((
1
<<
AT
91SAM9260
_ID_PIOA
)
|
(
1
<<
AT
91SAM9260_ID_PIOC
)
|
(
1
<<
AT
91SAM9260_ID_PIOB
),
writel
((
1
<<
AT
MEL
_ID_PIOA
)
|
(
1
<<
AT
MEL_ID_PIOB
)
|
(
1
<<
AT
MEL_ID_PIOC
),
&
pmc
->
pcer
);
at91_serial_hw_init
();
at91_serial
d
_hw_init
();
return
0
;
}
...
...
@@ -184,7 +183,7 @@ int board_eth_init(bd_t *bis)
{
int
rc
=
0
;
#ifdef CONFIG_MACB
rc
=
macb_eth_initialize
(
0
,
(
void
*
)
AT
91_EMAC_BASE
,
0
);
rc
=
macb_eth_initialize
(
0
,
(
void
*
)
AT
MEL_BASE_EMAC0
,
0
);
#endif
return
rc
;
}
board/eukrea/cpu9260/led.c
浏览文件 @
95d50e5c
...
...
@@ -28,17 +28,17 @@
#include <asm/arch/at91sam9260.h>
#include <asm/arch/at91_pmc.h>
#include <asm/arch/gpio.h>
#include <asm/
arch/
io.h>
#include <asm/io.h>
static
unsigned
int
saved_state
[
4
]
=
{
STATUS_LED_OFF
,
STATUS_LED_OFF
,
STATUS_LED_OFF
,
STATUS_LED_OFF
};
void
coloured_LED_init
(
void
)
{
at91_pmc_t
*
pmc
=
(
at91_pmc_t
*
)
AT
91_PMC_BASE
;
at91_pmc_t
*
pmc
=
(
at91_pmc_t
*
)
AT
MEL_BASE_PMC
;
/* Enable clock */
writel
(
1
<<
AT
91SAM9260
_ID_PIOC
,
&
pmc
->
pcer
);
writel
(
1
<<
AT
MEL
_ID_PIOC
,
&
pmc
->
pcer
);
at91_set_pio_output
(
CONFIG_RED_LED
,
1
);
at91_set_pio_output
(
CONFIG_GREEN_LED
,
1
);
...
...
include/configs/cpu9260.h
浏览文件 @
95d50e5c
...
...
@@ -37,8 +37,7 @@
#define CONFIG_SYS_AT91_MAIN_CLOCK 18432000
#define CONFIG_SYS_HZ 1000
#define CONFIG_ARM926EJS
#define CONFIG_SYS_AT91_SLOW_CLOCK 32768
#if defined(CONFIG_CPU9G20)
#define CONFIG_AT91SAM9G20
...
...
@@ -48,6 +47,8 @@
#error "Unknown board"
#endif
#include <asm/arch/hardware.h>
#define CONFIG_AT91FAMILY
#define CONFIG_ARCH_CPU_INIT
#undef CONFIG_USE_IRQ
...
...
@@ -251,10 +252,8 @@
#define CONFIG_AT91SAM9_WATCHDOG
#define CONFIG_AT91_GPIO
#define CONFIG_ATMEL_USART
#undef CONFIG_USART0
#undef CONFIG_USART1
#undef CONFIG_USART2
#define CONFIG_USART3
#define CONFIG_USART_BASE ATMEL_BASE_DBGU
#define CONFIG_USART_ID ATMEL_ID_SYS
#define CONFIG_BOOTDELAY 3
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录