Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
4bbc08f2
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,发现更多精彩内容 >>
提交
4bbc08f2
编写于
10月 01, 2015
作者:
T
Tom Rini
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.denx.de/u-boot-atmel
上级
2959f936
aca5d083
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
26 addition
and
11 deletion
+26
-11
board/siemens/smartweb/smartweb.c
board/siemens/smartweb/smartweb.c
+14
-11
include/configs/at91-sama5_common.h
include/configs/at91-sama5_common.h
+8
-0
include/configs/smartweb.h
include/configs/smartweb.h
+4
-0
未找到文件。
board/siemens/smartweb/smartweb.c
浏览文件 @
4bbc08f2
...
...
@@ -90,7 +90,8 @@ static void smartweb_macb_hw_init(void)
pin_to_mask
(
AT91_PIN_PA17
)
|
pin_to_mask
(
AT91_PIN_PA25
)
|
pin_to_mask
(
AT91_PIN_PA26
)
|
pin_to_mask
(
AT91_PIN_PA28
),
pin_to_mask
(
AT91_PIN_PA28
)
|
pin_to_mask
(
AT91_PIN_PA29
),
&
pioa
->
pudr
);
at91_phy_reset
();
...
...
@@ -101,7 +102,8 @@ static void smartweb_macb_hw_init(void)
pin_to_mask
(
AT91_PIN_PA17
)
|
pin_to_mask
(
AT91_PIN_PA25
)
|
pin_to_mask
(
AT91_PIN_PA26
)
|
pin_to_mask
(
AT91_PIN_PA28
),
pin_to_mask
(
AT91_PIN_PA28
)
|
pin_to_mask
(
AT91_PIN_PA29
),
&
pioa
->
puer
);
/* Initialize EMAC=MACB hardware */
...
...
@@ -141,13 +143,6 @@ int board_early_init_f(void)
int
board_init
(
void
)
{
/* Adress of boot parameters */
gd
->
bd
->
bi_boot_params
=
CONFIG_SYS_SDRAM_BASE
+
0x100
;
smartweb_nand_hw_init
();
#ifdef CONFIG_MACB
smartweb_macb_hw_init
();
#endif
/* power LED red */
at91_set_gpio_output
(
AT91_PIN_PC6
,
0
);
at91_set_gpio_output
(
AT91_PIN_PC7
,
1
);
...
...
@@ -163,6 +158,13 @@ int board_init(void)
at91_udc_probe
(
&
board_udc_data
);
#endif
/* Adress of boot parameters */
gd
->
bd
->
bi_boot_params
=
CONFIG_SYS_SDRAM_BASE
+
0x100
;
smartweb_nand_hw_init
();
#ifdef CONFIG_MACB
smartweb_macb_hw_init
();
#endif
return
0
;
}
...
...
@@ -197,6 +199,7 @@ void matrix_init(void)
void
spl_board_init
(
void
)
{
/* power LED orange */
at91_set_gpio_output
(
AT91_PIN_PC6
,
1
);
at91_set_gpio_output
(
AT91_PIN_PC7
,
1
);
/* alarm LED orange */
...
...
@@ -213,7 +216,7 @@ void spl_board_init(void)
/* check if both button are pressed */
if
(
at91_get_gpio_value
(
AT91_PIN_PA28
)
==
0
&&
at91_get_gpio_value
(
AT91_PIN_PA29
)
==
0
)
{
debug
(
"Recovery button pressed
\n
"
);
smartweb_nand_hw_init
(
);
nand_init
();
spl_nand_erase_one
(
0
,
0
);
}
...
...
include/configs/at91-sama5_common.h
浏览文件 @
4bbc08f2
...
...
@@ -53,6 +53,13 @@
#define CONFIG_CMD_DHCP
#ifdef CONFIG_SYS_USE_MMC
#ifdef CONFIG_ENV_IS_IN_MMC
/* Use raw reserved sectors to save environment */
#define CONFIG_ENV_OFFSET 0x2000
#define CONFIG_ENV_SIZE 0x1000
#define CONFIG_SYS_MMC_ENV_DEV 0
#else
/* u-boot env in sd/mmc card */
#define CONFIG_ENV_IS_IN_FAT
#define CONFIG_FAT_WRITE
...
...
@@ -60,6 +67,7 @@
#define FAT_ENV_DEVICE_AND_PART "0"
#define FAT_ENV_FILE "uboot.env"
#define CONFIG_ENV_SIZE 0x4000
#endif
#define CONFIG_BOOTCOMMAND "if test ! -n ${dtb_name}; then " \
"setenv dtb_name at91-${board_name}.dtb; " \
...
...
include/configs/smartweb.h
浏览文件 @
4bbc08f2
...
...
@@ -117,6 +117,9 @@
*
*/
#define CONFIG_MACB
#define CONFIG_USB_HOST_ETHER
#define CONFIG_USB_ETHER_ASIX
#define CONFIG_USB_ETHER_MCS7830
#define CONFIG_RMII
/* use reduced MII inteface */
#define CONFIG_NET_RETRY_COUNT 20
/* # of DHCP/BOOTP retries */
#define CONFIG_AT91_WANTS_COMMON_PHY
...
...
@@ -182,6 +185,7 @@
/* General Boot Parameter */
#define CONFIG_BOOTDELAY 3
#define CONFIG_BOOTCOMMAND "run flashboot"
#define CONFIG_BOOT_RETRY_TIME 30
#define CONFIG_SYS_CBSIZE 512
#define CONFIG_SYS_MAXARGS 16
#define CONFIG_SYS_PBSIZE \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录