mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
videomixer: add more video modes
This commit is contained in:
parent
c8da400af0
commit
593867b92a
2 changed files with 31 additions and 1 deletions
|
@ -10,6 +10,36 @@
|
|||
#include "processor.h"
|
||||
|
||||
static const struct video_timing video_modes[PROCESSOR_MODE_COUNT] = {
|
||||
{
|
||||
.pixel_clock = 3150,
|
||||
|
||||
.h_active = 640,
|
||||
.h_blanking = 192,
|
||||
.h_sync_offset = 24,
|
||||
.h_sync_width = 40,
|
||||
|
||||
.v_active = 480,
|
||||
.v_blanking = 40,
|
||||
.v_sync_offset = 9,
|
||||
.v_sync_width = 3,
|
||||
|
||||
.established_timing = 0x0800
|
||||
},
|
||||
{
|
||||
.pixel_clock = 4000,
|
||||
|
||||
.h_active = 800,
|
||||
.h_blanking = 256,
|
||||
.h_sync_offset = 32,
|
||||
.h_sync_width = 128,
|
||||
|
||||
.v_active = 600,
|
||||
.v_blanking = 28,
|
||||
.v_sync_offset = 1,
|
||||
.v_sync_width = 6,
|
||||
|
||||
.established_timing = 0x0100
|
||||
},
|
||||
{
|
||||
.pixel_clock = 6500,
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef __PROCESSOR_H
|
||||
#define __PROCESSOR_H
|
||||
|
||||
#define PROCESSOR_MODE_COUNT 2
|
||||
#define PROCESSOR_MODE_COUNT 4
|
||||
#define PROCESSOR_MODE_DESCLEN 32
|
||||
|
||||
void processor_list_modes(char *mode_descriptors);
|
||||
|
|
Loading…
Reference in a new issue