SDRAM controller (SDRAMC) driver for SAM.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
union | sdramc_memory_dev::sdramc_cr |
struct | sdramc_memory_dev::sdramc_cr::sdramc_cr_bm |
struct | sdramc_memory_dev |
Typedefs | |
typedef struct sdramc_memory_dev | sdramc_memory_dev_t |
Functions | |
static void | sdram_disable_scrambling (void) |
Off-chip Memory Scrambling is disabled. More... | |
static void | sdram_disable_unaligned_support (void) |
Unaligned access is not supported. More... | |
static void | sdram_enable_scrambling (uint32_t ul_key1, uint32_t ul_key2) |
Off-chip Memory Scrambling is enabled. More... | |
static void | sdram_enable_unaligned_support (void) |
Unaligned access is supported. More... | |
static void | sdram_enter_deep_power_down (void) |
Enter SDRAM deep power down mode. More... | |
static void | sdram_enter_power_down (void) |
Set the SDRAM in power down mode. More... | |
static void | sdram_enter_self_refresh (void) |
Set the SDRAM in self-refresh mode. More... | |
static void | sdram_exit_power_down (void) |
Exit from the SDRAM power down mode, and inhibit power down mode. More... | |
static void | sdram_exit_self_refresh (void) |
Exit from the SDRAM self-refresh mode, and inhibit self-refresh mode. More... | |
void | sdramc_deinit (void) |
De-initialize the SDRAM controller. More... | |
void | sdramc_init (sdramc_memory_dev_t *p_sdram, uint32_t ul_clk) |
Initialize the SDRAM controller. More... | |
typedef struct sdramc_memory_dev sdramc_memory_dev_t |
|
inlinestatic |
Off-chip Memory Scrambling is disabled.
|
inlinestatic |
Unaligned access is not supported.
|
inlinestatic |
Off-chip Memory Scrambling is enabled.
ul_key1 | Key Part 1. |
ul_key2 | Key Part 2. |
|
inlinestatic |
Unaligned access is supported.
Referenced by main().
|
inlinestatic |
Enter SDRAM deep power down mode.
References SLEEPMGR_ACTIVE, and sleepmgr_unlock_mode().
|
inlinestatic |
Set the SDRAM in power down mode.
References SLEEPMGR_ACTIVE, and sleepmgr_unlock_mode().
|
inlinestatic |
Set the SDRAM in self-refresh mode.
References SLEEPMGR_ACTIVE, and sleepmgr_unlock_mode().
|
inlinestatic |
Exit from the SDRAM power down mode, and inhibit power down mode.
References SLEEPMGR_ACTIVE, and sleepmgr_lock_mode().
|
inlinestatic |
Exit from the SDRAM self-refresh mode, and inhibit self-refresh mode.
References SLEEPMGR_ACTIVE, and sleepmgr_lock_mode().