Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
48fbd3a4
Commit
48fbd3a4
authored
17 years ago
by
Michal Simek
Browse files
Options
Downloads
Patches
Plain Diff
new: add writing to msr register
parent
ffc50f9b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
board/xilinx/ml401/xparameters.h
+19
-15
19 additions, 15 deletions
board/xilinx/ml401/xparameters.h
common/cmd_mfsl.c
+10
-4
10 additions, 4 deletions
common/cmd_mfsl.c
include/asm-microblaze/asm.h
+9
-3
9 additions, 3 deletions
include/asm-microblaze/asm.h
with
38 additions
and
22 deletions
board/xilinx/ml401/xparameters.h
100644 → 100755
+
19
−
15
View file @
48fbd3a4
...
...
@@ -21,50 +21,54 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* CAUTION: This file is automatically generated by libgen.
* Version: Xilinx EDK
6.3 EDK_Gmm.1
2.
3
* Version: Xilinx EDK
8.2.02 EDK_Im_Sp
2.
4
*/
/* System Clock Frequency */
#define XILINX_CLOCK_FREQ 100000000
/* 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_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_IRQ 0
/* Uart pheriphery is
console_u
art */
/* Uart pheriphery is
RS232_U
art */
#define XILINX_UART_BASEADDR 0x40600000
#define XILINX_UART_BAUDRATE 115200
/* GPIO is opb_gpio_0*/
#define XILINX_GPIO_BASEADDR 0x90000000
/* IIC pheriphery is IIC_EEPROM */
#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_SIZE 0x00800000
/* Main Memory is
plb_ddr_0
*/
/* Main Memory is
DDR_SDRAM_64Mx32
*/
#define XILINX_RAM_START 0x28000000
#define XILINX_RAM_SIZE 0x04000000
/* Sysace Controller is
opb_sysace_0
*/
/* Sysace Controller is
SysACE_CompactFlash
*/
#define XILINX_SYSACE_BASEADDR 0x41800000
#define XILINX_SYSACE_HIGHADDR 0x4180
FFFF
#define XILINX_SYSACE_HIGHADDR 0x4180
ffff
#define XILINX_SYSACE_MEM_WIDTH 16
/* Ethernet controller is
opb_e
thernet_
0
*/
/* Ethernet controller is
E
thernet_
MAC
*/
#define XPAR_XEMAC_NUM_INSTANCES 1
#define XPAR_OPB_ETHERNET_0_DEVICE_ID 0
#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_ERR_COUNT_EXIST 1
#define XPAR_OPB_ETHERNET_0_MII_EXIST 1
This diff is collapsed.
Click to expand it.
common/cmd_mfsl.c
+
10
−
4
View file @
48fbd3a4
...
...
@@ -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
val
=
0
;
unsigned
int
val
=
0
;
val
=
(
unsigned
int
)
simple_strtoul
(
argv
[
1
],
NULL
,
16
);
if
(
argc
<
1
)
{
printf
(
"Usage:
\n
%s
\n
"
,
cmdtp
->
usage
);
return
1
;
}
RMSR
(
val
);
if
(
argc
>
1
)
{
MTS
(
val
);
MFS
(
val
);
}
else
{
MFS
(
val
);
}
printf
(
"rmsr: 0x%08lx
\n
"
,
val
);
return
0
;
}
...
...
@@ -259,7 +265,7 @@ U_BOOT_CMD (fwr, 4, 1, do_fwr,
"fwr - write data to FSL
\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
"
);
#endif
/* CONFIG_MICROBLAZE & CFG_CMD_MFSL */
#endif
/* CONFIG_MICROBLAZE & CFG_CMD_MFSL */
This diff is collapsed.
Click to expand it.
include/asm-microblaze/asm.h
+
9
−
3
View file @
48fbd3a4
...
...
@@ -31,7 +31,13 @@
__asm__ __volatile__ ("nput %0, rfsl" #fslnum ::"r" (val));
#define PUT(val, fslnum) \
__asm__ __volatile__ ("put %0, rfsl" #fslnum ::"r" (val));
/* CPU dependent */
#define RMSR(val) \
__asm__ __volatile__ ("mfs %0,rmsr":"=r" (val));
#define MFS(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));
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment