Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74127
b: refs/heads/master
c: e40540b
h: refs/heads/master
i:
  74125: d398380
  74123: e879a83
  74119: d18fec9
  74111: d7e1dac
v: v3
  • Loading branch information
Sonic Zhang authored and Bryan Wu committed Nov 21, 2007
1 parent 75daea7 commit 5c727ab
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28a44d4bd6bdc7d013405bfc2aa7f126d39a7b2b
refs/heads/master: e40540b304d5d15c344585c4a7b3116e73add2db
14 changes: 14 additions & 0 deletions trunk/arch/blackfin/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,20 @@ config BANK_3
default 0x99B3
endmenu

config EBIU_MBSCTLVAL
hex "EBIU Bank Select Control Register"
depends on BF54x
default 0

config EBIU_MODEVAL
hex "Flash Memory Mode Control Register"
depends on BF54x
default 1

config EBIU_FCTLVAL
hex "Flash Memory Bank Control Register"
depends on BF54x
default 6
endmenu

#############################################################################
Expand Down
21 changes: 21 additions & 0 deletions trunk/arch/blackfin/mach-bf548/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,27 @@ ENTRY(__stext)
w[p2] = r0;
ssync;

p2.h = hi(EBIU_MBSCTL);
p2.l = lo(EBIU_MBSCTL);
r0.h = hi(CONFIG_EBIU_MBSCTLVAL);
r0.l = lo(CONFIG_EBIU_MBSCTLVAL);
[p2] = r0;
ssync;

p2.h = hi(EBIU_MODE);
p2.l = lo(EBIU_MODE);
r0.h = hi(CONFIG_EBIU_MODEVAL);
r0.l = lo(CONFIG_EBIU_MODEVAL);
[p2] = r0;
ssync;

p2.h = hi(EBIU_FCTL);
p2.l = lo(EBIU_FCTL);
r0.h = hi(CONFIG_EBIU_FCTLVAL);
r0.l = lo(CONFIG_EBIU_FCTLVAL);
[p2] = r0;
ssync;

/* This section keeps the processor in supervisor mode
* during kernel boot. Switches to user mode at end of boot.
* See page 3-9 of Hardware Reference manual for documentation.
Expand Down

0 comments on commit 5c727ab

Please sign in to comment.