mirror of
https://github.com/gnuton/asuswrt-merlin.ng.git
synced 2025-05-19 07:51:46 +02:00
131 lines
No EOL
2.3 KiB
Text
131 lines
No EOL
2.3 KiB
Text
/*
|
|
* Broadcom reserved memory for 32 bit platforms
|
|
*/
|
|
|
|
#include <dt-bindings/soc/bcm963xx_dt_bindings.h>
|
|
|
|
/ {
|
|
reserved-memory {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges;
|
|
|
|
#if defined (CONFIG_BCM_CMA_RSVMEM)
|
|
dt_reserved_cma: dt_reserved_cma {
|
|
compatible = "shared-dma-pool";
|
|
reusable;
|
|
/* Bootloader will fill in the total size and offset */
|
|
reg = <0x0 0x0>;
|
|
};
|
|
#else
|
|
|
|
#if defined (CONFIG_BCM_ADSL)
|
|
dt_reserved_adsl {
|
|
reg = <DRAM_OFFSET_ADSL ADSL_SDRAM_IMAGE_SIZE>;
|
|
no-map;
|
|
};
|
|
#endif
|
|
|
|
#if defined (CONFIG_BCM_RDPA)
|
|
dt_reserved_rdp1 {
|
|
reg = <DRAM_OFFSET_RDP_PARAM1 RDP_PARAM1_DDR_SIZE>; /* 16MB */
|
|
no-map;
|
|
};
|
|
|
|
dt_reserved_rdp2 {
|
|
reg = <DRAM_OFFSET_RDP_PARAM2 RDP_PARAM2_DDR_SIZE>; /* 4MB */
|
|
no-map;
|
|
};
|
|
#endif
|
|
|
|
#if defined (CONFIG_BCM_DHD_RUNNER)
|
|
dt_reserved_dhd0 {
|
|
reg = <0x0 DHD_PARAM1_DDR_SIZE>;
|
|
no-map;
|
|
};
|
|
dt_reserved_dhd1 {
|
|
reg = <0x0 DHD_PARAM2_DDR_SIZE>;
|
|
no-map;
|
|
};
|
|
dt_reserved_dhd2 {
|
|
reg = <0x0 DHD_PARAM3_DDR_SIZE>;
|
|
no-map;
|
|
};
|
|
#endif
|
|
|
|
#if defined (CONFIG_OPTEE)
|
|
dt_reserved_optee {
|
|
#if defined(CONFIG_BCM96846)
|
|
reg = <0x0E000000 0x01000000>;
|
|
#else
|
|
reg = <0x10000000 0x01000000>;
|
|
#endif
|
|
no-map;
|
|
};
|
|
|
|
dt_reserved_tzioc {
|
|
#if defined(CONFIG_BCM96846)
|
|
reg = <0x0F000000 0x00800000>;
|
|
#else
|
|
reg = <0x11000000 0x00800000>;
|
|
#endif
|
|
};
|
|
#endif /* CONFIG_OPTEE */
|
|
|
|
#endif
|
|
};
|
|
|
|
#if defined (CONFIG_BCM_CMA_RSVMEM)
|
|
plat_rsvmem_cached_device {
|
|
compatible = "brcm,plat-rsvmem";
|
|
dma-coherent;
|
|
memory-region = <&dt_reserved_cma>;
|
|
|
|
#if defined (CONFIG_OPTEE)
|
|
dt_reserved_tzioc {
|
|
rsvd-size = <0x00800000>;
|
|
};
|
|
#endif
|
|
};
|
|
|
|
plat_rsvmem_uncached_device {
|
|
compatible = "brcm,plat-rsvmem";
|
|
memory-region = <&dt_reserved_cma>;
|
|
|
|
#if defined (CONFIG_BCM_ADSL)
|
|
dt_reserved_adsl {
|
|
rsvd-size = <ADSL_SDRAM_IMAGE_SIZE>;
|
|
};
|
|
#endif
|
|
|
|
#if defined (CONFIG_BCM_RDPA)
|
|
dt_reserved_rdp1 {
|
|
rsvd-size = <RDP_PARAM1_DDR_SIZE>;
|
|
};
|
|
|
|
dt_reserved_rdp2 {
|
|
rsvd-size = <RDP_PARAM2_DDR_SIZE>;
|
|
};
|
|
#endif
|
|
|
|
#if defined (CONFIG_BCM_DHD_RUNNER)
|
|
dt_reserved_dhd0 {
|
|
rsvd-size = <DHD_PARAM1_DDR_SIZE>;
|
|
};
|
|
dt_reserved_dhd1 {
|
|
rsvd-size = <DHD_PARAM2_DDR_SIZE>;
|
|
};
|
|
dt_reserved_dhd2 {
|
|
rsvd-size = <DHD_PARAM3_DDR_SIZE>;
|
|
};
|
|
#endif
|
|
|
|
#if defined (CONFIG_OPTEE)
|
|
dt_reserved_optee {
|
|
rsvd-size = <0x01000000>;
|
|
};
|
|
#endif /* CONFIG_OPTEE */
|
|
};
|
|
#endif
|
|
|
|
}; |