diff options
author | Calvin Fong <hoiwai930@gmail.com> | 2008-08-04 02:04:15 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2008-08-04 02:04:15 -0400 |
commit | cb0deba5412a575d36f2f99377120b123506c946 (patch) | |
tree | 03ce60621f607c88bafe98894cc9252c779091b9 /src/radeon_tv.h | |
parent | 942b18aca91819fa65d853cd15ffd1cd720cbd68 (diff) |
IGP: add support for NTSC tv-out on legacy IGP chips
Patch from Calvin with some cleanups from me.
No support for PAL yet.
Diffstat (limited to 'src/radeon_tv.h')
-rw-r--r-- | src/radeon_tv.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/radeon_tv.h b/src/radeon_tv.h index c4b7838d..8d77a771 100644 --- a/src/radeon_tv.h +++ b/src/radeon_tv.h @@ -27,24 +27,31 @@ #define MAX_H_SIZE 5 /* Range: [-5..5], negative is smaller, positive is larger */ /* tv standard constants */ -#define NTSC_TV_PLL_M 22 -#define NTSC_TV_PLL_N 175 -#define NTSC_TV_PLL_P 5 #define NTSC_TV_CLOCK_T 233 #define NTSC_TV_VFTOTAL 1 #define NTSC_TV_LINES_PER_FRAME 525 #define NTSC_TV_ZERO_H_SIZE 479166 #define NTSC_TV_H_SIZE_UNIT 9478 -#define PAL_TV_PLL_M 113 -#define PAL_TV_PLL_N 668 -#define PAL_TV_PLL_P 3 #define PAL_TV_CLOCK_T 188 #define PAL_TV_VFTOTAL 3 #define PAL_TV_LINES_PER_FRAME 625 #define PAL_TV_ZERO_H_SIZE 473200 #define PAL_TV_H_SIZE_UNIT 9360 +/* tv pll setting for 27 mhz ref clk */ +#define NTSC_TV_PLL_M_27 22 +#define NTSC_TV_PLL_N_27 175 +#define NTSC_TV_PLL_P_27 5 + +#define PAL_TV_PLL_M_27 113 +#define PAL_TV_PLL_N_27 668 +#define PAL_TV_PLL_P_27 3 + +/* tv pll setting for 14 mhz ref clk */ +#define NTSC_TV_PLL_M_14 33 +#define NTSC_TV_PLL_N_14 693 +#define NTSC_TV_PLL_P_14 7 #define VERT_LEAD_IN_LINES 2 #define FRAC_BITS 0xe |