diff -u -r --new-file linux.vanilla/arch/mips/config.in linux/arch/mips/config.in --- linux.vanilla/arch/mips/config.in Mon Mar 5 20:59:57 2001 +++ linux/arch/mips/config.in Mon Jun 4 13:17:27 2001 @@ -254,12 +254,11 @@ if [ "$CONFIG_PHILIPS_VELO" = "y" ]; then define_bool CONFIG_CPU_R39XX y int 'Main memory (in megabytes)' CONFIG_MAIN_MEMORY 4 - int 'Memory on expansion board (0 for none)' CONFIG_EXP_MEMORY 8 - choice 'Video subsystem' "\ - 4gray CONFIG_PHILIPS_VELO1_4GRAY \ - 16gray CONFIG_PHILIPS_VELO1_16GRAY \ - velo500 CONFIG_PHILIPS_VELO500 \ - " 16gray + int 'Memory on expansion board (0 for none)' CONFIG_EXP_MEMORY 0 + choice 'Velo model' "\ + Velo1 CONFIG_PHILIPS_VELO1 \ + Velo500 CONFIG_PHILIPS_VELO500 \ + " Velo1 fi if [ "$CONFIG_VTECH_HELIO" = "y" ]; then diff -u -r --new-file linux.vanilla/arch/mips/r39xx/buttons.c linux/arch/mips/r39xx/buttons.c --- linux.vanilla/arch/mips/r39xx/buttons.c Wed Nov 1 01:02:27 2000 +++ linux/arch/mips/r39xx/buttons.c Mon Jun 4 12:43:58 2001 @@ -121,6 +121,7 @@ PRESS('S'); if (old_intstatus5 & INT5_IONEGINT6) RELEASE('S'); +#ifdef CONFIG_VTECH_HELIO /* Record button */ if (old_intstatus3 & MFIO_PIN_IO_KEY8) if (time_before(debounce_record,jiffies)) { @@ -133,6 +134,7 @@ RELEASE('R'); } break; +#endif case 16: /* Power pressed */ PRESS('O'); diff -u -r --new-file linux.vanilla/arch/mips/r39xx/kbd_velo.c linux/arch/mips/r39xx/kbd_velo.c --- linux.vanilla/arch/mips/r39xx/kbd_velo.c Thu Nov 16 18:41:36 2000 +++ linux/arch/mips/r39xx/kbd_velo.c Mon Jun 4 13:14:54 2001 @@ -69,9 +69,12 @@ static void handle(int key) { extern int voltage_input; + +#ifdef CONFIG_PHILIPS_VELO1 if (key == 0x5e) { MFIOOutput ^= MFIO_PIN_BACKLIGHT; } +#endif if (power_down) { power_down = 2; switch (key) { @@ -87,6 +90,14 @@ case 0x44: handle_sysrq('k', NULL, NULL, NULL); break; #endif case 0x21: /* space */ +#ifdef CONFIG_PHILIPS_VELO500 + if (MFIOOutput & MFIO_PIN_BACKLIGHT) + MFIOOutput &= ~MFIO_PIN_BACKLIGHT; + else + MFIOOutput |= MFIO_PIN_BACKLIGHT; + break; + case 0x51: /* shift */ +#endif MFIOOutput ^= current_mfio; printk( "MFIOOutput now %08x, MFIOInput is %08x\n", MFIOOutput, MFIOInput ); break; @@ -221,7 +232,6 @@ set_cpu_slow(); } else { set_cpu_fast(); - MFIOOutput |= MFIO_PIN_BACKLIGHT; MFIOOutput &= ~MFIO_PIN_LCD_POWER; } return 1; diff -u -r --new-file linux.vanilla/arch/mips/r39xx/prom/memory.c linux/arch/mips/r39xx/prom/memory.c --- linux.vanilla/arch/mips/r39xx/prom/memory.c Sun Jul 9 00:36:18 2000 +++ linux/arch/mips/r39xx/prom/memory.c Mon Jun 4 12:47:33 2001 @@ -17,6 +17,10 @@ #include #include +#ifdef CONFIG_FB +#include