diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-08-21 00:09:10 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-05-23 15:58:23 +0100 |
commit | 8436b5f91f9ef42f292dd72d411a848c9d69d13b (patch) | |
tree | c19144327141f2044a6e09453e16a2e2a6e72a68 /arch/arm/mach-sa1100/assabet.c | |
parent | c11d5cc69545233bf399782bf26ae4760867462a (diff) |
assabet hack
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/assabet.c')
-rw-r--r-- | arch/arm/mach-sa1100/assabet.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/arch/arm/mach-sa1100/assabet.c b/arch/arm/mach-sa1100/assabet.c index 261e6957ae6a..520b7e461903 100644 --- a/arch/arm/mach-sa1100/assabet.c +++ b/arch/arm/mach-sa1100/assabet.c @@ -372,7 +372,7 @@ static void assabet_lcd_set_visual(u32 visual) #ifndef ASSABET_PAL_VIDEO static void assabet_lcd_backlight_power(int on) { - if (on) + if (on && 0) ASSABET_BCR_set(ASSABET_BCR_LIGHT_ON); else ASSABET_BCR_clear(ASSABET_BCR_LIGHT_ON); @@ -385,9 +385,10 @@ static void assabet_lcd_backlight_power(int on) */ static void assabet_lcd_power(int on) { - if (on) { + if (on && 0) { + msleep(500); ASSABET_BCR_set(ASSABET_BCR_LCD_ON); - udelay(500); + msleep(500); } else ASSABET_BCR_clear(ASSABET_BCR_LCD_ON); } @@ -585,8 +586,8 @@ static void __init assabet_init(void) * Set up registers for sleep mode. */ PWER = PWER_GPIO0; - PGSR = 0; - PCFR = 0; + PGSR = GPIO_GPIO(17); + PCFR = PCFR_OPDE | PCFR_FP; PSDR = 0; PPDR |= PPC_TXD3 | PPC_TXD1; PPSR |= PPC_TXD3 | PPC_TXD1; @@ -680,6 +681,11 @@ static void __init get_assabet_scr(void) SCR_value = scr; } +static char neponset_cmdline[] __initdata = "console=ttySA0 " +"cpufreq=221200 rw root=/dev/mtdblock2 " +"mtdparts=sa1100:512K(boot),1M(kernel),2560K(initrd),4M(root) " +"load_ramdisk=1 prompt_ramdisk=0 mem=32M noinitrd initrd=0xc0800000,3M profile=2"; + static void __init fixup_assabet(struct tag *tags, char **cmdline) { @@ -687,8 +693,10 @@ fixup_assabet(struct tag *tags, char **cmdline) map_sa1100_gpio_regs(); get_assabet_scr(); - if (machine_has_neponset()) + if (machine_has_neponset()) { printk("Neponset expansion board detected\n"); + *cmdline = neponset_cmdline; + } } |