Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
c175f306
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,发现更多精彩内容 >>
提交
c175f306
编写于
4月 10, 2015
作者:
T
Tom Rini
浏览文件
操作
浏览文件
下载
差异文件
Merge
git://git.denx.de/u-boot-arc
上级
a7b00a7b
a811492e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
46 addition
and
1 deletion
+46
-1
arch/arc/cpu/u-boot.lds
arch/arc/cpu/u-boot.lds
+1
-0
arch/arc/lib/Makefile
arch/arc/lib/Makefile
+2
-1
board/synopsys/axs101/axs101.c
board/synopsys/axs101/axs101.c
+14
-0
board/synopsys/axs101/axs10x.h
board/synopsys/axs101/axs10x.h
+16
-0
board/synopsys/axs101/nand.c
board/synopsys/axs101/nand.c
+7
-0
include/configs/axs101.h
include/configs/axs101.h
+6
-0
未找到文件。
arch/arc/cpu/u-boot.lds
浏览文件 @
c175f306
...
...
@@ -13,6 +13,7 @@ SECTIONS
.text : {
*(.__text_start)
*(.__image_copy_start)
arch/arc/lib/start.o (.text*)
*(.text*)
}
...
...
arch/arc/lib/Makefile
浏览文件 @
c175f306
...
...
@@ -4,6 +4,8 @@
# SPDX-License-Identifier: GPL-2.0+
#
extra-y
=
start.o
head-y
:=
start.o
obj-y
+=
cache.o
obj-y
+=
cpu.o
obj-y
+=
interrupts.o
...
...
@@ -18,7 +20,6 @@ obj-y += memcpy-700.o
obj-y
+=
memset.o
obj-y
+=
reset.o
obj-y
+=
timer.o
obj-y
+=
start.o
obj-y
+=
ints_low.o
obj-y
+=
init_helpers.o
...
...
board/synopsys/axs101/axs101.c
浏览文件 @
c175f306
...
...
@@ -9,6 +9,7 @@
#include <malloc.h>
#include <netdev.h>
#include <phy.h>
#include "axs10x.h"
DECLARE_GLOBAL_DATA_PTR
;
...
...
@@ -42,3 +43,16 @@ int board_eth_init(bd_t *bis)
return
0
;
}
#define AXS_MB_CREG 0xE0011000
int
board_early_init_f
(
void
)
{
if
(
readl
((
void
__iomem
*
)
AXS_MB_CREG
+
0x234
)
&
(
1
<<
28
))
gd
->
board_type
=
AXS_MB_V3
;
else
gd
->
board_type
=
AXS_MB_V2
;
return
0
;
}
board/synopsys/axs101/axs10x.h
0 → 100644
浏览文件 @
c175f306
/*
* Copyright (C) 2015 Synopsys, Inc. All rights reserved.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef _BOARD_SYNOPSYS_AXS10X_H
#define _BOARD_SYNOPSYS_AXS10X_H
enum
{
AXS_MB_V2
,
AXS_MB_V3
};
#endif
/* _BOARD_SYNOPSYS_AXS10X_H */
board/synopsys/axs101/nand.c
浏览文件 @
c175f306
...
...
@@ -9,6 +9,9 @@
#include <malloc.h>
#include <nand.h>
#include <asm/io.h>
#include "axs10x.h"
DECLARE_GLOBAL_DATA_PTR
;
#define BUS_WIDTH 8
/* AXI data bus width in bytes */
...
...
@@ -232,5 +235,9 @@ int board_nand_init(struct nand_chip *nand)
nand
->
write_buf
=
axs101_nand_write_buf
;
nand
->
read_buf
=
axs101_nand_read_buf
;
/* MBv3 has NAND IC with 16-bit data bus */
if
(
gd
->
board_type
==
AXS_MB_V3
)
nand
->
options
|=
NAND_BUSWIDTH_16
;
return
0
;
}
include/configs/axs101.h
浏览文件 @
c175f306
...
...
@@ -33,6 +33,12 @@
#define CONFIG_SYS_BOOTM_LEN 0x2000000
/* 32 MB */
#define CONFIG_SYS_LOAD_ADDR 0x82000000
/*
* This board might be of different versions so handle it
*/
#define CONFIG_BOARD_TYPES
#define CONFIG_BOARD_EARLY_INIT_F
/*
* NAND Flash configuration
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录