diff options
Diffstat (limited to 'arch/mips/lasat/picvue.c')
-rw-r--r-- | arch/mips/lasat/picvue.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/arch/mips/lasat/picvue.c b/arch/mips/lasat/picvue.c index d3d04c392e25..7eb334892693 100644 --- a/arch/mips/lasat/picvue.c +++ b/arch/mips/lasat/picvue.c | |||
@@ -163,12 +163,12 @@ int pvc_program_cg(int charnum, u8 bitmap[BM_SIZE]) | |||
163 | } | 163 | } |
164 | 164 | ||
165 | #define FUNC_SET_CMD 0x20 | 165 | #define FUNC_SET_CMD 0x20 |
166 | #define EIGHT_BYTE (1 << 4) | 166 | #define EIGHT_BYTE (1 << 4) |
167 | #define FOUR_BYTE 0 | 167 | #define FOUR_BYTE 0 |
168 | #define TWO_LINES (1 << 3) | 168 | #define TWO_LINES (1 << 3) |
169 | #define ONE_LINE 0 | 169 | #define ONE_LINE 0 |
170 | #define LARGE_FONT (1 << 2) | 170 | #define LARGE_FONT (1 << 2) |
171 | #define SMALL_FONT 0 | 171 | #define SMALL_FONT 0 |
172 | 172 | ||
173 | static void pvc_funcset(u8 cmd) | 173 | static void pvc_funcset(u8 cmd) |
174 | { | 174 | { |
@@ -177,9 +177,9 @@ static void pvc_funcset(u8 cmd) | |||
177 | } | 177 | } |
178 | 178 | ||
179 | #define ENTRYMODE_CMD 0x4 | 179 | #define ENTRYMODE_CMD 0x4 |
180 | #define AUTO_INC (1 << 1) | 180 | #define AUTO_INC (1 << 1) |
181 | #define AUTO_DEC 0 | 181 | #define AUTO_DEC 0 |
182 | #define CURSOR_FOLLOWS_DISP (1 << 0) | 182 | #define CURSOR_FOLLOWS_DISP (1 << 0) |
183 | 183 | ||
184 | static void pvc_entrymode(u8 cmd) | 184 | static void pvc_entrymode(u8 cmd) |
185 | { | 185 | { |
@@ -188,20 +188,20 @@ static void pvc_entrymode(u8 cmd) | |||
188 | } | 188 | } |
189 | 189 | ||
190 | #define DISP_CNT_CMD 0x08 | 190 | #define DISP_CNT_CMD 0x08 |
191 | #define DISP_OFF 0 | 191 | #define DISP_OFF 0 |
192 | #define DISP_ON (1 << 2) | 192 | #define DISP_ON (1 << 2) |
193 | #define CUR_ON (1 << 1) | 193 | #define CUR_ON (1 << 1) |
194 | #define CUR_BLINK (1 << 0) | 194 | #define CUR_BLINK (1 << 0) |
195 | void pvc_dispcnt(u8 cmd) | 195 | void pvc_dispcnt(u8 cmd) |
196 | { | 196 | { |
197 | pvc_write(DISP_CNT_CMD | (cmd & (DISP_ON|CUR_ON|CUR_BLINK)), MODE_INST); | 197 | pvc_write(DISP_CNT_CMD | (cmd & (DISP_ON|CUR_ON|CUR_BLINK)), MODE_INST); |
198 | } | 198 | } |
199 | 199 | ||
200 | #define MOVE_CMD 0x10 | 200 | #define MOVE_CMD 0x10 |
201 | #define DISPLAY (1 << 3) | 201 | #define DISPLAY (1 << 3) |
202 | #define CURSOR 0 | 202 | #define CURSOR 0 |
203 | #define RIGHT (1 << 2) | 203 | #define RIGHT (1 << 2) |
204 | #define LEFT 0 | 204 | #define LEFT 0 |
205 | void pvc_move(u8 cmd) | 205 | void pvc_move(u8 cmd) |
206 | { | 206 | { |
207 | pvc_write(MOVE_CMD | (cmd & (DISPLAY|RIGHT)), MODE_INST); | 207 | pvc_write(MOVE_CMD | (cmd & (DISPLAY|RIGHT)), MODE_INST); |