Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soc: atmel: sam/sam0: Add platform specific initialization #61005

Merged

Commits on Aug 3, 2023

  1. soc: arm: atmel: Normalize Kconfig.series files

    This update Kconfig.series files to normalize copyright date order from
    lower to higher and reorder select entries.
    
    Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
    nandojve committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    5d97d7c View commit details
    Browse the repository at this point in the history
  2. boards: arm: atmel: Reorder board defconfig entries

    This reorder <board>_defconfig entries in soc/board, internal and driver
    definitions.
    
    Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
    nandojve committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    6310275 View commit details
    Browse the repository at this point in the history
  3. soc: arm: sam: Reorder copyright by year ascending

    Adjust copyright order by ascending year order.
    
    Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
    nandojve committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    c51f2b6 View commit details
    Browse the repository at this point in the history
  4. soc: atmel: Enable platform specific init

    This replace pre kernel initialization by the platform specific
    initialization call. The platform specific init will configure
    at very beginning the clocks, flash wait states and cache.
    
    Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
    nandojve committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    38c842a View commit details
    Browse the repository at this point in the history
  5. soc: atmel: sam: Fix cache management

    The current platform initialization do not take in consideration cache
    management for historic reasons. This fixes any miss configuration and
    allow users to enable/disable caches at board definition. The default
    value is cache disabled and the below examples are for SAMV71 which
    have both I/D Cache available:
    
    I Cache only:
    CONFIG_CACHE_MANAGEMENT=y
    CONFIG_DCACHE=n
    
    D Cache only:
    CONFIG_CACHE_MANAGEMENT=y
    CONFIG_ICACHE=n
    
    I/D Cache disabled:
    CONFIG_ICACHE=n
    CONFIG_DCACHE=n
    
    I/D Cache Enabled:
    CONFIG_CACHE_MANAGEMENT=y
    
    Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
    nandojve committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    f85a8b8 View commit details
    Browse the repository at this point in the history
  6. soc: atmel: same5x: Disable cache

    The sam0 CMCC configure Cortex-M cache controller. However, it is not
    clear how the cache management should be performed. It is nor clear if
    instructions like SCB_EnableICache can be used. In this case, if cache
    management should be made only by CMCC it may require a dedicated
    implementation.
    
    Besides above, the CPU_CORTEX_M4 do not define cache by default which
    can signal a bad configuration in tree since the SOC_SERIES_SAME54 do
    not define which caches should be available.
    
    This force cache controller disable to avoid issues.
    
    Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
    nandojve committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    b553db3 View commit details
    Browse the repository at this point in the history