Re: basic support for neo1973
Hi! > > This adds very basic support for fic1973 (aka gta01, aka > > openmoko). With this patch applied, I can boot the kernel and actually > > see the messages. > > please coordinate with Ben Dooks. He's the 24xx maintainer and has > already picked up a number of our changes for mainline merging in the > next merge window. I'm sorry, I screwed up timing. I was having mailserver problems (and did not know about them), so I asked "is it okay to merge" waited day or so (seeing no reply, because my question did not leave my mail server :-() and then went ahead. Sorry for confusion. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: basic support for neo1973
On Thu, Apr 05, 2007 at 10:48:50AM +0200, Pavel Machek wrote: > This adds very basic support for fic1973 (aka gta01, aka > openmoko). With this patch applied, I can boot the kernel and actually > see the messages. please coordinate with Ben Dooks. He's the 24xx maintainer and has already picked up a number of our changes for mainline merging in the next merge window. -- - Harald Welte <[EMAIL PROTECTED]> http://openmoko.org/ Software for the world's first truly open Free Software mobile phone - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
basic support for neo1973
This adds very basic support for fic1973 (aka gta01, aka openmoko). With this patch applied, I can boot the kernel and actually see the messages. From: Harald Welte <[EMAIL PROTECTED]> Signed-off-by: Pavel Machek <[EMAIL PROTECTED]> PATCH FOLLOWS KernelVersion: 2.6.21-rc5-git diff --git a/arch/arm/mach-s3c2410/Kconfig b/arch/arm/mach-s3c2410/Kconfig index d4b013b..9f2a874 100644 --- a/arch/arm/mach-s3c2410/Kconfig +++ b/arch/arm/mach-s3c2410/Kconfig @@ -109,5 +109,11 @@ config MACH_QT2410 help Say Y here if you are using the Armzone QT2410 +config MACH_GTA01 + bool "FIC Neo1973 GSM Phone" + select CPU_S3C2410 + help + Say Y here if you are using the FIC Neo1973 GSM Phone + endmenu diff --git a/arch/arm/mach-s3c2410/Makefile b/arch/arm/mach-s3c2410/Makefile index 9a3d3d2..71b82d8 100644 --- a/arch/arm/mach-s3c2410/Makefile +++ b/arch/arm/mach-s3c2410/Makefile @@ -29,3 +29,5 @@ obj-$(CONFIG_MACH_AML_M5900) += mach-aml obj-$(CONFIG_BAST_PC104_IRQ) += bast-irq.o obj-$(CONFIG_MACH_VR1000) += mach-vr1000.o usb-simtec.o obj-$(CONFIG_MACH_QT2410) += mach-qt2410.o +obj-$(CONFIG_MACH_GTA01) += mach-gta01.o + diff --git a/arch/arm/mach-s3c2410/mach-gta01.c b/arch/arm/mach-s3c2410/mach-gta01.c new file mode 100644 index 000..c9b4837 --- /dev/null +++ b/arch/arm/mach-s3c2410/mach-gta01.c @@ -0,0 +1,358 @@ +/* + * linux/arch/arm/mach-s3c2410/mach-gta01.c + * + * S3C2410 Machine Support for the FIC GTA01 (Neo1973) + * + * Copyright (C) 2006-2007 by OpenMoko, Inc. + * Author: Harald Welte <[EMAIL PROTECTED]> + * All rights reserved. + * + * 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 program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include +#include +#include + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include +#include +#include + +static struct map_desc gta01_iodesc[] __initdata = { + { + .virtual= 0xe000, + .pfn= __phys_to_pfn(S3C2410_CS3+0x0100), + .length = SZ_1M, + .type = MT_DEVICE + }, +}; + +#define UCON S3C2410_UCON_DEFAULT +#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB +#define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE + +static struct s3c2410_uartcfg gta01_uartcfgs[] = { + [0] = { + .hwport = 0, + .flags = 0, + .ucon= UCON, + .ulcon = ULCON, + .ufcon = UFCON, + }, + [1] = { + .hwport = 1, + .flags = 0, + .ucon= UCON, + .ulcon = ULCON, + .ufcon = UFCON, + }, +}; + +/* LCD driver info */ + + +/* Configuration for 480x640 toppoly TD028TTEC1 */ +static struct s3c2410fb_mach_info gta01_lcd_cfg __initdata = { + .regs = { + .lcdcon1= S3C2410_LCDCON1_TFT16BPP | + S3C2410_LCDCON1_TFT | + S3C2410_LCDCON1_CLKVAL(0x01), /* HCLK/4 */ + + .lcdcon2= S3C2410_LCDCON2_VBPD(1) | /* 2 */ + S3C2410_LCDCON2_LINEVAL(639) |/* 640 */ + S3C2410_LCDCON2_VFPD(15) |/* 16 */ + S3C2410_LCDCON2_VSPW(1), /* 2 */ + + .lcdcon3= S3C2410_LCDCON3_HBPD(7) | /* 8 */ + S3C2410_LCDCON3_HOZVAL(479) | /* 480 */ + S3C2410_LCDCON3_HFPD(103),/* 104 */ + + .lcdcon4= S3C2410_LCDCON4_MVAL(0) | + S3C2410_LCDCON4_HSPW(7), /* 8 */ + + .lcdcon5= S3C2410_LCDCON5_FRM565 | + S3C2410_LCDCON5_INVVLINE | + S3C2410_LCDCON5_INVVFRAME | + S3C2410_LCDCON5_PWREN | +
basic support for neo1973
This adds very basic support for fic1973 (aka gta01, aka openmoko). With this patch applied, I can boot the kernel and actually see the messages. From: Harald Welte [EMAIL PROTECTED] Signed-off-by: Pavel Machek [EMAIL PROTECTED] PATCH FOLLOWS KernelVersion: 2.6.21-rc5-git diff --git a/arch/arm/mach-s3c2410/Kconfig b/arch/arm/mach-s3c2410/Kconfig index d4b013b..9f2a874 100644 --- a/arch/arm/mach-s3c2410/Kconfig +++ b/arch/arm/mach-s3c2410/Kconfig @@ -109,5 +109,11 @@ config MACH_QT2410 help Say Y here if you are using the Armzone QT2410 +config MACH_GTA01 + bool FIC Neo1973 GSM Phone + select CPU_S3C2410 + help + Say Y here if you are using the FIC Neo1973 GSM Phone + endmenu diff --git a/arch/arm/mach-s3c2410/Makefile b/arch/arm/mach-s3c2410/Makefile index 9a3d3d2..71b82d8 100644 --- a/arch/arm/mach-s3c2410/Makefile +++ b/arch/arm/mach-s3c2410/Makefile @@ -29,3 +29,5 @@ obj-$(CONFIG_MACH_AML_M5900) += mach-aml obj-$(CONFIG_BAST_PC104_IRQ) += bast-irq.o obj-$(CONFIG_MACH_VR1000) += mach-vr1000.o usb-simtec.o obj-$(CONFIG_MACH_QT2410) += mach-qt2410.o +obj-$(CONFIG_MACH_GTA01) += mach-gta01.o + diff --git a/arch/arm/mach-s3c2410/mach-gta01.c b/arch/arm/mach-s3c2410/mach-gta01.c new file mode 100644 index 000..c9b4837 --- /dev/null +++ b/arch/arm/mach-s3c2410/mach-gta01.c @@ -0,0 +1,358 @@ +/* + * linux/arch/arm/mach-s3c2410/mach-gta01.c + * + * S3C2410 Machine Support for the FIC GTA01 (Neo1973) + * + * Copyright (C) 2006-2007 by OpenMoko, Inc. + * Author: Harald Welte [EMAIL PROTECTED] + * All rights reserved. + * + * 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 program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + */ + +#include linux/kernel.h +#include linux/types.h +#include linux/interrupt.h +#include linux/list.h +#include linux/timer.h +#include linux/init.h +#include linux/workqueue.h +#include linux/platform_device.h +#include linux/serial_core.h +#include linux/spi/spi.h +#include linux/spi/spi_bitbang.h +#include linux/mmc/protocol.h + +#include linux/mtd/mtd.h +#include linux/mtd/nand.h +#include linux/mtd/nand_ecc.h +#include linux/mtd/partitions.h + +#include asm/mach/arch.h +#include asm/mach/map.h +#include asm/mach/irq.h + +#include asm/hardware.h +#include asm/io.h +#include asm/irq.h +#include asm/mach-types.h + +#include asm/arch/regs-serial.h +#include asm/arch/regs-gpio.h +#include asm/arch/fb.h +#include asm/arch/udc.h +#include asm/arch/nand.h +#include asm/arch/spi.h +#include asm/arch/spi-gpio.h +#include asm/arch/usb-control.h + +#include asm/arch/gta01.h + +#include asm/plat-s3c24xx/clock.h +#include asm/plat-s3c24xx/devs.h +#include asm/plat-s3c24xx/cpu.h + +static struct map_desc gta01_iodesc[] __initdata = { + { + .virtual= 0xe000, + .pfn= __phys_to_pfn(S3C2410_CS3+0x0100), + .length = SZ_1M, + .type = MT_DEVICE + }, +}; + +#define UCON S3C2410_UCON_DEFAULT +#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB +#define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE + +static struct s3c2410_uartcfg gta01_uartcfgs[] = { + [0] = { + .hwport = 0, + .flags = 0, + .ucon= UCON, + .ulcon = ULCON, + .ufcon = UFCON, + }, + [1] = { + .hwport = 1, + .flags = 0, + .ucon= UCON, + .ulcon = ULCON, + .ufcon = UFCON, + }, +}; + +/* LCD driver info */ + + +/* Configuration for 480x640 toppoly TD028TTEC1 */ +static struct s3c2410fb_mach_info gta01_lcd_cfg __initdata = { + .regs = { + .lcdcon1= S3C2410_LCDCON1_TFT16BPP | + S3C2410_LCDCON1_TFT | + S3C2410_LCDCON1_CLKVAL(0x01), /* HCLK/4 */ + + .lcdcon2= S3C2410_LCDCON2_VBPD(1) | /* 2 */ + S3C2410_LCDCON2_LINEVAL(639) |/* 640 */ + S3C2410_LCDCON2_VFPD(15) |/* 16 */ + S3C2410_LCDCON2_VSPW(1), /* 2 */ + + .lcdcon3= S3C2410_LCDCON3_HBPD(7) | /* 8 */
Re: basic support for neo1973
On Thu, Apr 05, 2007 at 10:48:50AM +0200, Pavel Machek wrote: This adds very basic support for fic1973 (aka gta01, aka openmoko). With this patch applied, I can boot the kernel and actually see the messages. please coordinate with Ben Dooks. He's the 24xx maintainer and has already picked up a number of our changes for mainline merging in the next merge window. -- - Harald Welte [EMAIL PROTECTED] http://openmoko.org/ Software for the world's first truly open Free Software mobile phone - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: basic support for neo1973
Hi! This adds very basic support for fic1973 (aka gta01, aka openmoko). With this patch applied, I can boot the kernel and actually see the messages. please coordinate with Ben Dooks. He's the 24xx maintainer and has already picked up a number of our changes for mainline merging in the next merge window. I'm sorry, I screwed up timing. I was having mailserver problems (and did not know about them), so I asked is it okay to merge waited day or so (seeing no reply, because my question did not leave my mail server :-() and then went ahead. Sorry for confusion. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/