Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : number_of_planes

Description

Number of planes in the device

Register Layout

Bits Access Reset Description
[2:0] RW 0x0 ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE
[31:3] ??? Unknown UNDEFINED

Field : value

Controller will read Electronic Signature of devices and populate

this field as the number of planes information is present in the signature.

For 512B device, this information needs to be programmed by software.

Software could also choose to override the populated value.

The values in the fields should be as follows[list]

[*]3'h0 - Monoplane device

[*]3'h1 - Two plane device

[*]3'h3 - 4 plane device

[*]3'h7 - 8 plane device

[*]All other values - Reserved[/list]

Field Access Macros:

#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_LSB   0
 
#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_MSB   2
 
#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_WIDTH   3
 
#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_SET_MSK   0x00000007
 
#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_CLR_MSK   0xfffffff8
 
#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_RESET   0x0
 
#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_GET(value)   (((value) & 0x00000007) >> 0)
 
#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_SET(value)   (((value) << 0) & 0x00000007)
 

Data Structures

struct  ALT_NAND_CFG_NUMBER_OF_PLANES_s
 

Macros

#define ALT_NAND_CFG_NUMBER_OF_PLANES_RESET   0x00000000
 
#define ALT_NAND_CFG_NUMBER_OF_PLANES_OFST   0x140
 

Typedefs

typedef struct
ALT_NAND_CFG_NUMBER_OF_PLANES_s 
ALT_NAND_CFG_NUMBER_OF_PLANES_t
 

Data Structure Documentation

struct ALT_NAND_CFG_NUMBER_OF_PLANES_s

WARNING: The C register and register group struct declarations are provided for convenience and illustrative purposes. They should, however, be used with caution as the C language standard provides no guarantees about the alignment or atomicity of device memory accesses. The recommended practice for writing hardware drivers is to use the SoCAL access macros and alt_read_word() and alt_write_word() functions.

The struct declaration for register ALT_NAND_CFG_NUMBER_OF_PLANES.

Data Fields
uint32_t value: 3 ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE
uint32_t __pad0__: 29 UNDEFINED

Macro Definitions

#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_LSB   0

The Least Significant Bit (LSB) position of the ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE register field.

#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_MSB   2

The Most Significant Bit (MSB) position of the ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE register field.

#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_WIDTH   3

The width in bits of the ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE register field.

#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_SET_MSK   0x00000007

The mask used to set the ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE register field value.

#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_CLR_MSK   0xfffffff8

The mask used to clear the ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE register field value.

#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_RESET   0x0

The reset value of the ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE register field.

#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_GET (   value)    (((value) & 0x00000007) >> 0)

Extracts the ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE field value from a register.

#define ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE_SET (   value)    (((value) << 0) & 0x00000007)

Produces a ALT_NAND_CFG_NUMBER_OF_PLANES_VALUE register field value suitable for setting the register.

#define ALT_NAND_CFG_NUMBER_OF_PLANES_RESET   0x00000000

The reset value of the ALT_NAND_CFG_NUMBER_OF_PLANES register.

#define ALT_NAND_CFG_NUMBER_OF_PLANES_OFST   0x140

The byte offset of the ALT_NAND_CFG_NUMBER_OF_PLANES register from the beginning of the component.

Typedef Documentation