Fix missing timer registers in DMA header (#26)
This commit is contained in:
parent
9ff6b24cce
commit
7125bbb535
@ -4826,6 +4826,62 @@
|
|||||||
#define DMA_TIMER1_Y_LSB 0
|
#define DMA_TIMER1_Y_LSB 0
|
||||||
#define DMA_TIMER1_Y_ACCESS "RW"
|
#define DMA_TIMER1_Y_ACCESS "RW"
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
// Register : DMA_TIMER2
|
||||||
|
// Description : Pacing (X/Y) Fractional Timer
|
||||||
|
// The pacing timer produces TREQ assertions at a rate set by
|
||||||
|
// ((X/Y) * sys_clk). This equation is evaluated every sys_clk
|
||||||
|
// cycles and therefore can only generate TREQs at a rate of 1 per
|
||||||
|
// sys_clk (i.e. permanent TREQ) or less.
|
||||||
|
#define DMA_TIMER2_OFFSET 0x00000428
|
||||||
|
#define DMA_TIMER2_BITS 0xffffffff
|
||||||
|
#define DMA_TIMER2_RESET 0x00000000
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Field : DMA_TIMER2_X
|
||||||
|
// Description : Pacing Timer Dividend. Specifies the X value for the (X/Y)
|
||||||
|
// fractional timer.
|
||||||
|
#define DMA_TIMER2_X_RESET 0x0000
|
||||||
|
#define DMA_TIMER2_X_BITS 0xffff0000
|
||||||
|
#define DMA_TIMER2_X_MSB 31
|
||||||
|
#define DMA_TIMER2_X_LSB 16
|
||||||
|
#define DMA_TIMER2_X_ACCESS "RW"
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Field : DMA_TIMER2_Y
|
||||||
|
// Description : Pacing Timer Divisor. Specifies the Y value for the (X/Y)
|
||||||
|
// fractional timer.
|
||||||
|
#define DMA_TIMER2_Y_RESET 0x0000
|
||||||
|
#define DMA_TIMER2_Y_BITS 0x0000ffff
|
||||||
|
#define DMA_TIMER2_Y_MSB 15
|
||||||
|
#define DMA_TIMER2_Y_LSB 0
|
||||||
|
#define DMA_TIMER2_Y_ACCESS "RW"
|
||||||
|
// =============================================================================
|
||||||
|
// Register : DMA_TIMER3
|
||||||
|
// Description : Pacing (X/Y) Fractional Timer
|
||||||
|
// The pacing timer produces TREQ assertions at a rate set by
|
||||||
|
// ((X/Y) * sys_clk). This equation is evaluated every sys_clk
|
||||||
|
// cycles and therefore can only generate TREQs at a rate of 1 per
|
||||||
|
// sys_clk (i.e. permanent TREQ) or less.
|
||||||
|
#define DMA_TIMER3_OFFSET 0x0000042c
|
||||||
|
#define DMA_TIMER3_BITS 0xffffffff
|
||||||
|
#define DMA_TIMER3_RESET 0x00000000
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Field : DMA_TIMER3_X
|
||||||
|
// Description : Pacing Timer Dividend. Specifies the X value for the (X/Y)
|
||||||
|
// fractional timer.
|
||||||
|
#define DMA_TIMER3_X_RESET 0x0000
|
||||||
|
#define DMA_TIMER3_X_BITS 0xffff0000
|
||||||
|
#define DMA_TIMER3_X_MSB 31
|
||||||
|
#define DMA_TIMER3_X_LSB 16
|
||||||
|
#define DMA_TIMER3_X_ACCESS "RW"
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
// Field : DMA_TIMER3_Y
|
||||||
|
// Description : Pacing Timer Divisor. Specifies the Y value for the (X/Y)
|
||||||
|
// fractional timer.
|
||||||
|
#define DMA_TIMER3_Y_RESET 0x0000
|
||||||
|
#define DMA_TIMER3_Y_BITS 0x0000ffff
|
||||||
|
#define DMA_TIMER3_Y_MSB 15
|
||||||
|
#define DMA_TIMER3_Y_LSB 0
|
||||||
|
#define DMA_TIMER3_Y_ACCESS "RW"
|
||||||
|
// =============================================================================
|
||||||
// Register : DMA_MULTI_CHAN_TRIGGER
|
// Register : DMA_MULTI_CHAN_TRIGGER
|
||||||
// Description : Trigger one or more channels simultaneously
|
// Description : Trigger one or more channels simultaneously
|
||||||
// Each bit in this register corresponds to a DMA channel. Writing
|
// Each bit in this register corresponds to a DMA channel. Writing
|
||||||
|
@ -32851,6 +32851,48 @@
|
|||||||
<name>TIMER1</name>
|
<name>TIMER1</name>
|
||||||
<resetValue>0x00000000</resetValue>
|
<resetValue>0x00000000</resetValue>
|
||||||
</register>
|
</register>
|
||||||
|
<register>
|
||||||
|
<addressOffset>0x0428</addressOffset>
|
||||||
|
<description>Pacing (X/Y) Fractional Timer\n
|
||||||
|
The pacing timer produces TREQ assertions at a rate set by ((X/Y) * sys_clk). This equation is evaluated every sys_clk cycles and therefore can only generate TREQs at a rate of 1 per sys_clk (i.e. permanent TREQ) or less.</description>
|
||||||
|
<fields>
|
||||||
|
<field>
|
||||||
|
<access>read-write</access>
|
||||||
|
<bitRange>[31:16]</bitRange>
|
||||||
|
<description>Pacing Timer Dividend. Specifies the X value for the (X/Y) fractional timer.</description>
|
||||||
|
<name>X</name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<access>read-write</access>
|
||||||
|
<bitRange>[15:0]</bitRange>
|
||||||
|
<description>Pacing Timer Divisor. Specifies the Y value for the (X/Y) fractional timer.</description>
|
||||||
|
<name>Y</name>
|
||||||
|
</field>
|
||||||
|
</fields>
|
||||||
|
<name>TIMER2</name>
|
||||||
|
<resetValue>0x00000000</resetValue>
|
||||||
|
</register>
|
||||||
|
<register>
|
||||||
|
<addressOffset>0x042c</addressOffset>
|
||||||
|
<description>Pacing (X/Y) Fractional Timer\n
|
||||||
|
The pacing timer produces TREQ assertions at a rate set by ((X/Y) * sys_clk). This equation is evaluated every sys_clk cycles and therefore can only generate TREQs at a rate of 1 per sys_clk (i.e. permanent TREQ) or less.</description>
|
||||||
|
<fields>
|
||||||
|
<field>
|
||||||
|
<access>read-write</access>
|
||||||
|
<bitRange>[31:16]</bitRange>
|
||||||
|
<description>Pacing Timer Dividend. Specifies the X value for the (X/Y) fractional timer.</description>
|
||||||
|
<name>X</name>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<access>read-write</access>
|
||||||
|
<bitRange>[15:0]</bitRange>
|
||||||
|
<description>Pacing Timer Divisor. Specifies the Y value for the (X/Y) fractional timer.</description>
|
||||||
|
<name>Y</name>
|
||||||
|
</field>
|
||||||
|
</fields>
|
||||||
|
<name>TIMER3</name>
|
||||||
|
<resetValue>0x00000000</resetValue>
|
||||||
|
</register>
|
||||||
<register>
|
<register>
|
||||||
<addressOffset>0x0430</addressOffset>
|
<addressOffset>0x0430</addressOffset>
|
||||||
<description>Trigger one or more channels simultaneously</description>
|
<description>Trigger one or more channels simultaneously</description>
|
||||||
|
@ -48,12 +48,11 @@ typedef struct {
|
|||||||
io_rw_32 inte1;
|
io_rw_32 inte1;
|
||||||
io_rw_32 intf1;
|
io_rw_32 intf1;
|
||||||
io_rw_32 ints1;
|
io_rw_32 ints1;
|
||||||
io_rw_32 timer[2];
|
io_rw_32 timer[4];
|
||||||
uint32_t _pad2[2];
|
|
||||||
io_wo_32 multi_channel_trigger;
|
io_wo_32 multi_channel_trigger;
|
||||||
io_rw_32 sniff_ctrl;
|
io_rw_32 sniff_ctrl;
|
||||||
io_rw_32 sniff_data;
|
io_rw_32 sniff_data;
|
||||||
uint32_t _pad3[1];
|
uint32_t _pad2[1];
|
||||||
io_ro_32 fifo_levels;
|
io_ro_32 fifo_levels;
|
||||||
io_wo_32 abort;
|
io_wo_32 abort;
|
||||||
} dma_hw_t;
|
} dma_hw_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user