Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
48fbd3a4
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,发现更多精彩内容 >>
提交
48fbd3a4
编写于
5月 07, 2007
作者:
M
Michal Simek
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
new: add writing to msr register
上级
ffc50f9b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
38 addition
and
22 deletion
+38
-22
board/xilinx/ml401/xparameters.h
board/xilinx/ml401/xparameters.h
+19
-15
common/cmd_mfsl.c
common/cmd_mfsl.c
+10
-4
include/asm-microblaze/asm.h
include/asm-microblaze/asm.h
+9
-3
未找到文件。
board/xilinx/ml401/xparameters.h
100644 → 100755
浏览文件 @
48fbd3a4
...
@@ -21,50 +21,54 @@
...
@@ -21,50 +21,54 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
* MA 02111-1307 USA
*
*
*
* CAUTION: This file is automatically generated by libgen.
* CAUTION: This file is automatically generated by libgen.
* Version: Xilinx EDK
6.3 EDK_Gmm.12.3
* Version: Xilinx EDK
8.2.02 EDK_Im_Sp2.4
*/
*/
/* System Clock Frequency */
/* System Clock Frequency */
#define XILINX_CLOCK_FREQ 100000000
#define XILINX_CLOCK_FREQ 100000000
/* Microblaze is microblaze_0 */
/* Microblaze is microblaze_0 */
#define XILINX_FSL_NUMBER
2
#define XILINX_FSL_NUMBER
3
/* Interrupt controller is intc_0 */
/* Interrupt controller is
opb_
intc_0 */
#define XILINX_INTC_BASEADDR 0x41200000
#define XILINX_INTC_BASEADDR 0x41200000
#define XILINX_INTC_NUM_INTR_INPUTS
4
#define XILINX_INTC_NUM_INTR_INPUTS
5
/* Timer pheriphery is opb_timer_
0
*/
/* Timer pheriphery is opb_timer_
1
*/
#define XILINX_TIMER_BASEADDR 0x41c00000
#define XILINX_TIMER_BASEADDR 0x41c00000
#define XILINX_TIMER_IRQ 0
#define XILINX_TIMER_IRQ 0
/* Uart pheriphery is
console_u
art */
/* Uart pheriphery is
RS232_U
art */
#define XILINX_UART_BASEADDR 0x40600000
#define XILINX_UART_BASEADDR 0x40600000
#define XILINX_UART_BAUDRATE 115200
#define XILINX_UART_BAUDRATE 115200
/* GPIO is opb_gpio_0*/
/* IIC pheriphery is IIC_EEPROM */
#define XILINX_GPIO_BASEADDR 0x90000000
#define XILINX_IIC_0_BASEADDR 0x40800000
#define XILINX_IIC_0_FREQ 100000
#define XILINX_IIC_0_BIT 0
/* GPIO is LEDs_4Bit*/
#define XILINX_GPIO_BASEADDR 0x40000000
/* Flash Memory is
opb_emc_0
*/
/* Flash Memory is
FLASH_2Mx32
*/
#define XILINX_FLASH_START 0x2c000000
#define XILINX_FLASH_START 0x2c000000
#define XILINX_FLASH_SIZE 0x00800000
#define XILINX_FLASH_SIZE 0x00800000
/* Main Memory is
plb_ddr_0
*/
/* Main Memory is
DDR_SDRAM_64Mx32
*/
#define XILINX_RAM_START 0x28000000
#define XILINX_RAM_START 0x28000000
#define XILINX_RAM_SIZE 0x04000000
#define XILINX_RAM_SIZE 0x04000000
/* Sysace Controller is
opb_sysace_0
*/
/* Sysace Controller is
SysACE_CompactFlash
*/
#define XILINX_SYSACE_BASEADDR 0x41800000
#define XILINX_SYSACE_BASEADDR 0x41800000
#define XILINX_SYSACE_HIGHADDR 0x4180
FFFF
#define XILINX_SYSACE_HIGHADDR 0x4180
ffff
#define XILINX_SYSACE_MEM_WIDTH 16
#define XILINX_SYSACE_MEM_WIDTH 16
/* Ethernet controller is
opb_ethernet_0
*/
/* Ethernet controller is
Ethernet_MAC
*/
#define XPAR_XEMAC_NUM_INSTANCES 1
#define XPAR_XEMAC_NUM_INSTANCES 1
#define XPAR_OPB_ETHERNET_0_DEVICE_ID 0
#define XPAR_OPB_ETHERNET_0_DEVICE_ID 0
#define XPAR_OPB_ETHERNET_0_BASEADDR 0x40c00000
#define XPAR_OPB_ETHERNET_0_BASEADDR 0x40c00000
#define XPAR_OPB_ETHERNET_0_HIGHADDR 0x40c0f
FFF
#define XPAR_OPB_ETHERNET_0_HIGHADDR 0x40c0f
fff
#define XPAR_OPB_ETHERNET_0_DMA_PRESENT 1
#define XPAR_OPB_ETHERNET_0_DMA_PRESENT 1
#define XPAR_OPB_ETHERNET_0_ERR_COUNT_EXIST 1
#define XPAR_OPB_ETHERNET_0_ERR_COUNT_EXIST 1
#define XPAR_OPB_ETHERNET_0_MII_EXIST 1
#define XPAR_OPB_ETHERNET_0_MII_EXIST 1
common/cmd_mfsl.c
浏览文件 @
48fbd3a4
...
@@ -238,13 +238,19 @@ int do_fwr (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
...
@@ -238,13 +238,19 @@ int do_fwr (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
int
do_rmsr
(
cmd_tbl_t
*
cmdtp
,
int
flag
,
int
argc
,
char
*
argv
[])
int
do_rmsr
(
cmd_tbl_t
*
cmdtp
,
int
flag
,
int
argc
,
char
*
argv
[])
{
{
int
val
=
0
;
unsigned
int
val
=
0
;
val
=
(
unsigned
int
)
simple_strtoul
(
argv
[
1
],
NULL
,
16
);
if
(
argc
<
1
)
{
if
(
argc
<
1
)
{
printf
(
"Usage:
\n
%s
\n
"
,
cmdtp
->
usage
);
printf
(
"Usage:
\n
%s
\n
"
,
cmdtp
->
usage
);
return
1
;
return
1
;
}
}
RMSR
(
val
);
if
(
argc
>
1
)
{
MTS
(
val
);
MFS
(
val
);
}
else
{
MFS
(
val
);
}
printf
(
"rmsr: 0x%08lx
\n
"
,
val
);
printf
(
"rmsr: 0x%08lx
\n
"
,
val
);
return
0
;
return
0
;
}
}
...
@@ -259,7 +265,7 @@ U_BOOT_CMD (fwr, 4, 1, do_fwr,
...
@@ -259,7 +265,7 @@ U_BOOT_CMD (fwr, 4, 1, do_fwr,
"fwr - write data to FSL
\n
"
,
"fwr - write data to FSL
\n
"
,
"- [fslnum data [0|x]], (0 - non blocking|x - blocking).
\n
"
);
"- [fslnum data [0|x]], (0 - non blocking|x - blocking).
\n
"
);
U_BOOT_CMD
(
rmsr
,
1
,
1
,
do_rmsr
,
U_BOOT_CMD
(
rmsr
,
3
,
1
,
do_rmsr
,
"rmsr - read MSR register
\n
"
,
"- read MSR register.
\n
"
);
"rmsr - read MSR register
\n
"
,
"- read MSR register.
\n
"
);
#endif
/* CONFIG_MICROBLAZE & CFG_CMD_MFSL */
#endif
/* CONFIG_MICROBLAZE & CFG_CMD_MFSL */
include/asm-microblaze/asm.h
浏览文件 @
48fbd3a4
...
@@ -31,7 +31,13 @@
...
@@ -31,7 +31,13 @@
__asm__ __volatile__ ("nput %0, rfsl" #fslnum ::"r" (val));
__asm__ __volatile__ ("nput %0, rfsl" #fslnum ::"r" (val));
#define PUT(val, fslnum) \
#define PUT(val, fslnum) \
__asm__ __volatile__ ("put %0, rfsl" #fslnum ::"r" (val));
__asm__ __volatile__ ("put %0, rfsl" #fslnum ::"r" (val));
/* CPU dependent */
/* CPU dependent */
#define RMSR(val) \
#define MFS(val) \
__asm__ __volatile__ ("mfs %0,rmsr":"=r" (val));
__asm__ __volatile__ ("mfs %0, rmsr":"=r" (val));
#define MTS(val) \
__asm__ __volatile__ ("mts rmsr, %0"::"r" (val));
#define R14(val) \
__asm__ __volatile__ ("addi %0, r14, 0":"=r" (val));
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录