video_gx.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Geode GX video device
  3. *
  4. * Copyright (C) 2006 Arcom Control Systems Ltd.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. */
  11. #ifndef __VIDEO_GX_H__
  12. #define __VIDEO_GX_H__
  13. extern struct geode_vid_ops gx_vid_ops;
  14. /* Geode GX video processor registers */
  15. #define GX_DCFG 0x0008
  16. # define GX_DCFG_CRT_EN 0x00000001
  17. # define GX_DCFG_HSYNC_EN 0x00000002
  18. # define GX_DCFG_VSYNC_EN 0x00000004
  19. # define GX_DCFG_DAC_BL_EN 0x00000008
  20. # define GX_DCFG_CRT_HSYNC_POL 0x00000100
  21. # define GX_DCFG_CRT_VSYNC_POL 0x00000200
  22. # define GX_DCFG_CRT_SYNC_SKW_MASK 0x0001C000
  23. # define GX_DCFG_CRT_SYNC_SKW_DFLT 0x00010000
  24. # define GX_DCFG_VG_CK 0x00100000
  25. # define GX_DCFG_GV_GAM 0x00200000
  26. # define GX_DCFG_DAC_VREF 0x04000000
  27. /* Geode GX flat panel display control registers */
  28. #define GX_FP_PM 0x410
  29. # define GX_FP_PM_P 0x01000000
  30. /* Geode GX clock control MSRs */
  31. #define MSR_GLCP_SYS_RSTPLL 0x4c000014
  32. # define MSR_GLCP_SYS_RSTPLL_DOTPREDIV2 (0x0000000000000002ull)
  33. # define MSR_GLCP_SYS_RSTPLL_DOTPREMULT2 (0x0000000000000004ull)
  34. # define MSR_GLCP_SYS_RSTPLL_DOTPOSTDIV3 (0x0000000000000008ull)
  35. #define MSR_GLCP_DOTPLL 0x4c000015
  36. # define MSR_GLCP_DOTPLL_DOTRESET (0x0000000000000001ull)
  37. # define MSR_GLCP_DOTPLL_BYPASS (0x0000000000008000ull)
  38. # define MSR_GLCP_DOTPLL_LOCK (0x0000000002000000ull)
  39. #endif /* !__VIDEO_GX_H__ */