Commit 315a8e34 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu

Blackfin arch: setup aliases for some core Core A MMRs

setup aliases for some core Core A MMRs to ease porting in cases
where common code would actually want Core A (or Core B MMR is reserved)
Signed-off-by: default avatarMike Frysinger <michael.frysinger@analog.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
parent f695baf2
...@@ -440,15 +440,15 @@ ENTRY(_bfin_reset) ...@@ -440,15 +440,15 @@ ENTRY(_bfin_reset)
SSYNC; SSYNC;
/* make sure SYSCR is set to use BMODE */ /* make sure SYSCR is set to use BMODE */
P0.h = hi(SICA_SYSCR); P0.h = hi(SYSCR);
P0.l = lo(SICA_SYSCR); P0.l = lo(SYSCR);
R0.l = 0x20; R0.l = 0x20; /* on BF561, disable core b */
W[P0] = R0.l; W[P0] = R0.l;
SSYNC; SSYNC;
/* issue a system soft reset */ /* issue a system soft reset */
P1.h = hi(SICA_SWRST); P1.h = hi(SWRST);
P1.l = lo(SICA_SWRST); P1.l = lo(SWRST);
R1.l = 0x0007; R1.l = 0x0007;
W[P1] = R1; W[P1] = R1;
SSYNC; SSYNC;
......
...@@ -81,6 +81,12 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val) ...@@ -81,6 +81,12 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val)
#define bfin_write_PLL_LOCKCNT(val) bfin_write16(PLL_LOCKCNT,val) #define bfin_write_PLL_LOCKCNT(val) bfin_write16(PLL_LOCKCNT,val)
#define bfin_read_CHIPID() bfin_read32(CHIPID) #define bfin_read_CHIPID() bfin_read32(CHIPID)
/* For MMR's that are reserved on Core B, set up defines to better integrate with other ports */
#define bfin_read_SWRST() bfin_read_SICA_SWRST()
#define bfin_write_SWRST() bfin_write_SICA_SWRST()
#define bfin_read_SYSCR() bfin_read_SICA_SYSCR()
#define bfin_write_SYSCR() bfin_write_SICA_SYSCR()
/* System Reset and Interrupt Controller registers for core A (0xFFC0 0100-0xFFC0 01FF) */ /* System Reset and Interrupt Controller registers for core A (0xFFC0 0100-0xFFC0 01FF) */
#define bfin_read_SICA_SWRST() bfin_read16(SICA_SWRST) #define bfin_read_SICA_SWRST() bfin_read16(SICA_SWRST)
#define bfin_write_SICA_SWRST(val) bfin_write16(SICA_SWRST,val) #define bfin_write_SICA_SWRST(val) bfin_write16(SICA_SWRST,val)
......
...@@ -52,6 +52,10 @@ ...@@ -52,6 +52,10 @@
#define PLL_LOCKCNT 0xFFC00010 /* PLL Lock Count register (16-bit) */ #define PLL_LOCKCNT 0xFFC00010 /* PLL Lock Count register (16-bit) */
#define CHIPID 0xFFC00014 /* Chip ID Register */ #define CHIPID 0xFFC00014 /* Chip ID Register */
/* For MMR's that are reserved on Core B, set up defines to better integrate with other ports */
#define SWRST SICA_SWRST
#define SYSCR SICA_SYSCR
/* System Reset and Interrupt Controller registers for core A (0xFFC0 0100-0xFFC0 01FF) */ /* System Reset and Interrupt Controller registers for core A (0xFFC0 0100-0xFFC0 01FF) */
#define SICA_SWRST 0xFFC00100 /* Software Reset register */ #define SICA_SWRST 0xFFC00100 /* Software Reset register */
#define SICA_SYSCR 0xFFC00104 /* System Reset Configuration register */ #define SICA_SYSCR 0xFFC00104 /* System Reset Configuration register */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment