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> | 2024-01-08 10:29:47 +0000 |
commit | 4cd942dc8a0583193f2232c9716e6c7f74f1315d (patch) | |
tree | 2de51000b20fe5f9a987cf2d0e94bdc042ec0441 /arch | |
parent | 94eeab8fec2bf5f092a86c707da75b2c39dd153e (diff) |
assabet hack
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch')
-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 93868167de4b..f0bf85743b01 100644 --- a/arch/arm/mach-sa1100/assabet.c +++ b/arch/arm/mach-sa1100/assabet.c @@ -358,7 +358,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); @@ -371,9 +371,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); } @@ -569,8 +570,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; @@ -663,6 +664,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) { @@ -670,8 +676,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; + } } |