From: Antonino A. Daplas Date: Tue, 8 May 2007 07:38:52 +0000 (-0700) Subject: i810fb: fix incorrect frequency mask X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1f92fea9c63be2071e88fb600dcfb50af1a6d2ca;p=openwrt%2Fstaging%2Fblogic.git i810fb: fix incorrect frequency mask Fix a long-standing bug. The mask used to detect a 100Mhz or 133Mhz chipset is incorrect. (The only side effect of this bug is that it will choose an incorrect watermark). Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/i810/i810.h b/drivers/video/i810/i810.h index aa65ffce915b..889e4ea5edc1 100644 --- a/drivers/video/i810/i810.h +++ b/drivers/video/i810/i810.h @@ -133,7 +133,7 @@ /* Masks (AND ops) and OR's */ #define FB_START_MASK (0x3f << (32 - 6)) #define MMIO_ADDR_MASK (0x1FFF << (32 - 13)) -#define FREQ_MASK 0x1EF +#define FREQ_MASK (1 << 4) #define SCR_OFF 0x20 #define DRAM_ON 0x08 #define DRAM_OFF 0xE7