|
6 | 6 | */ |
7 | 7 |
|
8 | 8 | #include <mem.h> |
9 | | - |
10 | | -#define BOOTSTRAP_SIZE DT_SIZE_K(16) |
11 | | -#define SRAM0_SIZE (DT_SIZE_K(256) - BOOTSTRAP_SIZE) |
| 9 | +#include <zephyr/dt-bindings/misc/ifx_cyw20829.h> |
12 | 10 |
|
13 | 11 | / { |
14 | 12 | cpus { |
|
42 | 40 | #size-cells = <1>; |
43 | 41 |
|
44 | 42 | compatible = "mmio-sram"; |
45 | | - reg = <0x20000000 SRAM0_SIZE>; |
| 43 | + reg = <SRAM0_SAHB_BASE SRAM0_SIZE>; |
46 | 44 |
|
47 | 45 | /* SRAM aliased address path */ |
48 | 46 | sram_sahb: sram_sahb@20000000 { |
49 | | - reg = <0x20000000 SRAM0_SIZE>; /* SAHB address */ |
| 47 | + reg = <SRAM0_SAHB_BASE SRAM0_SIZE>; /* SAHB address */ |
50 | 48 | }; |
51 | 49 |
|
52 | 50 | sram_cbus: sram_cbus@4000000 { |
53 | | - reg = <0x04000000 SRAM0_SIZE>; /* CBUS address */ |
| 51 | + reg = <SRAM0_CBUS_BASE SRAM0_SIZE>; /* CBUS address */ |
54 | 52 | }; |
55 | 53 | }; |
56 | 54 |
|
57 | 55 | /* sram_bootstrap address calculation: |
58 | 56 | * sram_sahb + sram_size (256k) - bootstrap size |
59 | | - * (e.g. 0x20000000 + 0x40000 - 12K (0x3000) = 0x2003D000) |
| 57 | + * (e.g. 0x20000000 + 0x40000 - 16K (0x4000) = 0x2003C000) |
60 | 58 | */ |
61 | | - sram_bootstrap: memory@2003D000 { |
| 59 | + sram_bootstrap: memory@2003c000 { |
62 | 60 | #address-cells = <1>; |
63 | 61 | #size-cells = <1>; |
64 | 62 | compatible = "zephyr,memory-region", "mmio-sram"; |
65 | 63 | zephyr,memory-region = "BOOTSTRAP_RAM"; |
66 | | - reg = <0x2003D000 BOOTSTRAP_SIZE>; |
| 64 | + reg = <BOOTSTRAP_SAHB_BASE BOOTSTRAP_SIZE>; |
67 | 65 |
|
68 | 66 | /* SRAM aliased address path */ |
69 | | - sram_bootstrap_sahb: sram_bootstrap_sahb@2003D000 { |
70 | | - reg = <0x2003D000 BOOTSTRAP_SIZE>; /* SAHB address */ |
| 67 | + sram_bootstrap_sahb: sram_bootstrap_sahb@2003c000 { |
| 68 | + reg = <BOOTSTRAP_SAHB_BASE BOOTSTRAP_SIZE>; /* SAHB address */ |
71 | 69 | }; |
72 | 70 |
|
73 | | - sram_bootstrap_cbus: sram_bootstrap_cbus@403D000 { |
74 | | - reg = <0x0403D000 BOOTSTRAP_SIZE>; /* CBUS address */ |
| 71 | + sram_bootstrap_cbus: sram_bootstrap_cbus@403c000 { |
| 72 | + reg = <BOOTSTRAP_CBUS_BASE BOOTSTRAP_SIZE>; /* CBUS address */ |
75 | 73 | }; |
76 | 74 | }; |
77 | 75 |
|
|
0 commit comments