From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Fri, 15 Feb 2008 11:33:33 +0100 Subject: [U-Boot-Users] [PATCH] Extend ATI Radeon driver to support more video modes In-Reply-To: <20080215100231.GA4599@game.jcrosoft.org> References: <47B38277.6010001@denx.de> <20080214003914.1F01524050@gemini.denx.de> <20080215092413.GC8190@enneenne.com> <20080215100231.GA4599@game.jcrosoft.org> Message-ID: <47B56A7D.6030601@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 10:24 Fri 15 Feb , Rodolfo Giometti wrote: >> On Thu, Feb 14, 2008 at 01:39:14AM +0100, Wolfgang Denk wrote: >>> In message <47B38277.6010001@denx.de> you wrote: >>>>>> +#if 1 /* @ 60 Hz */ >>>>>> + mode->crtc_h_total_disp = 0x009f00d2; >>>>>> + mode->crtc_h_sync_strt_wid = 0x000e0528; >>>>>> + mode->crtc_v_total_disp = 0x03ff0429; >>>>>> + mode->crtc_v_sync_strt_wid = 0x00030400; >>>>>> + mode->crtc_pitch = 0x00a000a0; >>>>>> + mode->ppll_div_3 = 0x00010060; >>>>>> +#else /* @ 75 Hz */ >>>>>> + mode->crtc_h_total_disp = 0x009f00d2; >>>>>> + mode->crtc_h_sync_strt_wid = 0x00120508; >>>>>> + mode->crtc_v_total_disp = 0x03ff0429; >>>>>> + mode->crtc_v_sync_strt_wid = 0x00030400; >>>>>> + mode->crtc_pitch = 0x00a000a0; >>>>>> + mode->ppll_div_3 = 0x00010078; >>>>>> +#endif >>>>> Mmm... better adding a configuration define here or just remove the >>>>> unused code. >>>> Ok, I'm going to drop the unused code then. >>> No, please keep it as reference in case anybody needs this later. >> Uh? =:-o Why did you change your mind? ;) >> >> | Delivery-date: Sun, 01 Apr 2007 15:18:41 +0200 >> | From: Wolfgang Denk >> | To: Rodolfo Giometti >> | cc: Markus Klotzb?cher >> | Subject: Re: [PATCH] ISP116x HCD (Host Controller Driver) >> | >> | [snip] >> | >> | Please remove code in "#if 0 ... #endif" blocks. >> | >> | [snip] >> | >> | Best regards, >> | >> | Wolfgang Denk >> >> However I suggested also to add a configuration define, something >> like: >> >> #if defined(CFG_ATI_RADEON_60HZ) >> ... >> #elif defined(CFG_ATI_RADEON_75HZ) >> ... >> #else >> #error "..." >> #endif >> > Please use CONFIG and not CFG too allow this parameter in Kconfig new and already applied patch uses CONFIG_RADEON_VREFRESH_75HZ and another case (@ 60HZ) is just default case. Best Regards, Anatolij -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de