Skip to content

Commit 4edb711

Browse files
shenkimithro
authored andcommitted
lm32: update generated directory
Generated from https://github.com/timvideos/HDMI2USB-litex-firmware cba56bb65db62a4ee25bb66f5858349f8b043b9b. Signed-off-by: Joel Stanley <[email protected]>
1 parent 67a419b commit 4edb711

File tree

3 files changed

+49
-4
lines changed

3 files changed

+49
-4
lines changed

lm32/generated/csr.h

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,39 @@ static inline unsigned char cas_leds_out_read(void) {
1313
static inline void cas_leds_out_write(unsigned char value) {
1414
MMPTR(0xe0006800) = value;
1515
}
16+
#define CSR_CAS_SWITCHES_IN_ADDR 0xe0006804
17+
#define CSR_CAS_SWITCHES_IN_SIZE 1
18+
static inline unsigned char cas_switches_in_read(void) {
19+
unsigned char r = MMPTR(0xe0006804);
20+
return r;
21+
}
22+
#define CSR_CAS_BUTTONS_EV_STATUS_ADDR 0xe0006808
23+
#define CSR_CAS_BUTTONS_EV_STATUS_SIZE 1
24+
static inline unsigned char cas_buttons_ev_status_read(void) {
25+
unsigned char r = MMPTR(0xe0006808);
26+
return r;
27+
}
28+
static inline void cas_buttons_ev_status_write(unsigned char value) {
29+
MMPTR(0xe0006808) = value;
30+
}
31+
#define CSR_CAS_BUTTONS_EV_PENDING_ADDR 0xe000680c
32+
#define CSR_CAS_BUTTONS_EV_PENDING_SIZE 1
33+
static inline unsigned char cas_buttons_ev_pending_read(void) {
34+
unsigned char r = MMPTR(0xe000680c);
35+
return r;
36+
}
37+
static inline void cas_buttons_ev_pending_write(unsigned char value) {
38+
MMPTR(0xe000680c) = value;
39+
}
40+
#define CSR_CAS_BUTTONS_EV_ENABLE_ADDR 0xe0006810
41+
#define CSR_CAS_BUTTONS_EV_ENABLE_SIZE 1
42+
static inline unsigned char cas_buttons_ev_enable_read(void) {
43+
unsigned char r = MMPTR(0xe0006810);
44+
return r;
45+
}
46+
static inline void cas_buttons_ev_enable_write(unsigned char value) {
47+
MMPTR(0xe0006810) = value;
48+
}
1649

1750
/* info */
1851
#define CSR_INFO_BASE 0xe0006000
@@ -457,6 +490,10 @@ static inline int spiflash_page_size_read(void) {
457490
static inline int spiflash_sector_size_read(void) {
458491
return 65536;
459492
}
493+
#define ROM_DISABLE 1
494+
static inline int rom_disable_read(void) {
495+
return 1;
496+
}
460497
#define L2_SIZE 8192
461498
static inline int l2_size_read(void) {
462499
return 8192;
@@ -465,6 +502,10 @@ static inline int l2_size_read(void) {
465502
static inline int config_clock_frequency_read(void) {
466503
return 83333333;
467504
}
505+
#define CONFIG_CPU_RESET_ADDR 537395200
506+
static inline int config_cpu_reset_addr_read(void) {
507+
return 537395200;
508+
}
468509
#define CONFIG_CPU_TYPE "LM32"
469510
static inline const char * config_cpu_type_read(void) {
470511
return "LM32";

lm32/generated/mem.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
#define SRAM_BASE 0x10000000
55
#define SRAM_SIZE 0x00004000
66

7-
#define ROM_BASE 0x00080000
8-
#define ROM_SIZE 0x00200000
7+
#define SPIFLASH_BASE 0x20000000
8+
#define SPIFLASH_SIZE 0x00200000
9+
10+
#define ROM_BASE 0x20080000
11+
#define ROM_SIZE 0x00008000
912

1013
#define MAIN_RAM_BASE 0x40000000
1114
#define MAIN_RAM_SIZE 0x04000000
1215

13-
#define FLASH_BOOT_ADDRESS 0x00088000
16+
#define FLASH_BOOT_ADDRESS 0x20088000
1417

1518
#endif

lm32/generated/regions.ld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
MEMORY {
22
sram : ORIGIN = 0x10000000, LENGTH = 0x00004000
3-
rom : ORIGIN = 0x00080000, LENGTH = 0x00200000
3+
spiflash : ORIGIN = 0x20000000, LENGTH = 0x00200000
4+
rom : ORIGIN = 0x20080000, LENGTH = 0x00008000
45
main_ram : ORIGIN = 0x40000000, LENGTH = 0x04000000
56
}

0 commit comments

Comments
 (0)