-
Notifications
You must be signed in to change notification settings - Fork 17
Proposed patch for issue #29 (related to RCM4110 Rev F hardware) #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1874,6 +1874,13 @@ ioi ld (STACKSEG), a | |
| #endif | ||
| //end serial flash fast RAM copy | ||
|
|
||
| #if _BOARD_TYPE_ == RCM4110 | ||
| ; RCM4110 with 55ns flash requires early output enable on MTCR when running | ||
| ; with 0 wait states, so configure that before setting MB0CR. | ||
| ld a, 0x0C | ||
| ioi ld (MTCR), a | ||
| #endif | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change enables "early /OE" on the RCM4110 before reaching code that configures |
||
| .fastRAMCopyDone:: | ||
| ; Following a fast RAM copy, the current device mapped to MB0 and the device | ||
| ; that is actually supposed to be mapped to MB0 contain the same code at this | ||
|
|
@@ -2613,14 +2620,15 @@ _more_inits0:: | |
| // Initialize the status pin, clocks, clock doubler, debug baud rate | ||
| _more_inits02:: | ||
| lcall _getDoublerSetting ; get doubler setting value into L (h always 0) | ||
| ld a, L ; zero value also disables /OEx early output | ||
| ld a, L | ||
| or a ; update the Zero flag | ||
| jr z, .notEarlyOutputEnable | ||
|
|
||
| ld a, 0x0C ; value to set both /OE0 and /OE1 early output | ||
| .notEarlyOutputEnable: | ||
| ioi ld (MTCR), a ; first, update /OE0, /OE1 early output enable | ||
| ld (MTCRShadow), a | ||
|
|
||
| .notEarlyOutputEnable: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change leaves |
||
| ld a, L ; recover the doubler setting value | ||
| ioi ld (GCDR), a ; next, update clock doubler setting | ||
| ld (GCDRShadow), a | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even with the spreader disabled, we should keep the "early /OE" setting on products that have enabled it.