HPM SDK
HPMicro Software Development Kit
xpi_ram_config_option_t Struct Reference

XPI RAM configuration option The ROM SW can detect the FLASH configuration based on the following structure specified by the end-user. More...

#include <hpm_romapi_xpi_ram_def.h>

Data Fields

union {
   struct {
      uint32_t   words: 4
 
      uint32_t   instance: 4
 
      uint32_t   reserved: 4
 
      uint32_t   tag: 20
 
   } 
 
   uint32_t   U
 
header
 
union {
   struct {
      uint32_t   freq_opt: 4
 
      uint32_t   misc: 4
 
      uint32_t   ram_size: 8
 
      uint32_t   pin_group: 4
 
      uint32_t   read_dummy_cycles: 4
 
      uint32_t   write_dummy_cycles:4
 
      uint32_t   probe_type: 4
 
   } 
 
   uint32_t   U
 
option0
 
union {
   struct {
      uint32_t   drive_strength: 4
 
      uint32_t   max_cs_low_time: 4
 
      uint32_t   pin_group_sel: 4
 
      uint32_t   channel: 4
 
      uint32_t   skip_ahb_buf_cfg:4
 
      uint32_t   reserved: 12
 
   } 
 
   uint32_t   U
 
option1
 

Detailed Description

XPI RAM configuration option The ROM SW can detect the FLASH configuration based on the following structure specified by the end-user.

Field Documentation

◆ channel

uint32_t xpi_ram_config_option_t::channel

Channel

◆ drive_strength

uint32_t xpi_ram_config_option_t::drive_strength

Drive strength

◆ freq_opt

uint32_t xpi_ram_config_option_t::freq_opt

1 - 30MHz, others, SoC specific setting

◆ 

union { ... } xpi_ram_config_option_t::header

◆ instance

uint32_t xpi_ram_config_option_t::instance

0 - Instance 0, 1 - Instance 1

◆ max_cs_low_time

uint32_t xpi_ram_config_option_t::max_cs_low_time

Maximum CS low time, in terms of microseconds

◆ misc

uint32_t xpi_ram_config_option_t::misc

Not used for now

◆ 

union { ... } xpi_ram_config_option_t::option0

◆ 

union { ... } xpi_ram_config_option_t::option1

◆ pin_group

uint32_t xpi_ram_config_option_t::pin_group

Pin group, 0 - 1st group, 1 - 2nd group

◆ pin_group_sel

uint32_t xpi_ram_config_option_t::pin_group_sel

Pin group selection

◆ probe_type

uint32_t xpi_ram_config_option_t::probe_type

0 - HyperRAM 1 - APMemory X8 devices

◆ ram_size

uint32_t xpi_ram_config_option_t::ram_size

0 - Auto detected, others - User specified size in MB

◆ read_dummy_cycles

uint32_t xpi_ram_config_option_t::read_dummy_cycles

Dummy cycyles for read command, 0 - default, 1 - user specified value

◆ reserved

uint32_t xpi_ram_config_option_t::reserved

Reserved for future use

◆ skip_ahb_buf_cfg

uint32_t xpi_ram_config_option_t::skip_ahb_buf_cfg

Skip AHB buffer configuration

◆ tag

uint32_t xpi_ram_config_option_t::tag

Must be 0xfcf91

◆ U

uint32_t xpi_ram_config_option_t::U

◆ words

uint32_t xpi_ram_config_option_t::words

Option words, exclude the header itself

◆ write_dummy_cycles

uint32_t xpi_ram_config_option_t::write_dummy_cycles

Dummy cycyles for write command, 0 - default, 1 - user specified value


The documentation for this struct was generated from the following file: