dts: Convert CONFIG_CCM to DT_CCM
Since we know do DTS before Kconfig we should try and remove dts from creating Kconfig namespaced symbols and leave that to Kconfig. So rename CONFIG_CCM_<FOO> to DT_CCM_<FOO>. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
d402d03555
commit
bfaaa6bbe9
5 changed files with 10 additions and 10 deletions
|
@ -298,7 +298,7 @@ The full set of Zephyr-specific ``chosen`` nodes follows:
|
||||||
* - ``zephyr,sram``
|
* - ``zephyr,sram``
|
||||||
- ``CONFIG_SRAM``
|
- ``CONFIG_SRAM``
|
||||||
* - ``zephyr,ccm``
|
* - ``zephyr,ccm``
|
||||||
- ``CONFIG_CCM``
|
- ``DT_CCM``
|
||||||
* - ``zephyr,console``
|
* - ``zephyr,console``
|
||||||
- :option:`CONFIG_UART_CONSOLE_ON_DEV_NAME`
|
- :option:`CONFIG_UART_CONSOLE_ON_DEV_NAME`
|
||||||
* - ``zephyr,shell-uart``
|
* - ``zephyr,shell-uart``
|
||||||
|
|
|
@ -93,8 +93,8 @@ MEMORY
|
||||||
#ifdef CONFIG_TI_CCFG_PRESENT
|
#ifdef CONFIG_TI_CCFG_PRESENT
|
||||||
FLASH_CCFG (rwx): ORIGIN = CCFG_ADDR, LENGTH = CCFG_SIZE
|
FLASH_CCFG (rwx): ORIGIN = CCFG_ADDR, LENGTH = CCFG_SIZE
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_CCM_BASE_ADDRESS
|
#ifdef DT_CCM_BASE_ADDRESS
|
||||||
CCM (rw) : ORIGIN = CONFIG_CCM_BASE_ADDRESS, LENGTH = CONFIG_CCM_SIZE * 1K
|
CCM (rw) : ORIGIN = DT_CCM_BASE_ADDRESS, LENGTH = DT_CCM_SIZE * 1K
|
||||||
#endif
|
#endif
|
||||||
SRAM (wx) : ORIGIN = RAM_ADDR, LENGTH = RAM_SIZE
|
SRAM (wx) : ORIGIN = RAM_ADDR, LENGTH = RAM_SIZE
|
||||||
|
|
||||||
|
@ -455,7 +455,7 @@ SECTIONS
|
||||||
|
|
||||||
GROUP_END(RAMABLE_REGION)
|
GROUP_END(RAMABLE_REGION)
|
||||||
|
|
||||||
#ifdef CONFIG_CCM_BASE_ADDRESS
|
#ifdef DT_CCM_BASE_ADDRESS
|
||||||
|
|
||||||
GROUP_START(CCM)
|
GROUP_START(CCM)
|
||||||
|
|
||||||
|
@ -492,7 +492,7 @@ SECTIONS
|
||||||
|
|
||||||
GROUP_END(CCM)
|
GROUP_END(CCM)
|
||||||
|
|
||||||
#endif /* CONFIG_CCM_BASE_ADDRESS */
|
#endif /* DT_CCM_BASE_ADDRESS */
|
||||||
|
|
||||||
#ifdef CONFIG_CUSTOM_SECTIONS_LD
|
#ifdef CONFIG_CUSTOM_SECTIONS_LD
|
||||||
/* Located in project source directory */
|
/* Located in project source directory */
|
||||||
|
|
|
@ -202,7 +202,7 @@ extern char __gcov_bss_size[];
|
||||||
/* end address of image, used by newlib for the heap */
|
/* end address of image, used by newlib for the heap */
|
||||||
extern char _end[];
|
extern char _end[];
|
||||||
|
|
||||||
#ifdef CONFIG_CCM_BASE_ADDRESS
|
#ifdef DT_CCM_BASE_ADDRESS
|
||||||
extern char __ccm_data_rom_start[];
|
extern char __ccm_data_rom_start[];
|
||||||
extern char __ccm_start[];
|
extern char __ccm_start[];
|
||||||
extern char __ccm_data_start[];
|
extern char __ccm_data_start[];
|
||||||
|
@ -212,7 +212,7 @@ extern char __ccm_bss_end[];
|
||||||
extern char __ccm_noinit_start[];
|
extern char __ccm_noinit_start[];
|
||||||
extern char __ccm_noinit_end[];
|
extern char __ccm_noinit_end[];
|
||||||
extern char __ccm_end[];
|
extern char __ccm_end[];
|
||||||
#endif /* CONFIG_CCM_BASE_ADDRESS */
|
#endif /* DT_CCM_BASE_ADDRESS */
|
||||||
|
|
||||||
/* Used by the Security Attribution Unit to configure the
|
/* Used by the Security Attribution Unit to configure the
|
||||||
* Non-Secure Callable region.
|
* Non-Secure Callable region.
|
||||||
|
|
|
@ -144,7 +144,7 @@ void _bss_zero(void)
|
||||||
{
|
{
|
||||||
(void)memset(&__bss_start, 0,
|
(void)memset(&__bss_start, 0,
|
||||||
((u32_t) &__bss_end - (u32_t) &__bss_start));
|
((u32_t) &__bss_end - (u32_t) &__bss_start));
|
||||||
#ifdef CONFIG_CCM_BASE_ADDRESS
|
#ifdef DT_CCM_BASE_ADDRESS
|
||||||
(void)memset(&__ccm_bss_start, 0,
|
(void)memset(&__ccm_bss_start, 0,
|
||||||
((u32_t) &__ccm_bss_end - (u32_t) &__ccm_bss_start));
|
((u32_t) &__ccm_bss_end - (u32_t) &__ccm_bss_start));
|
||||||
#endif
|
#endif
|
||||||
|
@ -173,7 +173,7 @@ void _data_copy(void)
|
||||||
{
|
{
|
||||||
(void)memcpy(&__data_ram_start, &__data_rom_start,
|
(void)memcpy(&__data_ram_start, &__data_rom_start,
|
||||||
((u32_t) &__data_ram_end - (u32_t) &__data_ram_start));
|
((u32_t) &__data_ram_end - (u32_t) &__data_ram_start));
|
||||||
#ifdef CONFIG_CCM_BASE_ADDRESS
|
#ifdef DT_CCM_BASE_ADDRESS
|
||||||
(void)memcpy(&__ccm_data_start, &__ccm_data_rom_start,
|
(void)memcpy(&__ccm_data_start, &__ccm_data_rom_start,
|
||||||
((u32_t) &__ccm_data_end - (u32_t) &__ccm_data_start));
|
((u32_t) &__ccm_data_end - (u32_t) &__ccm_data_start));
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -22,7 +22,7 @@ old_alias_names = False
|
||||||
|
|
||||||
regs_config = {
|
regs_config = {
|
||||||
'zephyr,sram' : 'DT_SRAM',
|
'zephyr,sram' : 'DT_SRAM',
|
||||||
'zephyr,ccm' : 'CONFIG_CCM'
|
'zephyr,ccm' : 'DT_CCM'
|
||||||
}
|
}
|
||||||
|
|
||||||
name_config = {
|
name_config = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue