/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * $Id$ * * Copyright (C) 2002 by Alan Korr * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * ****************************************************************************/ #include "config.h" #include "hwcompat.h" #include "kernel.h" #include "lcd.h" #include "system.h" #include "cpu.h" #include "inttypes.h" #include "s5l8700.h" /*** definitions ***/ /** globals **/ static uint8_t lcd_type; static int xoffset; /* needed for flip */ /*** hardware configuration ***/ int lcd_default_contrast(void) { return 0x1f; } void lcd_set_contrast(int val) { } void lcd_set_invert_display(bool yesno) { } /* turn the display upside down (call lcd_update() afterwards) */ void lcd_set_flip(bool yesno) { /* TODO: flip mode isn't working. The commands in the else part of this function are how the original firmware inits the LCD */ if (yesno) { xoffset = 132 - LCD_WIDTH; /* 132 colums minus the 128 we have */ } else { xoffset = 0; } } static void lcd_sleep(uint32_t t) { uint32_t i; for(i=0;i