diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-19 16:13:33 -0500 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-19 06:08:59 -0500 |
| commit | 9c49e4ab84dd46769e7fd9773946e10c95bab680 (patch) | |
| tree | d26b1c57d5e3bf3dac55db0ce123f2314740ada6 /include/linux/amba | |
| parent | ff6433225b08d74f77f6eb4c5bf5ca434a371492 (diff) | |
ARM: clcd: use amba_part() to determine if we have a PL110 primecell
Instead of matching the entire peripheral ID, match against
just the part number using the amba_xxx() macros.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/amba')
| -rw-r--r-- | include/linux/amba/clcd.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/amba/clcd.h b/include/linux/amba/clcd.h index be33b3affc8a..2e511219a161 100644 --- a/include/linux/amba/clcd.h +++ b/include/linux/amba/clcd.h | |||
| @@ -212,12 +212,12 @@ static inline void clcdfb_decode(struct clcd_fb *fb, struct clcd_regs *regs) | |||
| 212 | break; | 212 | break; |
| 213 | case 16: | 213 | case 16: |
| 214 | /* | 214 | /* |
| 215 | * PL110 cannot choose between 5551 and 565 modes in | 215 | * PL110 cannot choose between 5551 and 565 modes in its |
| 216 | * its control register | 216 | * control register. It is possible to use 565 with |
| 217 | * custom external wiring. | ||
| 217 | */ | 218 | */ |
| 218 | if ((fb->dev->periphid & 0x000fffff) == 0x00041110) | 219 | if (amba_part(fb->dev) == 0x110 || |
| 219 | val |= CNTL_LCDBPP16; | 220 | fb->fb.var.green.length == 5) |
| 220 | else if (fb->fb.var.green.length == 5) | ||
| 221 | val |= CNTL_LCDBPP16; | 221 | val |= CNTL_LCDBPP16; |
| 222 | else | 222 | else |
| 223 | val |= CNTL_LCDBPP16_565; | 223 | val |= CNTL_LCDBPP16_565; |
