mirror of
https://github.com/im-tomu/foboot.git
synced 2024-09-19 18:30:17 +00:00
Revert "bitstream: use 32-bit csrs"
While 32-bit CSRs increase performance by 4x, they cause older software
to break.
Consider making this breaking change in 3.0.
This reverts commit bb0b1ff761
.
This commit is contained in:
parent
882ce04da8
commit
1f4401fc51
@ -235,7 +235,7 @@ class BaseSoC(SoCCore, AutoDoc):
|
||||
clk_freq = int(12e6)
|
||||
self.submodules.crg = _CRG(platform)
|
||||
|
||||
SoCCore.__init__(self, platform, clk_freq, integrated_sram_size=0, with_uart=False, csr_data_width=32, **kwargs)
|
||||
SoCCore.__init__(self, platform, clk_freq, integrated_sram_size=0, with_uart=False, **kwargs)
|
||||
|
||||
usb_debug = False
|
||||
if debug is not None:
|
||||
|
@ -62,7 +62,7 @@ __attribute__((noreturn)) void reboot(void);
|
||||
|
||||
// Forward-define this function, because it's defined inside `csr.h`,
|
||||
// which includes this file near the top.
|
||||
static inline void reboot_ctrl_write(uint32_t v);
|
||||
static inline void reboot_ctrl_write(uint8_t v);
|
||||
|
||||
__attribute__((noreturn)) static inline void warmboot_to_image(uint8_t image_index) {
|
||||
reboot_ctrl_write(0xac | (image_index & 3) << 0);
|
||||
|
Loading…
Reference in New Issue
Block a user