|
From: <med...@us...> - 2007-06-06 02:47:23
|
Revision: 1022
http://svn.sourceforge.net/hackndev/?rev=1022&view=rev
Author: medaglia
Date: 2007-06-05 19:47:21 -0700 (Tue, 05 Jun 2007)
Log Message:
-----------
Small fixes to have this kernel building for Palm T|E2.
Modified Paths:
--------------
linux4palm/linux/trunk/Makefile
linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2.c
linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2_ac97.c
Modified: linux4palm/linux/trunk/Makefile
===================================================================
--- linux4palm/linux/trunk/Makefile 2007-06-03 10:06:21 UTC (rev 1021)
+++ linux4palm/linux/trunk/Makefile 2007-06-06 02:47:21 UTC (rev 1022)
@@ -183,7 +183,7 @@
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
ARCH := arm
-CROSS_COMPILE ?= arm-softfloat-linux-gnu-
+CROSS_COMPILE ?= arm-none-eabi-
# Architecture as present in compile.h
UTS_MACHINE := $(ARCH)
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2.c 2007-06-03 10:06:21 UTC (rev 1021)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2.c 2007-06-06 02:47:21 UTC (rev 1022)
@@ -39,14 +39,14 @@
#include <sound/ac97_codec.h>
#include "../generic.h"
-#include "../drivers/serial/pxa-serial.h"
+//#include "../drivers/serial/pxa-serial.h"
#define DEBUG
/**
* IRDA
*/
-
+#if 0
static void
palmte2_irda_configure (struct uart_pxa_port *up, int enable)
{
@@ -114,6 +114,8 @@
.get_txrx = palmte2_irda_get_txrx,
};
+#endif
+
struct platform_device palmte2_buttons = {
.name = "palmte2-buttons",
.id = -1,
@@ -184,8 +186,8 @@
}
}
-
-static struct pxafb_mach_info palmte2lcd __initdata = {
+static struct pxafb_mode_info palmte2_lcd_modes[] = {
+{
.pixclock = 0,
.xres = 320,
.yres = 320,
@@ -199,6 +201,14 @@
.lower_margin = 5,
.sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT,
+// .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT,
+},
+};
+
+static struct pxafb_mach_info palmte2_lcd_screen = {
+ .modes = palmte2_lcd_modes,
+ .num_modes = ARRAY_SIZE(palmte2_lcd_modes),
+
.lccr0 = 0x000000F9,
.lccr3 = 0x04700006,
.pxafb_backlight_power = palm_backlight_power,
@@ -208,9 +218,9 @@
{
GCR &= ~GCR_PRIRDY_IEN;
- set_pxa_fb_info(&palmte2lcd);
+ set_pxa_fb_info(&palmte2_lcd_screen);
- stuart_device.dev.platform_data = &palmte2_pxa_irda_funcs;
+// stuart_device.dev.platform_data = &palmte2_pxa_irda_funcs;
platform_add_devices(devices, ARRAY_SIZE(devices));
/*
@@ -221,7 +231,7 @@
MACHINE_START(TUNGE2, "Palm Tungsten E2")
/* Maintainer: Carlos E. Medaglia Dyonisio <ca...@ne...> */
- .phys_ram = 0xa0000000,
+ //.phys_ram = 0xa0000000,
.phys_io = 0x40000000,
.io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
.map_io = pxa_map_io,
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2_ac97.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2_ac97.c 2007-06-03 10:06:21 UTC (rev 1021)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmte2/palmte2_ac97.c 2007-06-06 02:47:21 UTC (rev 1022)
@@ -21,7 +21,8 @@
#include <asm/arch/pxa-regs.h>
#include <asm/arch/irqs.h>
/* XXX: Should be changed! */
-#include <asm/arch-pxa/palmld-ac97.h>
+//#include <asm/arch-pxa/palmld-ac97.h>
+#include <linux/wm97xx.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|