You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(26) |
Sep
(22) |
Oct
(55) |
Nov
(24) |
Dec
(30) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(68) |
Feb
(85) |
Mar
(54) |
Apr
(12) |
May
(52) |
Jun
(75) |
Jul
(116) |
Aug
(71) |
Sep
(54) |
Oct
|
Nov
(2) |
Dec
|
From: <bob...@us...> - 2007-07-14 01:17:43
|
Revision: 1144 http://svn.sourceforge.net/hackndev/?rev=1144&view=rev Author: bobofdoom Date: 2007-07-13 18:17:37 -0700 (Fri, 13 Jul 2007) Log Message: ----------- Cocoboot: Removed initrd relocation (suggested by phire) By 4k-aligning the image as we load it from the memory card we no longer need to relocate the image in the ARM, instead we can just leave it where the m68k code left it. Hopefully this will reduce the chance of errors due to images overlapping. Modified Paths: -------------- cocoboot/trunk/Changelog cocoboot/trunk/arm/boot.c cocoboot/trunk/m68k/imgloader.c cocoboot/trunk/m68k/mainform.c Modified: cocoboot/trunk/Changelog =================================================================== --- cocoboot/trunk/Changelog 2007-07-13 21:53:03 UTC (rev 1143) +++ cocoboot/trunk/Changelog 2007-07-14 01:17:37 UTC (rev 1144) @@ -1,3 +1,5 @@ + - Removed initrd relocation for speed and reliability (suggested by phire) + version 0.3: - Added overflow-buffer as last resort to allocation problem (slapin's idea) - Cleaned up treo code (removed all #ifdefs) Modified: cocoboot/trunk/arm/boot.c =================================================================== --- cocoboot/trunk/arm/boot.c 2007-07-13 21:53:03 UTC (rev 1143) +++ cocoboot/trunk/arm/boot.c 2007-07-14 01:17:37 UTC (rev 1144) @@ -24,9 +24,11 @@ #define MACH_TYPE_T3XSCALE 829 #define TAG_OFFSET 0x100 -#define INITRD_OFFSET 0x0400000 -#define T3_INITRD_OFFSET 0x1500000 +UInt32 make_4k_aligned(UInt32 addr) +{ + return addr + 0x1000 - (addr & 0xfff); +} static void jump_to_kernel(void *kernel_base, UInt32 tag_base, UInt32 mach) { @@ -84,7 +86,6 @@ if(!kernel || !cmdline) { return 0xc0ffee; } - UInt32 initrd_offset; /* since we're going to turn off the MMU, we need to translate * all out pointers to physical addresses. @@ -101,6 +102,13 @@ return 0xbadc01a; } + /* force our pointers to be 4k aligned, imgloader will have shifted + * the image forward. + */ + kernel = (void*) make_4k_aligned((UInt32)kernel); + if (initrd) + initrd = (void*) make_4k_aligned((UInt32)initrd); + /* that includes the stack pointer ... */ asm volatile ("mov %0, sp" : "=r"(vstack) ); pstack = (void *)virt_to_phys(g, (UInt32) vstack); @@ -176,21 +184,10 @@ setup_xscale_cpu(); } - if (pg->mach_num==MACH_TYPE_T3XSCALE){ - initrd_offset=T3_INITRD_OFFSET; - } else { - initrd_offset=INITRD_OFFSET; - } - /* place kernel parameters in memory */ setup_atags(pg->ram_base + TAG_OFFSET, pg->ram_base, pg->ram_size, cmdline, - pg->ram_base + initrd_offset, initrd_size); + initrd, initrd_size); - /* copy initrd into place */ - if (initrd) { - copy_image((void*)(pg->ram_base + initrd_offset), initrd, initrd_size); - } - /* bring on the penguin! */ jump_to_kernel(kernel, pg->ram_base + TAG_OFFSET, pg->mach_num); Modified: cocoboot/trunk/m68k/imgloader.c =================================================================== --- cocoboot/trunk/m68k/imgloader.c 2007-07-13 21:53:03 UTC (rev 1143) +++ cocoboot/trunk/m68k/imgloader.c 2007-07-14 01:17:37 UTC (rev 1144) @@ -56,6 +56,9 @@ err = VFSFileOpen(vol_ref, name, vfsModeRead, &f); if(err != errNone) return -2; + /* ensure the image is 4k aligned. */ + offset = 0x1000 - (((UInt32)buffer) & 0xfff); + VFSFileReadData(f, size, buffer, offset, &bytes_read); VFSFileClose(f); @@ -151,7 +154,7 @@ } } else { /* vfs */ - return load_file(name, vol_ref, size, buffer, 0); + return load_file(name, vol_ref, size, buffer, 0x0); } out_unlock: Modified: cocoboot/trunk/m68k/mainform.c =================================================================== --- cocoboot/trunk/m68k/mainform.c 2007-07-13 21:53:03 UTC (rev 1143) +++ cocoboot/trunk/m68k/mainform.c 2007-07-14 01:17:37 UTC (rev 1144) @@ -202,7 +202,7 @@ vol = search_image(name, loc, sizeof(loc), &size); if(vol < -1) goto out; - ftr_size = size; + ftr_size = size + 0x1000; /* allocate an extra 4k so we can align the image */ while (ftr_size) { if(!(err=FtrPtrNew (CREATOR_ID, FEATURE_NUM + n, ftr_size, image))) { break; @@ -372,7 +372,7 @@ cmdline_p = FrmGetObjectPtr(form, FrmGetObjectIndex(form, CommandLine)); cmdline_th = MemHandleNew(size); cmdline_tp = MemHandleLock(cmdline_th); - StrCopy(cmdline_tp, "init=/linuxrc root=/dev/mmcblk0p2"); /* default value */ + StrCopy(cmdline_tp, " "); /* default value */ //PrefGetAppPreferences ('CcBt', 1, cmdline_tp, &size, true); MemHandleUnlock(cmdline_th); FldSetTextHandle(cmdline_p, cmdline_th); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mis...@us...> - 2007-07-13 21:53:10
|
Revision: 1143 http://svn.sourceforge.net/hackndev/?rev=1143&view=rev Author: miska_tx Date: 2007-07-13 14:53:03 -0700 (Fri, 13 Jul 2007) Log Message: ----------- palmtx: Some macro corrections. Used LCCRman for nicer LCD settings and changed battery limit. Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c 2007-07-13 13:40:13 UTC (rev 1142) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c 2007-07-13 21:53:03 UTC (rev 1143) @@ -39,6 +39,7 @@ #include <asm/arch/udc.h> #include <asm/arch/irda.h> #include <asm/arch/serial.h> +#include <asm/arch/bitfield.h> #include <asm/arch/pxa27x_keyboard.h> #include <asm/arch/pxapwm-bl.h> Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h 2007-07-13 13:40:13 UTC (rev 1142) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h 2007-07-13 21:53:03 UTC (rev 1143) @@ -31,10 +31,16 @@ // // values as dumped from device -#define PALMTX_INIT_LCD_LLC0 0x07b008f9 +//#define PALMTX_INIT_LCD_LLC0 0x07b008f9 +#define PALMTX_INIT_LCD_LLC0 LCCR0_ENB | LCCR0_Color | LCCR0_Sngl | LCCR0_LDM \ + | LCCR0_SFM | LCCR0_IUM | LCCR0_EFM | LCCR0_Act | LCCR0_4PixMono | \ + LCCR0_QDM | LCCR0_BM | LCCR0_OUM | LCCR0_RDSTM | LCCR0_CMDIM | \ + LCCR0_OUC | LCCR0_LDDALT #define PALMTX_INIT_LCD_LLC1 0x1f030d3f #define PALMTX_INIT_LCD_LLC2 0x070801df -#define PALMTX_INIT_LCD_LLC3 0x04700004 +//#define PALMTX_INIT_LCD_LLC3 0x04700004 +#define PALMTX_INIT_LCD_LLC3 LCCR3_PixClkDiv(2) | LCCR3_HorSnchL | \ + LCCR3_VrtSnchL | LCCR3_PixFlEdg | LCCR3_OutEnH | LCCR3_Bpp(4) // KEYPAD configuration @@ -54,7 +60,7 @@ // BATTERY #define PALMTX_BAT_MAX_VOLTAGE 4000 // 4.00v current voltage at max charge as from ZLauncher -#define PALMTX_BAT_MIN_VOLTAGE 3600 // 3.60v critical voltage as from FileZ +#define PALMTX_BAT_MIN_VOLTAGE 3500 // 3.60v critical voltage as from FileZ #define PALMTX_BAT_MAX_CURRENT 0 // unknokn #define PALMTX_BAT_MIN_CURRENT 0 // unknown #define PALMTX_BAT_MAX_CHARGE 1 // unknown This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bob...@us...> - 2007-07-13 13:40:15
|
Revision: 1142 http://svn.sourceforge.net/hackndev/?rev=1142&view=rev Author: bobofdoom Date: 2007-07-13 06:40:13 -0700 (Fri, 13 Jul 2007) Log Message: ----------- Cocoboot: Tagged version 0.3 Added Paths: ----------- cocoboot/tags/cocoboot-0.3/ Copied: cocoboot/tags/cocoboot-0.3 (from rev 1141, cocoboot/trunk) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bob...@us...> - 2007-07-13 13:37:53
|
Revision: 1141 http://svn.sourceforge.net/hackndev/?rev=1141&view=rev Author: bobofdoom Date: 2007-07-13 06:37:50 -0700 (Fri, 13 Jul 2007) Log Message: ----------- Cocoboot: Version 0.3 Modified Paths: -------------- cocoboot/trunk/Changelog cocoboot/trunk/README cocoboot/trunk/include/cocoboot.rcp Modified: cocoboot/trunk/Changelog =================================================================== --- cocoboot/trunk/Changelog 2007-07-13 13:29:16 UTC (rev 1140) +++ cocoboot/trunk/Changelog 2007-07-13 13:37:50 UTC (rev 1141) @@ -1,3 +1,4 @@ +version 0.3: - Added overflow-buffer as last resort to allocation problem (slapin's idea) - Cleaned up treo code (removed all #ifdefs) - Removed kernel relocation for speed and reliability (suggested by phire) Modified: cocoboot/trunk/README =================================================================== --- cocoboot/trunk/README 2007-07-13 13:29:16 UTC (rev 1140) +++ cocoboot/trunk/README 2007-07-13 13:37:50 UTC (rev 1141) @@ -19,7 +19,19 @@ use "make" to build. You might need to adjust the paths in the Makefile if your SDK is in a non-standard place. +USB Console: +Cocoboot includes a primitive USB console which you can use for dumping +memory and other debugging pruposes. Enable it from Cocoboot's Tools menu. +Plug your PDA's USB into your PC, make sure you have the visor.ko kernel +module loaded and you should see two serial ports appear as /dev/ttyUSB0 +and /dev/ttyUSB1. Connect to /dev/ttyUSB0 using minicom with a baud rate +of 115200 to access the console. + +Note: You may need to use ttyUSB1 on some devices such as the LD. + +License: + 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 Modified: cocoboot/trunk/include/cocoboot.rcp =================================================================== --- cocoboot/trunk/include/cocoboot.rcp 2007-07-13 13:29:16 UTC (rev 1140) +++ cocoboot/trunk/include/cocoboot.rcp 2007-07-13 13:37:50 UTC (rev 1141) @@ -79,7 +79,7 @@ -STRING GnuGpl "Cocoboot, PalmOS Linux loader.\n"\ +STRING GnuGpl "Cocoboot 0.3, PalmOS Linux loader.\n"\ "Copyright (C) 2006\n"\ "\n"\ "www.hackndev.com\n"\ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bob...@us...> - 2007-07-13 13:29:19
|
Revision: 1140 http://svn.sourceforge.net/hackndev/?rev=1140&view=rev Author: bobofdoom Date: 2007-07-13 06:29:16 -0700 (Fri, 13 Jul 2007) Log Message: ----------- Cocoboot: Added simple memory dumping and writing commands to USB console. Modified Paths: -------------- cocoboot/trunk/m68k/cocoboot.c Modified: cocoboot/trunk/m68k/cocoboot.c =================================================================== --- cocoboot/trunk/m68k/cocoboot.c 2007-07-13 13:07:24 UTC (rev 1139) +++ cocoboot/trunk/m68k/cocoboot.c 2007-07-13 13:29:16 UTC (rev 1140) @@ -21,6 +21,7 @@ #include <MemoryMgr.h> //#include <string.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <VFSMgr.h> @@ -216,11 +217,71 @@ void console_help(void) { sendf("Available commands:\r\n"); - sendf(" exit close the console\r\n"); - sendf(" help show this help\r\n"); - sendf(" ping [text] reply with pong text\r\n"); + sendf(" exit close the console\r\n"); + sendf(" help show this help\r\n"); + sendf(" mb addr [n] [filler] dump or fill n 8-bit values starting at addr\r\n"); + sendf(" mh addr [n] [filler] dump or fill n 16-bit values starting at addr\r\n"); + sendf(" mw addr [n] [filler] dump or fill n 32-bit values starting at addr\r\n"); + sendf(" ping [text] reply with pong text\r\n"); } +void console_mw(char *args) { + char *next = NULL; + UInt32 addr = strtol(args, &next, 0); + UInt32 count = 1; + UInt32 fill = 0, fill_value = 0; + if (next && *next) { + count = strtol(next, &next, 0); + } + if (next && *next) { + fill_value = strtol(next, &next, 0); + fill = 1; + } + while (count--) { + if (fill) *((UInt32*)addr) = fill_value; + sendf("%08lx: %lx\r\n", addr, *((UInt32*)addr)); + addr += 4; + } +} + +void console_mh(char *args) { + char *next = NULL; + UInt32 addr = strtol(args, &next, 0); + UInt32 count = 1; + UInt32 fill = 0, fill_value = 0; + if (next && *next) { + count = strtol(next, &next, 0); + } + if (next && *next) { + fill_value = strtol(next, &next, 0); + fill = 1; + } + while (count--) { + if (fill) *((UInt16*)addr) = fill_value; + sendf("%08lx: %x\r\n", addr, *((UInt16*)addr)); + addr += 2; + } +} + +void console_mb(char *args) { + char *next = NULL; + UInt32 addr = strtol(args, &next, 0); + UInt32 count = 1; + UInt32 fill = 0, fill_value = 0; + if (next && *next) { + count = strtol(next, &next, 0); + } + if (next && *next) { + fill_value = strtol(next, &next, 0); + fill = 1; + } + while (count--) { + if (fill) *((UInt8*)addr) = fill_value; + sendf("%08lx: %x\r\n", addr, *((UInt8*)addr)); + addr += 1; + } +} + /* index(3) - locate character in string */ char *index(const char *s, int c) { @@ -246,6 +307,12 @@ console_help(); } else if (!strcmp(cmd, "exit")) { close_console(); + } else if (!strcmp(cmd, "mb")) { + console_mb(args); + } else if (!strcmp(cmd, "mh")) { + console_mh(args); + } else if (!strcmp(cmd, "mw")) { + console_mw(args); } else { sendf("Unknown command '%s'. Type 'help' for help.\r\n", cmd); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ph...@us...> - 2007-07-13 13:07:28
|
Revision: 1139 http://svn.sourceforge.net/hackndev/?rev=1139&view=rev Author: phiren Date: 2007-07-13 06:07:24 -0700 (Fri, 13 Jul 2007) Log Message: ----------- palmz31: updated defconfig for 2.6.21, command line is now passed from bootloader to kernel Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/configs/palmz31_defconfig linux4palm/linux/trunk/arch/arm/mach-pxa/palmz31/palmz31.c Modified: linux4palm/linux/trunk/arch/arm/configs/palmz31_defconfig =================================================================== --- linux4palm/linux/trunk/arch/arm/configs/palmz31_defconfig 2007-07-13 13:00:37 UTC (rev 1138) +++ linux4palm/linux/trunk/arch/arm/configs/palmz31_defconfig 2007-07-13 13:07:24 UTC (rev 1139) @@ -1,11 +1,14 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.20-hnd0 -# Thu Feb 22 12:26:56 2007 +# Linux kernel version: 2.6.21-hnd2 +# Sat Jul 14 00:59:10 2007 # CONFIG_ARM=y -# CONFIG_GENERIC_TIME is not set +CONFIG_SYS_SUPPORTS_APM_EMULATION=y +CONFIG_GENERIC_GPIO=y +CONFIG_GENERIC_TIME=y CONFIG_MMU=y +# CONFIG_NO_IOPORT is not set CONFIG_GENERIC_HARDIRQS=y CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_HARDIRQS_SW_RESEND=y @@ -15,6 +18,7 @@ # CONFIG_ARCH_HAS_ILOG2_U64 is not set CONFIG_GENERIC_HWEIGHT=y CONFIG_GENERIC_CALIBRATE_DELAY=y +CONFIG_ZONE_DMA=y CONFIG_ARCH_MTD_XIP=y CONFIG_VECTORS_BASE=0xffff0000 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" @@ -24,6 +28,7 @@ # CONFIG_EXPERIMENTAL=y CONFIG_BROKEN_ON_SMP=y +CONFIG_LOCK_KERNEL=y CONFIG_INIT_ENV_ARG_LIMIT=32 # @@ -41,29 +46,26 @@ # CONFIG_IKCONFIG is not set CONFIG_SYSFS_DEPRECATED=y # CONFIG_RELAY is not set -CONFIG_INITRAMFS_SOURCE="usr/zire31mmc" -CONFIG_INITRAMFS_ROOT_UID=1000 -CONFIG_INITRAMFS_ROOT_GID=1000 +CONFIG_BLK_DEV_INITRD=y +CONFIG_INITRAMFS_SOURCE="" CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_SYSCTL=y CONFIG_EMBEDDED=y -CONFIG_UID16=y -CONFIG_SYSCTL_SYSCALL=y -CONFIG_KALLSYMS=y -# CONFIG_KALLSYMS_ALL is not set -# CONFIG_KALLSYMS_EXTRA_PASS is not set +# CONFIG_UID16 is not set +# CONFIG_SYSCTL_SYSCALL is not set +# CONFIG_KALLSYMS is not set CONFIG_HOTPLUG=y CONFIG_PRINTK=y CONFIG_BUG=y -CONFIG_ELF_CORE=y +# CONFIG_ELF_CORE is not set CONFIG_BASE_FULL=y CONFIG_FUTEX=y CONFIG_EPOLL=y -CONFIG_SHMEM=y +# CONFIG_SHMEM is not set # CONFIG_SLAB is not set CONFIG_VM_EVENT_COUNTERS=y CONFIG_RT_MUTEXES=y -# CONFIG_TINY_SHMEM is not set +CONFIG_TINY_SHMEM=y CONFIG_BASE_SMALL=0 CONFIG_SLOB=y @@ -122,6 +124,7 @@ # CONFIG_ARCH_IXP2000 is not set # CONFIG_ARCH_IXP23XX is not set # CONFIG_ARCH_L7200 is not set +# CONFIG_ARCH_NS9XXX is not set # CONFIG_ARCH_PNX4008 is not set CONFIG_ARCH_PXA=y # CONFIG_ARCH_RPC is not set @@ -130,6 +133,8 @@ # CONFIG_ARCH_SHARK is not set # CONFIG_ARCH_LH7A40X is not set # CONFIG_ARCH_OMAP is not set +# CONFIG_BOARD_IRQ_MAP_SMALL is not set +# CONFIG_BOARD_IRQ_MAP_BIG is not set # # Intel PXA2xx Implementations @@ -158,14 +163,13 @@ # CONFIG_MACH_BLUEANGEL is not set # CONFIG_MACH_HTCBEETLES is not set # CONFIG_MACH_HW6900 is not set +# CONFIG_MACH_HTCATHENA is not set # CONFIG_ARCH_AXIMX3 is not set # CONFIG_ARCH_AXIMX5 is not set # CONFIG_MACH_X50 is not set # CONFIG_ARCH_ROVERP1 is not set # CONFIG_ARCH_ROVERP5P is not set # CONFIG_MACH_XSCALE_PALMLD is not set -# CONFIG_GPIOED is not set -# CONFIG_GPIOEDNG is not set # CONFIG_MACH_XSCALE_PALMTREO650 is not set # CONFIG_MACH_XSCALE_TREO680 is not set # CONFIG_MACH_T700WX is not set @@ -177,10 +181,13 @@ # CONFIG_MACH_OMAP_PALMTC is not set CONFIG_MACH_ZIRE31=y CONFIG_PALMZ31_BUTTONS=y +# CONFIG_GPIOED is not set +# CONFIG_GPIOEDNG is not set +# CONFIG_MACH_GHI270HG is not set +# CONFIG_MACH_GHI270 is not set # CONFIG_PXA_SHARPSL is not set # CONFIG_MACH_TRIZEPS4 is not set CONFIG_PXA25x=y -CONFIG_PXA_RTC_EPOCH=1970 # # Linux As Bootloader @@ -202,22 +209,14 @@ # # Processor Features # -# CONFIG_ARM_THUMB is not set +CONFIG_ARM_THUMB=y # CONFIG_CPU_DCACHE_DISABLE is not set +# CONFIG_OUTER_CACHE is not set # CONFIG_IWMMXT is not set # CONFIG_ARMBOOT_PROC is not set CONFIG_XSCALE_PMU=y -# CONFIG_KEXEC is not set # -# Compaq/iPAQ Drivers -# - -# -# Compaq/HP iPAQ Drivers -# - -# # Bus support # @@ -229,10 +228,11 @@ # # Kernel Features # -# CONFIG_PREEMPT is not set -# CONFIG_NO_IDLE_HZ is not set +CONFIG_PREEMPT=y +CONFIG_NO_IDLE_HZ=y CONFIG_HZ=100 -# CONFIG_AEABI is not set +CONFIG_AEABI=y +CONFIG_OABI_COMPAT=y # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set CONFIG_SELECT_MEMORY_MODEL=y CONFIG_FLATMEM_MANUAL=y @@ -243,6 +243,7 @@ # CONFIG_SPARSEMEM_STATIC is not set CONFIG_SPLIT_PTLOCK_CPUS=4096 # CONFIG_RESOURCES_64BIT is not set +CONFIG_ZONE_DMA_FLAG=1 CONFIG_ALIGNMENT_TRAP=y # @@ -252,6 +253,8 @@ CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_CMDLINE="mem=16m init=/linuxrc" # CONFIG_XIP_KERNEL is not set +# CONFIG_KEXEC is not set +# CONFIG_TXTOFFSET_DELTA is not set # # CPU Frequency scaling @@ -265,9 +268,8 @@ # # At least one emulation must be selected # -CONFIG_FPE_NWFPE=y -# CONFIG_FPE_NWFPE_XP is not set -# CONFIG_FPE_FASTFPE is not set +# CONFIG_FPE_NWFPE is not set +CONFIG_FPE_FASTFPE=y # # Userspace binary formats @@ -275,13 +277,11 @@ CONFIG_BINFMT_ELF=y # CONFIG_BINFMT_AOUT is not set # CONFIG_BINFMT_MISC is not set -# CONFIG_ARTHUR is not set # # Power management options # # CONFIG_PM is not set -# CONFIG_APM is not set # # Networking @@ -294,9 +294,6 @@ # CONFIG_NETDEBUG is not set # CONFIG_PACKET is not set CONFIG_UNIX=y -CONFIG_XFRM=y -# CONFIG_XFRM_USER is not set -# CONFIG_XFRM_SUB_POLICY is not set # CONFIG_NET_KEY is not set CONFIG_INET=y # CONFIG_IP_MULTICAST is not set @@ -312,9 +309,9 @@ # CONFIG_INET_IPCOMP is not set # CONFIG_INET_XFRM_TUNNEL is not set # CONFIG_INET_TUNNEL is not set -CONFIG_INET_XFRM_MODE_TRANSPORT=y -CONFIG_INET_XFRM_MODE_TUNNEL=y -CONFIG_INET_XFRM_MODE_BEET=y +# CONFIG_INET_XFRM_MODE_TRANSPORT is not set +# CONFIG_INET_XFRM_MODE_TUNNEL is not set +# CONFIG_INET_XFRM_MODE_BEET is not set # CONFIG_INET_DIAG is not set # CONFIG_TCP_CONG_ADVANCED is not set CONFIG_TCP_CONG_CUBIC=y @@ -376,7 +373,6 @@ CONFIG_STANDALONE=y # CONFIG_PREVENT_FIRMWARE_BUILD is not set # CONFIG_FW_LOADER is not set -# CONFIG_DEBUG_DRIVER is not set # CONFIG_SYS_HYPERVISOR is not set # @@ -397,6 +393,7 @@ # # Plug and Play support # +# CONFIG_PNPACPI is not set # # Block devices @@ -405,11 +402,7 @@ CONFIG_BLK_DEV_LOOP=y # CONFIG_BLK_DEV_CRYPTOLOOP is not set # CONFIG_BLK_DEV_NBD is not set -CONFIG_BLK_DEV_RAM=y -CONFIG_BLK_DEV_RAM_COUNT=16 -CONFIG_BLK_DEV_RAM_SIZE=4096 -CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 -CONFIG_BLK_DEV_INITRD=y +# CONFIG_BLK_DEV_RAM is not set # CONFIG_CDROM_PKTCDVD is not set # CONFIG_ATA_OVER_ETH is not set @@ -515,6 +508,7 @@ CONFIG_INPUT_TSDEV_SCREEN_Y=160 CONFIG_INPUT_EVDEV=y # CONFIG_INPUT_EVBUG is not set +# CONFIG_INPUT_LED_TRIGGER is not set # # Input Device Drivers @@ -531,9 +525,8 @@ # CONFIG_TOUCHSCREEN_PENMOUNT is not set # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set # CONFIG_TOUCHSCREEN_TOUCHWIN is not set -# CONFIG_TOUCHSCREEN_ADC is not set -# CONFIG_TOUCHSCREEN_ADC_DEBOUNCE is not set # CONFIG_TOUCHSCREEN_UCB1400 is not set +# CONFIG_TOUCHSCREEN_PALMTC is not set CONFIG_TOUCHSCREEN_WM97XX=y # CONFIG_TOUCHSCREEN_WM9705 is not set CONFIG_TOUCHSCREEN_WM9712=y @@ -570,6 +563,7 @@ CONFIG_SERIAL_PXA_COUNT=4 # CONFIG_SERIAL_PXA_IR is not set CONFIG_SERIAL_CORE=y +# CONFIG_RS232_SERIAL is not set CONFIG_UNIX98_PTYS=y # CONFIG_LEGACY_PTYS is not set @@ -584,9 +578,9 @@ # CONFIG_WATCHDOG is not set CONFIG_HW_RANDOM=y # CONFIG_NVRAM is not set -# CONFIG_SA1100_RTC is not set # CONFIG_DTLK is not set # CONFIG_R3964 is not set +# CONFIG_TIHTC is not set # CONFIG_RAW_DRIVER is not set # @@ -603,18 +597,18 @@ # SPI support # CONFIG_SPI=y -# CONFIG_SPI_DEBUG is not set CONFIG_SPI_MASTER=y # # SPI Master Controller Drivers # -CONFIG_SPI_BITBANG=y +# CONFIG_SPI_BITBANG is not set CONFIG_SPI_PXA2XX=y # # SPI Protocol Masters # +# CONFIG_SPI_AT25 is not set # # Dallas's 1-wire bus @@ -626,32 +620,14 @@ # # CONFIG_HWMON is not set # CONFIG_HWMON_VID is not set +# CONFIG_POWER_SUPPLY is not set # -# Hardware Monitoring - Battery -# -# CONFIG_BATTERY_MONITOR is not set - -# # L3 serial bus support # # CONFIG_L3 is not set # -# SoC drivers -# -# CONFIG_SOC_MQ11XX is not set -# CONFIG_SOC_T7L66XB is not set -# CONFIG_SOC_TC6387XB is not set -# CONFIG_SOC_TC6393XB is not set -# CONFIG_SOC_SAMCOP is not set -# CONFIG_SOC_HAMCOP is not set -# CONFIG_HTC_ASIC2 is not set -# CONFIG_HTC_ASIC3 is not set -# CONFIG_HTC_ASIC3_DS1WM is not set -# CONFIG_SOC_TSC2200 is not set - -# # Misc devices # # CONFIG_BATTCHARGE_MONITOR is not set @@ -659,12 +635,25 @@ # # Multimedia Capabilities Port drivers # -# CONFIG_MCP is not set -# CONFIG_ADC_ADS7846_SSP is not set -# CONFIG_ADC_AD7877 is not set -# CONFIG_TIFM_CORE is not set +# CONFIG_ADC is not set # +# Multifunction device drivers +# +# CONFIG_MFD_SM501 is not set +# CONFIG_HTC_ASIC2 is not set +# CONFIG_HTC_ASIC3 is not set +# CONFIG_HTC_EGPIO is not set +# CONFIG_HTC_ASIC3_DS1WM is not set +# CONFIG_SOC_SAMCOP is not set +# CONFIG_SOC_HAMCOP is not set +# CONFIG_SOC_MQ11XX is not set +# CONFIG_SOC_T7L66XB is not set +# CONFIG_SOC_TC6387XB is not set +# CONFIG_SOC_TC6393XB is not set +# CONFIG_SOC_TSC2200 is not set + +# # LED devices # # CONFIG_NEW_LEDS is not set @@ -690,15 +679,26 @@ # # Graphics support # -CONFIG_FIRMWARE_EDID=y +CONFIG_BACKLIGHT_LCD_SUPPORT=y +CONFIG_BACKLIGHT_CLASS_DEVICE=y +CONFIG_LCD_CLASS_DEVICE=y +# CONFIG_BACKLIGHT_CORGI is not set +CONFIG_BACKLIGHT_PXAPWM=y CONFIG_FB=y +CONFIG_FIRMWARE_EDID=y +# CONFIG_FB_DDC is not set CONFIG_FB_CFB_FILLRECT=y CONFIG_FB_CFB_COPYAREA=y CONFIG_FB_CFB_IMAGEBLIT=y +# CONFIG_FB_SVGALIB is not set # CONFIG_FB_MACMODES is not set # CONFIG_FB_BACKLIGHT is not set # CONFIG_FB_MODE_HELPERS is not set # CONFIG_FB_TILEBLITTING is not set + +# +# Frame buffer hardware drivers +# # CONFIG_FB_IMAGEON is not set # CONFIG_FB_S1D13XXX is not set CONFIG_FB_PXA=y @@ -717,11 +717,11 @@ CONFIG_FONTS=y # CONFIG_FONT_8x8 is not set # CONFIG_FONT_8x16 is not set -CONFIG_FONT_6x11=y +# CONFIG_FONT_6x11 is not set # CONFIG_FONT_7x14 is not set # CONFIG_FONT_PEARL_8x8 is not set # CONFIG_FONT_ACORN_8x8 is not set -# CONFIG_FONT_MINI_4x6 is not set +CONFIG_FONT_MINI_4x6=y # CONFIG_FONT_SUN8x16 is not set # CONFIG_FONT_SUN12x22 is not set # CONFIG_FONT_10x18 is not set @@ -730,13 +730,6 @@ # Logo configuration # # CONFIG_LOGO is not set -CONFIG_BACKLIGHT_LCD_SUPPORT=y -CONFIG_BACKLIGHT_CLASS_DEVICE=y -CONFIG_BACKLIGHT_DEVICE=y -CONFIG_LCD_CLASS_DEVICE=y -CONFIG_LCD_DEVICE=y -# CONFIG_BACKLIGHT_CORGI is not set -CONFIG_BACKLIGHT_PXAPWM=y # # Sound @@ -811,8 +804,9 @@ # CONFIG_USB_GADGET_NET2280 is not set CONFIG_USB_GADGET_PXA2XX=y CONFIG_USB_PXA2XX=y -CONFIG_USB_PXA2XX_SMALL=y +# CONFIG_USB_PXA2XX_SMALL is not set # CONFIG_USB_GADGET_PXA27X is not set +# CONFIG_USB_GADGET_SX2 is not set # CONFIG_USB_GADGET_GOKU is not set # CONFIG_USB_GADGET_MQ11XX is not set # CONFIG_USB_GADGET_LH7A40X is not set @@ -829,6 +823,7 @@ # CONFIG_USB_G_SERIAL is not set # CONFIG_USB_MIDI_GADGET is not set # CONFIG_USB_G_CHAR is not set +# CONFIG_USB_PXA2XX_GPIO is not set # # MMC/SD Card support @@ -837,16 +832,15 @@ # CONFIG_MMC_DEBUG is not set CONFIG_MMC_BLOCK=y CONFIG_MMC_PXA=y -# CONFIG_MMC_TIFM_SD is not set # CONFIG_MMC_TMIO is not set # CONFIG_MMC_SAMCOP is not set -# CONFIG_MMC_WBSD_PALMT3 is not set # # Real Time Clock # CONFIG_RTC_LIB=y # CONFIG_RTC_CLASS is not set +CONFIG_RTC_EPOCH=1970 # # File systems @@ -854,14 +848,8 @@ CONFIG_EXT2_FS=y # CONFIG_EXT2_FS_XATTR is not set # CONFIG_EXT2_FS_XIP is not set -CONFIG_EXT3_FS=y -CONFIG_EXT3_FS_XATTR=y -# CONFIG_EXT3_FS_POSIX_ACL is not set -# CONFIG_EXT3_FS_SECURITY is not set +# CONFIG_EXT3_FS is not set # CONFIG_EXT4DEV_FS is not set -CONFIG_JBD=y -# CONFIG_JBD_DEBUG is not set -CONFIG_FS_MBCACHE=y # CONFIG_REISERFS_FS is not set # CONFIG_JFS_FS is not set # CONFIG_FS_POSIX_ACL is not set @@ -910,6 +898,28 @@ # # CONFIG_ADFS_FS is not set # CONFIG_AFFS_FS is not set +CONFIG_AUFS=y +CONFIG_AUFS_NWKQ_DEF=4 +CONFIG_AUFS_FAKE_DM=y +CONFIG_AUFS_BRANCH_MAX_127=y +# CONFIG_AUFS_BRANCH_MAX_511 is not set +# CONFIG_AUFS_BRANCH_MAX_1023 is not set +# CONFIG_AUFS_BRANCH_MAX_32767 is not set +CONFIG_AUFS_SYSAUFS=y + +# +# INOTIFY and AUFS_HINOTIFY are disabled +# + +# +# EXPORTFS and AUFS_EXPORT are disabled +# + +# +# NFS_FS and AUFS_LHASH_PATCH are disabled +# +# CONFIG_AUFS_DEBUG is not set +# CONFIG_AUFS_COMPAT is not set # CONFIG_HFS_FS is not set # CONFIG_HFSPLUS_FS is not set # CONFIG_BEFS_FS is not set @@ -917,6 +927,10 @@ # CONFIG_EFS_FS is not set # CONFIG_CRAMFS is not set # CONFIG_SQUASHFS is not set +CONFIG_SQUASHFS_LZMA=y +# CONFIG_SQUASHFS_LZMA_EMBEDDED is not set +CONFIG_SQUASHFS_LZMA_FRAGMENT_CACHE_SIZE=3 +# CONFIG_SQUASHFS_LZMA_VMALLOC is not set # CONFIG_VXFS_FS is not set # CONFIG_HPFS_FS is not set # CONFIG_QNX4FS_FS is not set @@ -927,16 +941,8 @@ # # Network File Systems # -CONFIG_NFS_FS=y -# CONFIG_NFS_V3 is not set -# CONFIG_NFS_V4 is not set -# CONFIG_NFS_DIRECTIO is not set +# CONFIG_NFS_FS is not set # CONFIG_NFSD is not set -CONFIG_LOCKD=y -CONFIG_NFS_COMMON=y -CONFIG_SUNRPC=y -# CONFIG_RPCSEC_GSS_KRB5 is not set -# CONFIG_RPCSEC_GSS_SPKM3 is not set # CONFIG_SMB_FS is not set # CONFIG_CIFS is not set # CONFIG_NCP_FS is not set @@ -1014,28 +1020,11 @@ # CONFIG_DEBUG_FS is not set # CONFIG_HEADERS_CHECK is not set # CONFIG_SMALLOOPS is not set -CONFIG_DEBUG_KERNEL=y +# CONFIG_DEBUG_KERNEL is not set CONFIG_LOG_BUF_SHIFT=14 -# CONFIG_DETECT_SOFTLOCKUP is not set -# CONFIG_SCHEDSTATS is not set -# CONFIG_DEBUG_RT_MUTEXES is not set -# CONFIG_RT_MUTEX_TESTER is not set -# CONFIG_DEBUG_SPINLOCK is not set -# CONFIG_DEBUG_MUTEXES is not set -# CONFIG_DEBUG_RWSEMS is not set -# CONFIG_DEBUG_SPINLOCK_SLEEP is not set -# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set -# CONFIG_DEBUG_KOBJECT is not set # CONFIG_DEBUG_BUGVERBOSE is not set -# CONFIG_DEBUG_INFO is not set -# CONFIG_DEBUG_VM is not set -# CONFIG_DEBUG_LIST is not set CONFIG_FRAME_POINTER=y -# CONFIG_FORCED_INLINING is not set -# CONFIG_RCU_TORTURE_TEST is not set # CONFIG_DEBUG_USER is not set -# CONFIG_DEBUG_ERRORS is not set -# CONFIG_DEBUG_LL is not set # # Security options @@ -1056,5 +1045,7 @@ # CONFIG_CRC16 is not set CONFIG_CRC32=y # CONFIG_LIBCRC32C is not set +CONFIG_ZLIB_INFLATE=y CONFIG_PLIST=y -CONFIG_IOMAP_COPY=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT=y Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmz31/palmz31.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz31/palmz31.c 2007-07-13 13:00:37 UTC (rev 1138) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmz31/palmz31.c 2007-07-13 13:07:24 UTC (rev 1139) @@ -173,6 +173,7 @@ } MACHINE_START(ZIRE31, "Zire 31") + .boot_params = 0xa0000100, .phys_io = 0x40000000, .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, .map_io = pxa_map_io, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <med...@us...> - 2007-07-13 13:00:40
|
Revision: 1138 http://svn.sourceforge.net/hackndev/?rev=1138&view=rev Author: medaglia Date: 2007-07-13 06:00:37 -0700 (Fri, 13 Jul 2007) Log Message: ----------- Added the missing palmte2-gpio.h file... Added Paths: ----------- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-gpio.h Added: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-gpio.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-gpio.h (rev 0) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-gpio.h 2007-07-13 13:00:37 UTC (rev 1138) @@ -0,0 +1,24 @@ +/* + * include/asm-arm/arch-pxa/palmte2-gpio.h + * + * Author: Carlos Eduardo Medaglia Dyonisio <ca...@ne...> + * + */ + + +#ifndef _PALMTE2_GPIO_H_ +#define _PALMTE2_GPIO_H_ + +/* Keypad */ + +#define GPIO_NR_PALMTE2_KP_DKIN0 5 /* Notes */ +#define GPIO_NR_PALMTE2_KP_DKIN1 7 /* Tasks */ +#define GPIO_NR_PALMTE2_KP_DKIN2 11 /* Calendar */ +#define GPIO_NR_PALMTE2_KP_DKIN3 13 /* Contacts */ +#define GPIO_NR_PALMTE2_KP_DKIN4 14 /* Center */ +#define GPIO_NR_PALMTE2_KP_DKIN5 19 /* Left */ +#define GPIO_NR_PALMTE2_KP_DKIN6 20 /* Right */ +#define GPIO_NR_PALMTE2_KP_DKIN7 21 /* Down */ +#define GPIO_NR_PALMTE2_KP_DKIN8 22 /* Up */ + +#endif /* _PALMTE2_GPIO_H_ */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bob...@us...> - 2007-07-13 12:56:32
|
Revision: 1137 http://svn.sourceforge.net/hackndev/?rev=1137&view=rev Author: bobofdoom Date: 2007-07-13 05:56:30 -0700 (Fri, 13 Jul 2007) Log Message: ----------- Cocoboot: Added overflow-buffer as last resort to allocation problem (slapin's idea) Modified Paths: -------------- cocoboot/trunk/Changelog cocoboot/trunk/include/cocoboot.h cocoboot/trunk/m68k/cocoboot.c cocoboot/trunk/m68k/mainform.c Modified: cocoboot/trunk/Changelog =================================================================== --- cocoboot/trunk/Changelog 2007-07-13 11:32:23 UTC (rev 1136) +++ cocoboot/trunk/Changelog 2007-07-13 12:56:30 UTC (rev 1137) @@ -1,3 +1,4 @@ + - Added overflow-buffer as last resort to allocation problem (slapin's idea) - Cleaned up treo code (removed all #ifdefs) - Removed kernel relocation for speed and reliability (suggested by phire) - Added simple USB console. Modified: cocoboot/trunk/include/cocoboot.h =================================================================== --- cocoboot/trunk/include/cocoboot.h 2007-07-13 11:32:23 UTC (rev 1136) +++ cocoboot/trunk/include/cocoboot.h 2007-07-13 12:56:30 UTC (rev 1137) @@ -8,6 +8,7 @@ extern ArmGlobals arm_globals; void lprintf (const char *template, ...); +void log_clear(void); UInt32 call_arm(ArmStack *stack, UInt32 func); UInt32 get_tt_offset(); Modified: cocoboot/trunk/m68k/cocoboot.c =================================================================== --- cocoboot/trunk/m68k/cocoboot.c 2007-07-13 11:32:23 UTC (rev 1136) +++ cocoboot/trunk/m68k/cocoboot.c 2007-07-13 12:56:30 UTC (rev 1137) @@ -94,6 +94,14 @@ } } +void log_clear(void) +{ + char buf[16]; + FieldPtr fldP = FrmGetObjectPtr(mainform, FrmGetObjectIndex(mainform, LogField)); + buf[0] = 0; + SetFieldTextFromStr(fldP, buf, true); +} + void lprintf(const char *template, ...) { char buf[2048]; Modified: cocoboot/trunk/m68k/mainform.c =================================================================== --- cocoboot/trunk/m68k/mainform.c 2007-07-13 11:32:23 UTC (rev 1136) +++ cocoboot/trunk/m68k/mainform.c 2007-07-13 12:56:30 UTC (rev 1137) @@ -195,14 +195,31 @@ Err err=0; char loc[32]; UInt32 size = 1000; + UInt32 ftr_size; Int32 vol, bytes; lprintf("Loading %s... ", name); vol = search_image(name, loc, sizeof(loc), &size); if(vol < -1) goto out; - - if((err=FtrPtrNew (CREATOR_ID, FEATURE_NUM + n, size, image))) { - lprintf("FtrPtrNew "); + + ftr_size = size; + while (ftr_size) { + if(!(err=FtrPtrNew (CREATOR_ID, FEATURE_NUM + n, ftr_size, image))) { + break; + } + + if (ftr_size == size) { + lprintf("alloc error, trying overwrite ram. "); + } + + if (ftr_size < 102400) + ftr_size = 0; + else + ftr_size -= 102400; + } + + if (!ftr_size) { + lprintf("Gave up. Boot "); goto out; } @@ -252,7 +269,7 @@ UInt32 ret; char *cmdline; - + log_clear(); kernel_size = load_parts(0, "/zImage", &kernel); if(kernel_size) { if(use_initrd) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bob...@us...> - 2007-07-13 11:32:28
|
Revision: 1136 http://svn.sourceforge.net/hackndev/?rev=1136&view=rev Author: bobofdoom Date: 2007-07-13 04:32:23 -0700 (Fri, 13 Jul 2007) Log Message: ----------- Cocoboot: Integrated treo code (removed all ifdefs). Closes: 5 This commit adjusts the boot procedure to disable all memory protection. This means that we do not need to make a writable copy of translation table on treo devices anymore. All treo #ifdefs have been removed and the translation table base setting has been moved to mach.c as a runtime check. Modified Paths: -------------- cocoboot/trunk/Changelog cocoboot/trunk/Makefile cocoboot/trunk/arm/arm.c cocoboot/trunk/arm/boot.c cocoboot/trunk/include/arm.h cocoboot/trunk/include/cocoboot.h cocoboot/trunk/include/shared.h cocoboot/trunk/m68k/cocoboot.c cocoboot/trunk/m68k/mach.c cocoboot/trunk/m68k/mainform.c cocoboot/trunk/m68k/mem.c Modified: cocoboot/trunk/Changelog =================================================================== --- cocoboot/trunk/Changelog 2007-07-13 10:29:13 UTC (rev 1135) +++ cocoboot/trunk/Changelog 2007-07-13 11:32:23 UTC (rev 1136) @@ -1,3 +1,4 @@ + - Cleaned up treo code (removed all #ifdefs) - Removed kernel relocation for speed and reliability (suggested by phire) - Added simple USB console. Modified: cocoboot/trunk/Makefile =================================================================== --- cocoboot/trunk/Makefile 2007-07-13 10:29:13 UTC (rev 1135) +++ cocoboot/trunk/Makefile 2007-07-13 11:32:23 UTC (rev 1136) @@ -12,7 +12,7 @@ all: cocoboot.prc install: cocoboot.prc - pilot-xfer -p /dev/tts/USB0 -i cocoboot.prc + pilot-xfer -p /dev/ttyUSB1 -i cocoboot.prc cocoboot.prc: arm-objs m68k-objs gui iTbl.bin build-prc -n Cocoboot -c CcBt $(EXECS) *.bin Modified: cocoboot/trunk/arm/arm.c =================================================================== --- cocoboot/trunk/arm/arm.c 2007-07-13 10:29:13 UTC (rev 1135) +++ cocoboot/trunk/arm/arm.c 2007-07-13 11:32:23 UTC (rev 1136) @@ -264,16 +264,9 @@ phys = (fld & 0xfff00000) | (virt & 0x000fffff); } else if ((fld & FLD_MASK) == FLD_COARSE) { /* 2nd level, yuck. Here's hoping we can access it. */ -#ifdef TREO650 - /*Treo 650 tables are in a peice of memory in a 1:1 - *mapping*/ sld_p = (UInt32*) ( ((fld & 0xFFFFFc00) | - ((virt & 0xfF000) >> 10))); -#else - sld_p = (UInt32*) ( ((fld & 0xFFFFFc00) | ((virt & 0xfF000) >> 10)) - - g->ram_base); -#endif + - g->tt_offset); sld = *sld_p; /* crash? */ if((sld & 3) == 2) { /* small page */ phys = (sld & 0xFFFFF000) | (virt & 0xFFF); @@ -285,16 +278,9 @@ } else { /* FIXME: THIS IS WRONG!! */ /* 2nd level, yuck. Here's hoping we can access it. */ -#ifdef TREO650 - /*Treo 650 tables are in a peice of memory in a 1:1 - *mapping*/ sld_p = (UInt32*) ( ((fld & 0xFFFFF000) | - ((virt & 0xff000) >> 10))); -#else - sld_p = (UInt32*) ( ((fld & 0xFFFFF000) | ((virt & 0xff000) >> 10)) - - g->ram_base); -#endif + - g->tt_offset); sld = *sld_p; /* crash? */ if((sld & 3) == 2) { /* small page */ phys = (sld & 0xFFFFF000) | (virt & 0xFFF); @@ -334,13 +320,7 @@ UInt32 map_mem(ArmGlobals *g, UInt32 phys) { -#ifdef TREO650 - /*The treo650 ttb is mapped read only, so we have to modify - *a copy*/ - UInt32 *tt = (UInt32*) g->new_vttb; -#else UInt32 *tt = (UInt32*) g->vttb; -#endif UInt32 i, rec; UInt32 va; @@ -363,89 +343,10 @@ return NULL; } -#ifdef TREO650 -/* The treo650 ttb is in a 1:1 mapping, but cruically it's Readonly - * we still have access to the TTB registers though as we're in System - * mode, so we copy the current TTB to a buffer - * and then we can modify that, this code copies the ttb and then - * switches the mmu to the new copy - */ -void copy_map_and_switch(ArmGlobals *g) -{ - UInt32 *src=(UInt32 *) g->vttb; - UInt32 *dst=(UInt32 *) g->new_vttb; - UInt32 ttbr0; - int i; - - - for (i=0;i<4096;++i) { - dst[i]=src[i]; - } - - asm("mrc p15, 0, r0, c2, c0, 0\nmov %0, r0": "=r"(ttbr0): :"r0"); - - - ttbr0&=0x1fUL; - ttbr0|=g->new_pttb; - - asm volatile ( "mov r0, %0\n" - "mcr p15, 0, r0, c2, c0, 0" - : - : "r"(ttbr0) - : "r0" ); - - - /* invalidate TLB */ - asm volatile ("mov r0, #0"); - asm volatile ("mcr p15, 0, r0, c8, c7, 0"); - - CPWAIT - - - for(i=0; i<100000; i++); - - -} - -/* Restore the MMU to look at the palmos TTB */ -void restore_map(ArmGlobals *g) -{ - UInt32 ttbr0; - int i; - - asm("mrc p15, 0, r0, c2, c0, 0\nmov %0, r0": "=r"(ttbr0): :"r0"); - - ttbr0&=0x1fUL; - ttbr0|=g->pttb; - - asm volatile ( "mov r0, %0\n" - "mcr p15, 0, r0, c2, c0, 0" - : - : "r"(ttbr0) - : "r0" ); - - - /* invalidate TLB */ - asm volatile ("mov r0, #0"); - asm volatile ("mcr p15, 0, r0, c8, c7, 0"); - - CPWAIT - - for(i=0; i<100000; i++); -} -#endif - void map(ArmGlobals *g, UInt32 phys, UInt32 virt) { int i; -#ifdef TREO650 - /*On the treo650 use the copy of the ttb, not the real - *ttb which is read only - */ - UInt32 *tt = (UInt32*) g->new_vttb; -#else UInt32 *tt = (UInt32*) g->vttb; -#endif UInt32 idx = virt >> 20; tt[idx] = (phys & 0xFFF00000) | 0xc1a; Modified: cocoboot/trunk/arm/boot.c =================================================================== --- cocoboot/trunk/arm/boot.c 2007-07-13 10:29:13 UTC (rev 1135) +++ cocoboot/trunk/arm/boot.c 2007-07-13 11:32:23 UTC (rev 1136) @@ -23,17 +23,12 @@ #define MACH_TYPE_T3XSCALE 829 -#ifdef TREO650 #define TAG_OFFSET 0x100 -#define INITRD_OFFSET 0x1500000 -#else -#define TAG_OFFSET 0x100 #define INITRD_OFFSET 0x0400000 -#endif #define T3_INITRD_OFFSET 0x1500000 -static void jump_to_kernel(UInt32 kernel_base, UInt32 tag_base, UInt32 mach) +static void jump_to_kernel(void *kernel_base, UInt32 tag_base, UInt32 mach) { asm volatile ( "mov r0, #0\n" "mov r1, %0\n" /* mach id */ @@ -98,10 +93,6 @@ kernel = (void *)virt_to_phys(g, (UInt32) kernel); cmdline = (char *)virt_to_phys(g, (UInt32) cmdline); -#ifdef TREO650 - g->new_pttb=virt_to_phys(g,g->new_vttb); -#endif - if(initrd) initrd = (void *)virt_to_phys(g, (UInt32) initrd); pg = (void *)virt_to_phys(g, (UInt32) g); @@ -130,18 +121,14 @@ irq_off(); -#ifdef TREO650 - copy_map_and_switch(g); -#endif + /* Disable memory protection (page table is read-only on treos) */ + asm volatile ("mcr p15, 0, %0, c3, c3, 0" : : "r"(0xffffffff) ); /* Map the page containing pphys_jump to identity */ map(g, (UInt32)pphys_jump, (UInt32)pphys_jump); /* make sure the mapping worked */ if(*(UInt32*)(vphys_jump) != *(UInt32*)(pphys_jump)) { -#ifdef TREO650 - restore_map(g); -#endif irq_on(); return 0xc01d; } @@ -184,14 +171,10 @@ #ifdef MOVE_FRAMEBUFFER map_lcd(); #endif -#ifdef TREO650 - setup_treo650_cpu(); -#else /* do CPU-specific configuration (like interrupt masking) */ if (pg->cpu & CPUV_INTEL) { setup_xscale_cpu(); } -#endif if (pg->mach_num==MACH_TYPE_T3XSCALE){ initrd_offset=T3_INITRD_OFFSET; Modified: cocoboot/trunk/include/arm.h =================================================================== --- cocoboot/trunk/include/arm.h 2007-07-13 10:29:13 UTC (rev 1135) +++ cocoboot/trunk/include/arm.h 2007-07-13 11:32:23 UTC (rev 1136) @@ -9,16 +9,7 @@ UInt32 virt_to_phys(ArmGlobals *g, UInt32 virt); void map(ArmGlobals *g, UInt32 phys, UInt32 virt); -#ifdef TREO650 -void copy_map_and_switch(ArmGlobals *g); -void restore_map(ArmGlobals *g); -#endif - - -#ifdef TREO650 /*cpu.c*/ -void setup_treo650_cpu(void); -#endif void setup_xscale_cpu(void); /* boot.c */ Modified: cocoboot/trunk/include/cocoboot.h =================================================================== --- cocoboot/trunk/include/cocoboot.h 2007-07-13 10:29:13 UTC (rev 1135) +++ cocoboot/trunk/include/cocoboot.h 2007-07-13 11:32:23 UTC (rev 1136) @@ -10,6 +10,7 @@ void lprintf (const char *template, ...); UInt32 call_arm(ArmStack *stack, UInt32 func); +UInt32 get_tt_offset(); UInt32 get_linux_mach_id(); char *get_mach_name(); void SetFieldTextFromStr(FieldPtr fldP, char *strP, Boolean redraw); Modified: cocoboot/trunk/include/shared.h =================================================================== --- cocoboot/trunk/include/shared.h 2007-07-13 10:29:13 UTC (rev 1135) +++ cocoboot/trunk/include/shared.h 2007-07-13 11:32:23 UTC (rev 1136) @@ -26,15 +26,16 @@ UInt32 pttb; UInt32 vttb; - UInt32 new_vttb; - UInt32 new_pttb; - UInt32 cpu; + UInt32 tt_offset; + UInt32 ram_base; UInt32 ram_size; UInt32 mach_num; + + UInt32 pad[4]; } ArmGlobals; void push_uint32(ArmStack *stack, UInt32 n); Modified: cocoboot/trunk/m68k/cocoboot.c =================================================================== --- cocoboot/trunk/m68k/cocoboot.c 2007-07-13 10:29:13 UTC (rev 1135) +++ cocoboot/trunk/m68k/cocoboot.c 2007-07-13 11:32:23 UTC (rev 1136) @@ -130,6 +130,7 @@ arm_globals.ram_base = EndianFix32(get_ram_base()); arm_globals.ram_size = EndianFix32(get_ram_size()); arm_globals.mach_num = EndianFix32(835); + arm_globals.tt_offset = get_tt_offset(); } /** Modified: cocoboot/trunk/m68k/mach.c =================================================================== --- cocoboot/trunk/m68k/mach.c 2007-07-13 10:29:13 UTC (rev 1135) +++ cocoboot/trunk/m68k/mach.c 2007-07-13 11:32:23 UTC (rev 1136) @@ -16,6 +16,7 @@ */ #include <PalmOS.h> +#include "mem.h" struct Machine { UInt32 palmos_id; @@ -81,3 +82,21 @@ check_mach(); return mach_table[mach].name; } + +/** + * Offset to subtract from translation table entries. + * On treo's translation table is 1:1 mapped so this is zero. + * On other devices the translation table stuff starts at 0x0 so we + * subtract ram_base. + */ +UInt32 get_tt_offset() +{ + check_mach(); + switch (mach_table[mach].linux_id) { + case 909: /* Treo 650 */ + case 1230: /* Treo 680 */ + return 0; + default: + return get_ram_base(); + } +} Modified: cocoboot/trunk/m68k/mainform.c =================================================================== --- cocoboot/trunk/m68k/mainform.c 2007-07-13 10:29:13 UTC (rev 1135) +++ cocoboot/trunk/m68k/mainform.c 2007-07-13 11:32:23 UTC (rev 1136) @@ -262,48 +262,19 @@ if(!use_initrd || initrd_size) { cmdline = read_command_line(); - //PrefSetAppPreferences ('CcBt', 1, 0, cmdline, 256, true); - //lprintf("Fare thee well 68k world!\n"); - arm_globals.mach_num = EndianFix32(read_mach_id()); -#ifdef TREO650 - { - extern void *MemGluePtrNew(UInt32); - void *ttb=NULL; - UInt32 ttb_aligned; - - ret=65536UL; - ttb=MemGluePtrNew(ret); - - ttb_aligned=(UInt32)ttb; - ttb_aligned+=(UInt32) 16383; - ttb_aligned&=~(UInt32) 16383; - - arm_globals.new_vttb = EndianFix32(ttb_aligned); - } -#endif - push_uint32(arm_stack, (UInt32)cmdline); push_uint32(arm_stack, initrd_size); push_uint32(arm_stack, (UInt32)initrd); push_uint32(arm_stack, kernel_size); push_uint32(arm_stack, (UInt32)kernel); - ret = call_arm(arm_stack, ARM_boot_linux); /* we're back?! Boot must have failed. */ lprintf("Returned: %lx\n", ret); -#if 0 - { - char msg[1024]; - sprintf(msg, "0x%08lx, 0x%08lx, 0x%08lx", ret,(UInt32) ttb, ttb_aligned); - FrmCustomAlert(InfoAlert, "result:", msg, " "); - } -#endif - } if (initrd_size) FtrPtrFree(CREATOR_ID, FEATURE_NUM + 1); @@ -311,7 +282,6 @@ if (kernel_size) FtrPtrFree(CREATOR_ID, FEATURE_NUM); - //lprintf("Boot aborted.\n"); } Boolean mainform_menu_event(Int16 id) Modified: cocoboot/trunk/m68k/mem.c =================================================================== --- cocoboot/trunk/m68k/mem.c 2007-07-13 10:29:13 UTC (rev 1135) +++ cocoboot/trunk/m68k/mem.c 2007-07-13 11:32:23 UTC (rev 1136) @@ -81,11 +81,7 @@ /* FIXME: Hack alert. We're making an assumption about where PalmOS maps the first part of RAM.. * Is there a better way of doing this? we'll need to hardcode the value for T|T2 */ -#ifdef TREO650 - return get_ttb(); -#else - return get_ttb() - get_ram_base(); -#endif + return get_ttb() - get_tt_offset(); } UInt32 virt_to_phys(UInt32 virt) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bob...@us...> - 2007-07-13 10:29:21
|
Revision: 1135 http://svn.sourceforge.net/hackndev/?rev=1135&view=rev Author: bobofdoom Date: 2007-07-13 03:29:13 -0700 (Fri, 13 Jul 2007) Log Message: ----------- Cocoboot: Removed kernel relocation. (suggested by phire) Skipping the step of relocating the kernel to a known address should solve the boot problem on T3 and Z31, stop us clobbering the framebuffer and make boot times slightly faster. Modified Paths: -------------- cocoboot/trunk/Changelog cocoboot/trunk/arm/boot.c Modified: cocoboot/trunk/Changelog =================================================================== --- cocoboot/trunk/Changelog 2007-07-13 08:46:48 UTC (rev 1134) +++ cocoboot/trunk/Changelog 2007-07-13 10:29:13 UTC (rev 1135) @@ -1,4 +1,4 @@ - - Changed kernel load address from 0x4000 to 0x800000. + - Removed kernel relocation for speed and reliability (suggested by phire) - Added simple USB console. version 0.2: Modified: cocoboot/trunk/arm/boot.c =================================================================== --- cocoboot/trunk/arm/boot.c 2007-07-13 08:46:48 UTC (rev 1134) +++ cocoboot/trunk/arm/boot.c 2007-07-13 10:29:13 UTC (rev 1135) @@ -31,7 +31,6 @@ #define INITRD_OFFSET 0x0400000 #endif -#define KERNEL_OFFSET 0x0800000 #define T3_INITRD_OFFSET 0x1500000 static void jump_to_kernel(UInt32 kernel_base, UInt32 tag_base, UInt32 mach) @@ -90,7 +89,6 @@ if(!kernel || !cmdline) { return 0xc0ffee; } - UInt32 kernel_offset; UInt32 initrd_offset; /* since we're going to turn off the MMU, we need to translate @@ -195,7 +193,6 @@ } #endif - kernel_offset=KERNEL_OFFSET; if (pg->mach_num==MACH_TYPE_T3XSCALE){ initrd_offset=T3_INITRD_OFFSET; } else { @@ -206,16 +203,13 @@ setup_atags(pg->ram_base + TAG_OFFSET, pg->ram_base, pg->ram_size, cmdline, pg->ram_base + initrd_offset, initrd_size); - /* copy kernel into place */ - copy_image((void*)(pg->ram_base + kernel_offset), kernel, kernel_size); - /* copy initrd into place */ if (initrd) { copy_image((void*)(pg->ram_base + initrd_offset), initrd, initrd_size); } /* bring on the penguin! */ - jump_to_kernel(pg->ram_base + kernel_offset, pg->ram_base + TAG_OFFSET, pg->mach_num); + jump_to_kernel(kernel, pg->ram_base + TAG_OFFSET, pg->mach_num); return 0xe4; /* sadly, this return will never be executed */ } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bob...@us...> - 2007-07-13 08:46:50
|
Revision: 1134 http://svn.sourceforge.net/hackndev/?rev=1134&view=rev Author: bobofdoom Date: 2007-07-13 01:46:48 -0700 (Fri, 13 Jul 2007) Log Message: ----------- Cocoboot: Changed kernel load address from 0x4000 to 0x800000. This prevents the kernel image from clobbering the areas POS uses for DMA such as the framebuffer and audiobuffer, making booting more reliable (and making it work at all) on some devices. Modified Paths: -------------- cocoboot/trunk/Changelog cocoboot/trunk/arm/boot.c Modified: cocoboot/trunk/Changelog =================================================================== --- cocoboot/trunk/Changelog 2007-07-13 01:06:35 UTC (rev 1133) +++ cocoboot/trunk/Changelog 2007-07-13 08:46:48 UTC (rev 1134) @@ -1,3 +1,4 @@ + - Changed kernel load address from 0x4000 to 0x800000. - Added simple USB console. version 0.2: Modified: cocoboot/trunk/arm/boot.c =================================================================== --- cocoboot/trunk/arm/boot.c 2007-07-13 01:06:35 UTC (rev 1133) +++ cocoboot/trunk/arm/boot.c 2007-07-13 08:46:48 UTC (rev 1134) @@ -24,16 +24,14 @@ #define MACH_TYPE_T3XSCALE 829 #ifdef TREO650 -#define KERNEL_OFFSET 0x0800000 #define TAG_OFFSET 0x100 #define INITRD_OFFSET 0x1500000 #else -#define KERNEL_OFFSET 0x8000 #define TAG_OFFSET 0x100 #define INITRD_OFFSET 0x0400000 #endif -#define T3_KERNEL_OFFSET 0x0800000 +#define KERNEL_OFFSET 0x0800000 #define T3_INITRD_OFFSET 0x1500000 static void jump_to_kernel(UInt32 kernel_base, UInt32 tag_base, UInt32 mach) @@ -197,11 +195,10 @@ } #endif + kernel_offset=KERNEL_OFFSET; if (pg->mach_num==MACH_TYPE_T3XSCALE){ - kernel_offset=T3_KERNEL_OFFSET; initrd_offset=T3_INITRD_OFFSET; } else { - kernel_offset=KERNEL_OFFSET; initrd_offset=INITRD_OFFSET; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-07-12 23:32:00
|
Revision: 1132 http://svn.sourceforge.net/hackndev/?rev=1132&view=rev Author: marex_z71 Date: 2007-07-12 16:31:57 -0700 (Thu, 12 Jul 2007) Log Message: ----------- PalmLD: make some function names unique Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-07-12 22:40:55 UTC (rev 1131) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-07-12 23:31:57 UTC (rev 1132) @@ -44,7 +44,7 @@ #include "../generic.h" -static void palm_backlight_power(int on) +static void palmld_backlight_power(int on) { if(on) { /* setup backlight PWM settings */ @@ -410,7 +410,7 @@ .lccr3 = LCCR3_PixClkDiv(2) | LCCR3_HorSnchL | LCCR3_VrtSnchL | LCCR3_PixFlEdg | LCCR3_Bpp(4), - .pxafb_backlight_power = palm_backlight_power, + .pxafb_backlight_power = palmld_backlight_power, }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-07-12 22:40:58
|
Revision: 1131 http://svn.sourceforge.net/hackndev/?rev=1131&view=rev Author: marex_z71 Date: 2007-07-12 15:40:55 -0700 (Thu, 12 Jul 2007) Log Message: ----------- PalmLD: New Nitro-CPUFREQ-Express defconfig ;-) Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig Modified: linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig =================================================================== --- linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig 2007-07-12 22:21:23 UTC (rev 1130) +++ linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig 2007-07-12 22:40:55 UTC (rev 1131) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Linux kernel version: 2.6.21-hnd2 -# Wed Jun 27 17:44:15 2007 +# Thu Jul 12 23:49:34 2007 # CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y @@ -194,6 +194,8 @@ # CONFIG_PXA_SHARPSL is not set # CONFIG_MACH_TRIZEPS4 is not set CONFIG_PXA27x=y +CONFIG_PXA27x_VOLTAGE=y +CONFIG_PXA27x_VOLTAGE_MAX158xx=m # # Linux As Bootloader @@ -244,7 +246,7 @@ # Kernel Features # # CONFIG_PREEMPT is not set -# CONFIG_NO_IDLE_HZ is not set +CONFIG_NO_IDLE_HZ=y CONFIG_HZ=100 CONFIG_AEABI=y CONFIG_OABI_COMPAT=y @@ -274,7 +276,20 @@ # # CPU Frequency scaling # -# CONFIG_CPU_FREQ is not set +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_TABLE=y +# CONFIG_CPU_FREQ_DEBUG is not set +CONFIG_CPU_FREQ_STAT=y +# CONFIG_CPU_FREQ_STAT_DETAILS is not set +# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set +CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_PERFORMANCE=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y +CONFIG_CPU_FREQ_PXA=y +CONFIG_PXA25x_ALTERNATE_FREQS=y # # Floating point emulation @@ -884,10 +899,10 @@ # # CONFIG_HWMON is not set # CONFIG_HWMON_VID is not set -CONFIG_POWER_SUPPLY=y +CONFIG_POWER_SUPPLY=m # CONFIG_POWER_SUPPLY_DEBUG is not set -CONFIG_PDA_POWER=y -CONFIG_APM_POWER=y +CONFIG_PDA_POWER=m +CONFIG_APM_POWER=m # CONFIG_BATTERY_DS2760 is not set # @@ -919,7 +934,6 @@ # CONFIG_SOC_T7L66XB is not set # CONFIG_SOC_TC6387XB is not set # CONFIG_SOC_TC6393XB is not set -# CONFIG_SOC_TSC2101 is not set # CONFIG_SOC_TSC2200 is not set # This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-07-12 22:21:24
|
Revision: 1130 http://svn.sourceforge.net/hackndev/?rev=1130&view=rev Author: marex_z71 Date: 2007-07-12 15:21:23 -0700 (Thu, 12 Jul 2007) Log Message: ----------- PalmLD, PalmTX, PalmTT5, PalmZ72, PalmT650: add ability to use cpufreq without crippled "milky" display Modified Paths: -------------- linux4palm/linux/trunk/drivers/video/pxafb.c Modified: linux4palm/linux/trunk/drivers/video/pxafb.c =================================================================== --- linux4palm/linux/trunk/drivers/video/pxafb.c 2007-07-12 22:19:52 UTC (rev 1129) +++ linux4palm/linux/trunk/drivers/video/pxafb.c 2007-07-12 22:21:23 UTC (rev 1130) @@ -1415,11 +1415,15 @@ #endif #ifdef CONFIG_CPU_FREQ -#ifndef CONFIG_MACH_T3XSCALE +#if !(defined(CONFIG_MACH_T3XSCALE) || defined(CONFIG_MACH_XSCALE_PALMLD) || \ + defined(CONFIG_MACH_XSCALE_PALMTX) || defined(CONFIG_MACH_PALMZ72) || \ + defined(CONFIG_MACH_XSCALE_PALMTT5) || \ + defined(CONFIG_MACH_XSCALE_PALMTREO650)) fbi->freq_transition.notifier_call = pxafb_freq_transition; fbi->freq_policy.notifier_call = pxafb_freq_policy; cpufreq_register_notifier(&fbi->freq_transition, CPUFREQ_TRANSITION_NOTIFIER); cpufreq_register_notifier(&fbi->freq_policy, CPUFREQ_POLICY_NOTIFIER); + #endif #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-07-12 22:19:54
|
Revision: 1129 http://svn.sourceforge.net/hackndev/?rev=1129&view=rev Author: marex_z71 Date: 2007-07-12 15:19:52 -0700 (Thu, 12 Jul 2007) Log Message: ----------- PalmLD: rework LCCR settings to constants Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-07-12 18:35:06 UTC (rev 1128) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-07-12 22:19:52 UTC (rev 1129) @@ -26,6 +26,7 @@ #include <asm/arch/mmc.h> #include <asm/arch/pxafb.h> #include <asm/arch/pxa-regs.h> +#include <asm/arch/bitfield.h> #include <asm/arch/irda.h> #include <asm/arch/palmld-gpio.h> #include <asm/arch/pxa27x_keyboard.h> @@ -394,17 +395,20 @@ .upper_margin = 7, //5, .lower_margin = 1, //3, -// .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 palmld_lcd_screen = { .modes = palmld_lcd_modes, .num_modes = ARRAY_SIZE(palmld_lcd_modes), - /* fixme: this is a hack, use constants instead. */ - .lccr0 = 0x7b008f8, - /* Palm sets 4700004, but with 4700002 we eliminate the annoying screen noise */ - .lccr3 = 0x4700002, + .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_LDM | LCCR0_SFM | + LCCR0_IUM | LCCR0_EFM | LCCR0_Act | LCCR0_QDM | + LCCR0_BM | LCCR0_OUM | LCCR0_RDSTM | LCCR0_CMDIM | + LCCR0_OUC | LCCR0_LDDALT, + /* Set divisor to 2 to get rid of screen whining */ + .lccr3 = LCCR3_PixClkDiv(2) | LCCR3_HorSnchL | LCCR3_VrtSnchL | + LCCR3_PixFlEdg | LCCR3_Bpp(4), .pxafb_backlight_power = palm_backlight_power, }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-07-12 18:35:08
|
Revision: 1128 http://svn.sourceforge.net/hackndev/?rev=1128&view=rev Author: marex_z71 Date: 2007-07-12 11:35:06 -0700 (Thu, 12 Jul 2007) Log Message: ----------- PalmTT5: New defconfig Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/configs/palmt5_defconfig Modified: linux4palm/linux/trunk/arch/arm/configs/palmt5_defconfig =================================================================== --- linux4palm/linux/trunk/arch/arm/configs/palmt5_defconfig 2007-07-10 19:43:40 UTC (rev 1127) +++ linux4palm/linux/trunk/arch/arm/configs/palmt5_defconfig 2007-07-12 18:35:06 UTC (rev 1128) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.21-hnd0 -# Mon May 28 00:02:13 2007 +# Linux kernel version: 2.6.21-hnd2 +# Thu Jul 12 20:16:06 2007 # CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y @@ -187,6 +187,8 @@ # CONFIG_MACH_ZIRE31 is not set CONFIG_GPIOED=m CONFIG_GPIOEDNG=m +# CONFIG_MACH_GHI270HG is not set +# CONFIG_MACH_GHI270 is not set # CONFIG_PXA_SHARPSL is not set # CONFIG_MACH_TRIZEPS4 is not set CONFIG_PXA27x=y @@ -225,9 +227,18 @@ # # PCCARD (PCMCIA/CardBus) support # -# CONFIG_PCCARD is not set +CONFIG_PCCARD=m +# CONFIG_PCMCIA_DEBUG is not set +CONFIG_PCMCIA=m +CONFIG_PCMCIA_LOAD_CIS=y +CONFIG_PCMCIA_IOCTL=y # +# PC-card bridges +# +CONFIG_PCMCIA_PXA2XX=m + +# # Kernel Features # # CONFIG_PREEMPT is not set @@ -433,7 +444,11 @@ CONFIG_BT_HCIUART=m CONFIG_BT_HCIUART_H4=y # CONFIG_BT_HCIUART_BCSP is not set +# CONFIG_BT_HCIDTL1 is not set +# CONFIG_BT_HCIBT3C is not set CONFIG_BT_BCM2035UART=m +# CONFIG_BT_HCIBLUECARD is not set +# CONFIG_BT_HCIBTUART is not set # CONFIG_BT_HCIVHCI is not set # CONFIG_IEEE80211 is not set @@ -631,8 +646,14 @@ # Wireless LAN (non-hamradio) # # CONFIG_NET_RADIO is not set +# CONFIG_LIBERTAS is not set # +# PCMCIA network device support +# +# CONFIG_NET_PCMCIA is not set + +# # Wan interfaces # # CONFIG_WAN is not set @@ -676,6 +697,7 @@ CONFIG_INPUT_TSDEV_SCREEN_Y=480 CONFIG_INPUT_EVDEV=y # CONFIG_INPUT_EVBUG is not set +# CONFIG_INPUT_LED_TRIGGER is not set # # Input Device Drivers @@ -731,6 +753,7 @@ # Serial drivers # CONFIG_SERIAL_8250=m +# CONFIG_SERIAL_8250_CS is not set CONFIG_SERIAL_8250_NR_UARTS=4 CONFIG_SERIAL_8250_RUNTIME_UARTS=4 # CONFIG_SERIAL_8250_EXTENDED is not set @@ -760,10 +783,16 @@ # CONFIG_WATCHDOG is not set CONFIG_HW_RANDOM=m # CONFIG_NVRAM is not set - # CONFIG_DTLK is not set # CONFIG_R3964 is not set # CONFIG_TIHTC is not set + +# +# PCMCIA character devices +# +# CONFIG_SYNCLINK_CS is not set +# CONFIG_CARDMAN_4000 is not set +# CONFIG_CARDMAN_4040 is not set # CONFIG_RAW_DRIVER is not set # @@ -792,14 +821,11 @@ # # CONFIG_HWMON is not set # CONFIG_HWMON_VID is not set - -# -# Hardware Monitoring - external power and batteries -# -CONFIG_EXTERNAL_POWER=m -CONFIG_BATTERY=m +CONFIG_POWER_SUPPLY=m +# CONFIG_POWER_SUPPLY_DEBUG is not set CONFIG_PDA_POWER=m CONFIG_APM_POWER=m +# CONFIG_BATTERY_DS2760 is not set # # L3 serial bus support @@ -822,6 +848,7 @@ # CONFIG_MFD_SM501 is not set # CONFIG_HTC_ASIC2 is not set # CONFIG_HTC_ASIC3 is not set +# CONFIG_HTC_EGPIO is not set # CONFIG_HTC_ASIC3_DS1WM is not set # CONFIG_SOC_SAMCOP is not set # CONFIG_SOC_HAMCOP is not set @@ -829,7 +856,6 @@ # CONFIG_SOC_T7L66XB is not set # CONFIG_SOC_TC6387XB is not set # CONFIG_SOC_TC6393XB is not set -# CONFIG_SOC_TSC2101 is not set # CONFIG_SOC_TSC2200 is not set # @@ -952,6 +978,12 @@ CONFIG_SND_PXA2XX_AC97=m # +# PCMCIA devices +# +# CONFIG_SND_VXPOCKET is not set +# CONFIG_SND_PDAUDIOCF is not set + +# # SoC audio support # # CONFIG_SND_SOC is not set @@ -1106,6 +1138,7 @@ # # CONFIG_ADFS_FS is not set # CONFIG_AFFS_FS is not set +# CONFIG_AUFS is not set # CONFIG_HFS_FS is not set # CONFIG_HFSPLUS_FS is not set # CONFIG_BEFS_FS is not set This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bob...@us...> - 2007-07-10 19:44:33
|
Revision: 1126 http://svn.sourceforge.net/hackndev/?rev=1126&view=rev Author: bobofdoom Date: 2007-07-10 06:06:41 -0700 (Tue, 10 Jul 2007) Log Message: ----------- Cocoboot: Started implementing basic console which will be similar to Haret/P but accessed via USB cable from PC. Modified Paths: -------------- cocoboot/trunk/Changelog cocoboot/trunk/include/cocoboot.h cocoboot/trunk/include/cocoboot.rcp cocoboot/trunk/include/cocoboot_r.h cocoboot/trunk/m68k/cocoboot.c cocoboot/trunk/m68k/mainform.c Modified: cocoboot/trunk/Changelog =================================================================== --- cocoboot/trunk/Changelog 2007-07-10 10:24:09 UTC (rev 1125) +++ cocoboot/trunk/Changelog 2007-07-10 13:06:41 UTC (rev 1126) @@ -1,3 +1,5 @@ + - Added simple USB console. + version 0.2: - Fixed booting on Palm T|T3 (Marek Vasut) Modified: cocoboot/trunk/include/cocoboot.h =================================================================== --- cocoboot/trunk/include/cocoboot.h 2007-07-10 10:24:09 UTC (rev 1125) +++ cocoboot/trunk/include/cocoboot.h 2007-07-10 13:06:41 UTC (rev 1126) @@ -13,3 +13,4 @@ UInt32 get_linux_mach_id(); char *get_mach_name(); void SetFieldTextFromStr(FieldPtr fldP, char *strP, Boolean redraw); +void open_console(); Modified: cocoboot/trunk/include/cocoboot.rcp =================================================================== --- cocoboot/trunk/include/cocoboot.rcp 2007-07-10 10:24:09 UTC (rev 1125) +++ cocoboot/trunk/include/cocoboot.rcp 2007-07-10 13:06:41 UTC (rev 1126) @@ -25,9 +25,12 @@ MENUITEM "Memory" MenuItemMem MENUITEM "LCD registers (PXA only)" MenuItemLCD MENUITEM "LCD test (PXA only)" MenuItemLCDTest - MENUITEM "Boot Linux" MenuItemBootLinux MENUITEM "Dump MMU" MenuItemDumpMMU END + PULLDOWN "Tools" + BEGIN + MENUITEM "USB Console" MenuItemConsole + END END FORM ID MainForm AT (0 0 160 160) NOFRAME USABLE MENUID MainFormMenu HELPID GnuGpl MODAL Modified: cocoboot/trunk/include/cocoboot_r.h =================================================================== --- cocoboot/trunk/include/cocoboot_r.h 2007-07-10 10:24:09 UTC (rev 1125) +++ cocoboot/trunk/include/cocoboot_r.h 2007-07-10 13:06:41 UTC (rev 1126) @@ -15,6 +15,7 @@ #define MenuItemLCDTest 1003 #define MenuItemBootLinux 1004 #define MenuItemDumpMMU 1005 +#define MenuItemConsole 1006 #define ErrorAlert 1000 #define InfoAlert 1001 Modified: cocoboot/trunk/m68k/cocoboot.c =================================================================== --- cocoboot/trunk/m68k/cocoboot.c 2007-07-10 10:24:09 UTC (rev 1125) +++ cocoboot/trunk/m68k/cocoboot.c 2007-07-10 13:06:41 UTC (rev 1126) @@ -21,6 +21,7 @@ #include <MemoryMgr.h> //#include <string.h> #include <stdio.h> +#include <string.h> #include <VFSMgr.h> #include "cocoboot.h" @@ -33,6 +34,9 @@ ArmStack arm_stack[20]; ArmGlobals arm_globals; FormPtr mainform; +UInt16 usb_port; +char console_buffer[128]; +int console_buffer_fill=0; /* A couple of these functions are originally from GaruxNG: * GaruxNG is Copyright (C) 2006 SCL (sc...@he...) @@ -158,15 +162,136 @@ return ret; } +void sendf(const char *template, ...) +{ + char buf[2048]; + Err err; + + va_list ap; + + va_start(ap, template); + vsprintf(buf, template, ap); + va_end(ap); + + if (usb_port) + SrmSend(usb_port, buf, strlen(buf), &err); +} + + +void open_console(void) { + char *ready_text = "[Cocoboot ready]\r\n"; + Err err; + + /* open USB serial port */ + usb_port = 0; + console_buffer_fill = 0; + SrmOpen(serPortCradleUSBPort, 115200, &usb_port); + if (usb_port) { + SrmSend(usb_port, ready_text, strlen(ready_text), &err); + sendf("Cocoboot> "); + SrmSendFlush(usb_port); + } +} + +void close_console() +{ + Err err; + char *exit_text = "[Cocoboot exiting]\r\n"; + if (usb_port) { + SrmSend(usb_port, exit_text, strlen(exit_text), &err), + SrmClose(usb_port); + usb_port = 0; + } +} + +void console_help(void) +{ + sendf("Available commands:\r\n"); + sendf(" exit close the console\r\n"); + sendf(" help show this help\r\n"); + sendf(" ping [text] reply with pong text\r\n"); +} + +/* index(3) - locate character in string */ +char *index(const char *s, int c) +{ + while (*s) { + if(*s == c) return s; + s++; + } + return NULL; +} + +void handle_command(char *cmd) +{ + char *args = index(cmd, ' '); + if (args) { + *(args++) = 0; + } else { + args = cmd + strlen(cmd); + } + + if (!strcmp(cmd, "ping")) { + sendf("pong %s\r\n", args); + } else if (!strcmp(cmd, "help")) { + console_help(); + } else if (!strcmp(cmd, "exit")) { + close_console(); + } else { + sendf("Unknown command '%s'. Type 'help' for help.\r\n", cmd); + } + sendf("Cocoboot> "); +} + +void handle_console(void) +{ + Err err; + UInt32 bytes = 0; + int i; + + SrmReceiveCheck(usb_port, &bytes); + if (!bytes) return; + + if (bytes > sizeof(console_buffer)) + bytes = sizeof(console_buffer); + + /* new data is available, grab it and echo it! */ + bytes = SrmReceive(usb_port, console_buffer + console_buffer_fill, bytes, 1000, &err); + SrmSend(usb_port, console_buffer + console_buffer_fill, bytes, &err); + SrmSendFlush(usb_port); + console_buffer_fill += bytes; + + EvtResetAutoOffTimer(); + + /* do we have a full command? */ + for (i=0; i < console_buffer_fill; i++) { + if (console_buffer[i] == '\r' || console_buffer[i] == '\n') { + sendf("\n"); + /* yes! process it */ + console_buffer[i] = 0; + if (i+1 < console_buffer_fill && console_buffer[i+1] == '\n') + console_buffer[++i] = 0; + handle_command(console_buffer); + + /* pop the command off */ + i++; + memmove(console_buffer, console_buffer + i, console_buffer_fill - i); + console_buffer_fill -= i; + i = 0; + } + } +} + void event_loop() { EventType event; UInt16 err; FormPtr form; Int16 form_id; + int delay=200; do { - EvtGetEvent(&event, 200); + EvtGetEvent(&event, delay); if (SysHandleEvent(&event)) continue; @@ -186,12 +311,18 @@ FrmDrawForm(FrmGetActiveForm()); } + if (usb_port) { + handle_console(); + delay = 10; + } + FrmDispatchEvent(&event); } while (event.eType != appStopEvent); } UInt16 start_app() { + arm_stack[0] = 0; FrmGotoForm(MainForm); @@ -201,6 +332,7 @@ void stop_app() { + close_console(); } UInt32 PilotMain(UInt16 launch_code, MemPtr cmd_PBP, UInt16 launch_flags) Modified: cocoboot/trunk/m68k/mainform.c =================================================================== --- cocoboot/trunk/m68k/mainform.c 2007-07-10 10:24:09 UTC (rev 1125) +++ cocoboot/trunk/m68k/mainform.c 2007-07-10 13:06:41 UTC (rev 1126) @@ -67,6 +67,12 @@ } +void usb_console(void) +{ + open_console(); + FrmCustomAlert(InfoAlert, "USB Console is now enabled.", "Connect to /dev/ttyUSBn on PC.", " "); +} + #define LCCR0_LDM (1<<3) #define LCCR0_DIS (1<<10) @@ -326,7 +332,9 @@ case MenuItemDumpMMU: dump_mmu(); return true; - + case MenuItemConsole: + usb_console(); + return true; } return false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bob...@us...> - 2007-07-10 19:44:25
|
Revision: 1121 http://svn.sourceforge.net/hackndev/?rev=1121&view=rev Author: bobofdoom Date: 2007-07-08 07:34:34 -0700 (Sun, 08 Jul 2007) Log Message: ----------- TOOLS: serial-loader: Added ETA and transfer speed to quickload uploader. Modified Paths: -------------- linux4palm/tools/serial-loader/ql.py Modified: linux4palm/tools/serial-loader/ql.py =================================================================== --- linux4palm/tools/serial-loader/ql.py 2007-07-08 14:27:46 UTC (rev 1120) +++ linux4palm/tools/serial-loader/ql.py 2007-07-08 14:34:34 UTC (rev 1121) @@ -23,6 +23,9 @@ # output the size of the image sys.stdout.write(struct.pack('<I', len(image))) +start = time.time() + +imgsize = len(image) # write out image i = 0 for c in image: @@ -31,6 +34,7 @@ # print progress percentage i += 1 - if (i % 1000) == 0: - sys.stderr.write('%f\n' % (i / float(len(image)) * 100)) + if (i % 10000) == 0: + speed = i/(time.time() - start) + sys.stderr.write('%.1f%% %.2f K/s ETA: %.0fs\n' % ((i / float(len(image)) * 100), (speed / 1024), (imgsize-i) / speed)) sys.stderr.flush() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bob...@us...> - 2007-07-10 19:44:23
|
Revision: 1118 http://svn.sourceforge.net/hackndev/?rev=1118&view=rev Author: bobofdoom Date: 2007-07-07 22:29:36 -0700 (Sat, 07 Jul 2007) Log Message: ----------- PalmT650: Invented missing palmt650-init.h file. Added Paths: ----------- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-init.h Added: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-init.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-init.h (rev 0) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-init.h 2007-07-08 05:29:36 UTC (rev 1118) @@ -0,0 +1,23 @@ +/* + * palmt650-init.h + * + * Init values for Palm Treo 650 smartphone. + * + * Author: Alex Osborne <bob...@gm...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ + +#ifndef _INCLUDE_PALMT650_INIT_H_ + +#define _INCLUDE_PALMT650_INIT_H_ + +/* LCD backlight */ +#define PALMT650_MAX_INTENSITY 0x1ad +#define PALMT650_DEFAULT_INTENSITY 0xe5 +#define PALMT650_LIMIT_MASK 0x7f + +#endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bob...@us...> - 2007-07-10 19:44:21
|
Revision: 1120 http://svn.sourceforge.net/hackndev/?rev=1120&view=rev Author: bobofdoom Date: 2007-07-08 07:27:46 -0700 (Sun, 08 Jul 2007) Log Message: ----------- TOOLS: hndinit: Sleep a second to stop slow-detecting being missed on boot. Removed fake (testing) rootfs entries from menu. Modified Paths: -------------- linux4palm/tools/hndinit/hndinit.c Modified: linux4palm/tools/hndinit/hndinit.c =================================================================== --- linux4palm/tools/hndinit/hndinit.c 2007-07-08 09:43:48 UTC (rev 1119) +++ linux4palm/tools/hndinit/hndinit.c 2007-07-08 14:27:46 UTC (rev 1120) @@ -239,6 +239,9 @@ long blocks; char devname[256]; + einfo("Sleeping a second to allow disks to catchup..."); + sleep(1); + einfo("Scanning partitions..."); f = fopen("/proc/partitions", "r"); @@ -426,10 +429,6 @@ determine_model(); scan_partitions(); - add_rootfs("mmcblk0p1", "Fake-Entry.rootfs.ext2"); - add_rootfs("mmcblk0p1", "Fake-Entry2.rootfs.ext2"); - add_rootfs("hda4", "Fake-Entry3.rootfs.ext2"); - if (!rootfs_list) { eerror("No rootfs was found!"); ewarn(""); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-07-10 19:43:43
|
Revision: 1127 http://svn.sourceforge.net/hackndev/?rev=1127&view=rev Author: sleep_walker Date: 2007-07-10 12:43:40 -0700 (Tue, 10 Jul 2007) Log Message: ----------- palmtt3: fixed sound quality problem in tsc2101 ;) Modified Paths: -------------- linux4palm/linux/trunk/drivers/mfd/tsc2101.c Modified: linux4palm/linux/trunk/drivers/mfd/tsc2101.c =================================================================== --- linux4palm/linux/trunk/drivers/mfd/tsc2101.c 2007-07-10 13:06:41 UTC (rev 1126) +++ linux4palm/linux/trunk/drivers/mfd/tsc2101.c 2007-07-10 19:43:40 UTC (rev 1127) @@ -172,45 +172,46 @@ printk("Rate: %d ", rate); if (rate >= 48000) - { div = 7; fs_44 = 1; } + { div = 0; fs_44 = 0; } else if (rate >= 44100) - { div = 7; fs_44 = 0; } + { div = 0; fs_44 = 1; } else if (rate >= 32000) - { div = 6; fs_44 = 1; } + { div = 1; fs_44 = 0; } else if (rate >= 29400) - { div = 6; fs_44 = 0; } + { div = 1; fs_44 = 1; } else if (rate >= 24000) - { div = 5; fs_44 = 1; } + { div = 2; fs_44 = 0; } else if (rate >= 22050) - { div = 5; fs_44 = 0; } + { div = 2; fs_44 = 1; } else if (rate >= 16000) - { div = 4; fs_44 = 1; } + { div = 3; fs_44 = 0; } else if (rate >= 14700) + { div = 3; fs_44 = 1; } + else if (rate >= 12000) { div = 4; fs_44 = 0; } - else if (rate >= 12000) - { div = 3; fs_44 = 1; } else if (rate >= 11025) - { div = 3; fs_44 = 0; } + { div = 4; fs_44 = 1; } else if (rate >= 9600) - { div = 2; fs_44 = 1; } + { div = 5; fs_44 = 0; } else if (rate >= 8820) - { div = 2; fs_44 = 0; } + { div = 5; fs_44 = 1; } else if (rate >= 8727) - { div = 1; fs_44 = 1; } + { div = 6; fs_44 = 0; } else if (rate >= 8018) - { div = 1; fs_44 = 0; } + { div = 6; fs_44 = 1; } else if (rate >= 8000) - { div = 0; fs_44 = 1; } + { div = 7; fs_44 = 0; } else - { div = 0; fs_44 = 0; } + { div = 7; fs_44 = 1; } /* wait for any frame to complete */ udelay(125); /* Set AC1 */ data = tsc2101_regread(snd_data, TSC2101_REG_AUDIOCON1); - /*Clear prev settings */ + /* Clear prev settings */ data &= ~(TSC2101_DACFS(0xF) | TSC2101_ADCFS(0xF)); + data |= TSC2101_DACFS(div) | TSC2101_ADCFS(div); tsc2101_regwrite(snd_data, TSC2101_REG_AUDIOCON1, data); @@ -657,8 +658,8 @@ /* enable touch detection, 84usec precharge time, 32 usec sense time */ tsc2101_regwrite(devdata, TSC2101_REG_CONFIG, 0x08); - /* 3 msec conversion delays */ - tsc2101_regwrite(devdata, TSC2101_REG_DELAY, 0x0900); + /* 3 msec conversion delays, 12 MHz MClk */ + tsc2101_regwrite(devdata, TSC2101_REG_DELAY, 0x0900 | 0xc); /* * TSC2101-controlled conversions This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-07-10 10:24:18
|
Revision: 1125 http://svn.sourceforge.net/hackndev/?rev=1125&view=rev Author: sleep_walker Date: 2007-07-10 03:24:09 -0700 (Tue, 10 Jul 2007) Log Message: ----------- palmtt3: fixed tsc2101 and sound dependencies, GPIO header update Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c linux4palm/linux/trunk/drivers/input/touchscreen/Kconfig linux4palm/linux/trunk/drivers/mfd/Kconfig linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtt3-gpio.h linux4palm/linux/trunk/sound/arm/Kconfig Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c 2007-07-09 22:35:05 UTC (rev 1124) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c 2007-07-10 10:24:09 UTC (rev 1125) @@ -396,6 +396,7 @@ PWER |= PWER_GPIO11; /* memo/todo/center */ PWER |= PWER_GPIO12; /* HotSync button on cradle */ PWER |= PWER_GPIO14; /* power button */ + PWER |= PWER_GPIO15; /* Bluetooth wakeup? */ PFER = PWER_GPIO0 | PWER_GPIO1 | PWER_GPIO11 | PWER_GPIO14; PEDR = PWER_GPIO0 | PWER_GPIO1; Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c 2007-07-09 22:35:05 UTC (rev 1124) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c 2007-07-10 10:24:09 UTC (rev 1125) @@ -18,10 +18,14 @@ void bcm2035_bt_reset(int on) { printk(KERN_NOTICE "Switch BT reset %d\n", on); - if (on) - SET_GPIO(GPIO_NR_PALMTT3_RESET, 1); - else - SET_GPIO(GPIO_NR_PALMTT3_RESET, 0 ); + if (on) { + /* FIXME: it's just template, GPIOs are not the right ones */ + pxa_gpio_mode(GPIO83_NSSP_TX); + pxa_gpio_mode(GPIO84_NSSP_TX); + } + else { + + } } EXPORT_SYMBOL(bcm2035_bt_reset); Modified: linux4palm/linux/trunk/drivers/input/touchscreen/Kconfig =================================================================== --- linux4palm/linux/trunk/drivers/input/touchscreen/Kconfig 2007-07-09 22:35:05 UTC (rev 1124) +++ linux4palm/linux/trunk/drivers/input/touchscreen/Kconfig 2007-07-10 10:24:09 UTC (rev 1125) @@ -56,9 +56,8 @@ config TOUCHSCREEN_TSC2101 tristate "TI TSC2101 touchscreen input driver" - depends on (MACH_HX2750 || MACH_T3XSCALE) && INPUT && INPUT_TOUCHSCREEN - select SOC_TSC2101 - default y + depends on (MACH_HX2750 || MACH_T3XSCALE) && INPUT_TOUCHSCREEN + default y help Say Y here to enable the driver for the touchscreen on the iPAQ hx2750 series of PDAs or Palm Tungsten|T3. Modified: linux4palm/linux/trunk/drivers/mfd/Kconfig =================================================================== --- linux4palm/linux/trunk/drivers/mfd/Kconfig 2007-07-09 22:35:05 UTC (rev 1124) +++ linux4palm/linux/trunk/drivers/mfd/Kconfig 2007-07-10 10:24:09 UTC (rev 1125) @@ -104,6 +104,10 @@ config SOC_TSC2101 tristate "Support for TI TSC2101 Touchscreen and Audio Codec" + depends TOUCHSCREEN_TSC2101 && SOUND && SND && SND_PXA2xx_I2SOUND +# depends TOUCHSCREEN_TSC2101 +# select SND_PXA2xx_I2SOUND + default m help Support for TI TSC2101 Touchscreen and Audio Codec Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtt3-gpio.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtt3-gpio.h 2007-07-09 22:35:05 UTC (rev 1124) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtt3-gpio.h 2007-07-10 10:24:09 UTC (rev 1125) @@ -28,19 +28,15 @@ #define PALMTT3_GPIO_PENDOWN (37) #define PALMTT3_IRQ_GPIO_PENDOWN IRQ_GPIO(PALMTT3_GPIO_PENDOWN) -#define GPIO_NR_PALMTT3_ICP_RXD 46 // Infrared receive pin -#define GPIO_NR_PALMTT3_ICP_TXD 47 // Infrared transmit pin #define GPIO_NR_PALMTT3_IR_DISABLE 36 -#define GPIO_NR_PALMTT3_ICP_RXD_MD (GPIO_NR_PALMTT3_ICP_RXD | GPIO_ALT_FN_1_IN) -#define GPIO_NR_PALMTT3_ICP_TXD_MD (GPIO_NR_PALMTT3_ICP_TXD | GPIO_ALT_FN_2_OUT) #define GPIO_NR_PALMTT3_USB_POWER 53 #define GPIO_NR_PALMTT3_PUC_USB_POWER 85 #define GPIO_NR_PALMTT3_USB_DETECT 9 #define GPIO_NR_PALMTT3_TPS65010_BT_POWER 4 -#define GPIO_NR_PALMTT3_RESET 84 +#define GPIO_NR_PALMTT3_BT_WAKEUP 15 #define GET_GPIO(gpio) (GPLR(gpio) & GPIO_bit(gpio)) Modified: linux4palm/linux/trunk/sound/arm/Kconfig =================================================================== --- linux4palm/linux/trunk/sound/arm/Kconfig 2007-07-09 22:35:05 UTC (rev 1124) +++ linux4palm/linux/trunk/sound/arm/Kconfig 2007-07-10 10:24:09 UTC (rev 1125) @@ -108,6 +108,7 @@ config SND_PXA2xx_I2SOUND tristate "PXA2 I2Sound support" + depends on SND select SND_PCM config SND_PXA2XX_PCM This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-07-09 22:35:13
|
Revision: 1124 http://svn.sourceforge.net/hackndev/?rev=1124&view=rev Author: sleep_walker Date: 2007-07-09 15:35:05 -0700 (Mon, 09 Jul 2007) Log Message: ----------- palmtt3: fixing IrDA, removing useless dependencies in mmc-card led trigger Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c linux4palm/linux/trunk/drivers/leds/Kconfig linux4palm/linux/trunk/include/linux/leds.h Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c 2007-07-08 20:04:44 UTC (rev 1123) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c 2007-07-09 22:35:05 UTC (rev 1124) @@ -42,6 +42,7 @@ #include <asm/arch/palmtt3-gpio.h> #include <asm/arch/tps65010.h> +//#include "palmtt3_bt.h" #include "../generic.h" #define DEBUG 1 @@ -214,7 +215,6 @@ /*** IRDA ***/ - static void palmtt3_irda_transceiver_mode(struct device *dev, int mode) { unsigned long flags; @@ -222,21 +222,19 @@ local_irq_save(flags); if (mode & IR_SIRMODE){ - printk (KERN_INFO "IrDA: setting mode to SIR\n"); + printk ("IrDA: setting mode to SIR\n"); } else if (mode & IR_FIRMODE){ - printk (KERN_INFO "IrDA: setting mode to FIR\n"); + printk ("IrDA: setting mode to FIR\n"); } if (mode & IR_OFF){ - printk (KERN_INFO "IrDA: turning OFF\n"); + printk ("IrDA: turning OFF\n"); SET_GPIO(GPIO_NR_PALMTT3_IR_DISABLE, 1); + } else { printk (KERN_INFO "IrDA: turning ON\n"); SET_GPIO(GPIO_NR_PALMTT3_IR_DISABLE, 0); - SET_GPIO(GPIO46_STRXD_MD, 1); - mdelay(30); - SET_GPIO(GPIO46_STRXD_MD, 0); } local_irq_restore(flags); @@ -244,7 +242,7 @@ static struct pxaficp_platform_data palmtt3_ficp_platform_data = { - .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, + .transceiver_cap = IR_SIRMODE | IR_OFF, .transceiver_mode = palmtt3_irda_transceiver_mode, }; @@ -334,10 +332,6 @@ struct platform_pxa_serial_funcs palmtt3_hwuart = { .configure = palmtt3_hwuart_configure, -/* - .set_txrx = palmtt3_hwuart_set_txrx, - .get_txrx = NULL, -*/ .suspend = palmtt3_hwuart_suspend, .resume = palmtt3_hwuart_resume, }; Modified: linux4palm/linux/trunk/drivers/leds/Kconfig =================================================================== --- linux4palm/linux/trunk/drivers/leds/Kconfig 2007-07-08 20:04:44 UTC (rev 1123) +++ linux4palm/linux/trunk/drivers/leds/Kconfig 2007-07-09 22:35:05 UTC (rev 1124) @@ -197,8 +197,9 @@ If unsure, say Y. config LEDS_TRIGGER_MMC_CARD - bool "LED MMC Card Trigger" - depends on LEDS_TRIGGERS && ARCH_PXA && (MMC_PXA || MMC_WBSD_PALMT3) + tristate "LED MMC Card Trigger" + depends LEDS_TRIGGERS + default m help This allows LEDs to be controlled by MMC card activity on Intel PXA 25x/26x/27x MMC interface . If unsure, say Y. Modified: linux4palm/linux/trunk/include/linux/leds.h =================================================================== --- linux4palm/linux/trunk/include/linux/leds.h 2007-07-08 20:04:44 UTC (rev 1123) +++ linux4palm/linux/trunk/include/linux/leds.h 2007-07-09 22:35:05 UTC (rev 1124) @@ -174,7 +174,7 @@ #else #define ledtrig_ide_activity() do {} while(0) #endif -#ifdef CONFIG_LEDS_TRIGGER_MMC_CARD +#if defined(CONFIG_LEDS_TRIGGER_MMC_CARD) || defined(CONFIG_LEDS_TRIGGER_MMC_CARD_MODULE) extern void ledtrig_mmc_activity(void); #else #define ledtrig_mmc_activity() do {} while(0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-07-08 20:04:47
|
Revision: 1123 http://svn.sourceforge.net/hackndev/?rev=1123&view=rev Author: sleep_walker Date: 2007-07-08 13:04:44 -0700 (Sun, 08 Jul 2007) Log Message: ----------- palmtt3: forgoten file again :o) Added Paths: ----------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c Added: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c (rev 0) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c 2007-07-08 20:04:44 UTC (rev 1123) @@ -0,0 +1,48 @@ +/* arch/arm/mach-pxa/palmtt3/palmtt3_bt.c + * + * Palm Tungsten|T3 bluetooth driver + * + * copied from palmz72.c and changed bit + * + * Tomas Cech <Tom...@ma...> + */ + +#include <linux/module.h> +#include <linux/kernel.h> +#include <asm/arch/palmtt3-gpio.h> +#include <asm/arch/tps65010.h> +#include <linux/platform_device.h> +#include <asm/arch/serial.h> + + +void bcm2035_bt_reset(int on) +{ + printk(KERN_NOTICE "Switch BT reset %d\n", on); + if (on) + SET_GPIO(GPIO_NR_PALMTT3_RESET, 1); + else + SET_GPIO(GPIO_NR_PALMTT3_RESET, 0 ); +} +EXPORT_SYMBOL(bcm2035_bt_reset); + + +void bcm2035_bt_power(int on) +{ + printk(KERN_NOTICE "Switch BT power %d\n", on); + if (on) + tps65010_set_gpio_out_value(GPIO_NR_PALMTT3_TPS65010_BT_POWER,1); + else + tps65010_set_gpio_out_value(GPIO_NR_PALMTT3_TPS65010_BT_POWER,0); +} +EXPORT_SYMBOL(bcm2035_bt_power); + + +/* +static struct platform_pxa_serial_funcs bcm2035_pxa_bt_funcs = { + .configure = bcm2035_bt_configure, +}; +EXPORT_SYMBOL(bcm2035_pxa_bt_funcs); +*/ +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Tomas Cech <Tom...@ma...>"); +MODULE_DESCRIPTION("Palm T|T3 bluetooth driver"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sle...@us...> - 2007-07-08 19:54:28
|
Revision: 1122 http://svn.sourceforge.net/hackndev/?rev=1122&view=rev Author: sleep_walker Date: 2007-07-08 12:54:23 -0700 (Sun, 08 Jul 2007) Log Message: ----------- palmtt3: BT separation, TPS65010 can be module again Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Kconfig linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Makefile linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtt3-gpio.h Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Kconfig =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Kconfig 2007-07-08 14:34:34 UTC (rev 1121) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Kconfig 2007-07-08 19:54:23 UTC (rev 1122) @@ -16,6 +16,14 @@ help Adds battery driver support +config PALMTT3_BLUETOOTH + tristate "Bluetooth support for Palm Tungsten|T3" + depends on MACH_T3XSCALE && BT && TPS65010 && BT_BCM2035UART + default m if TPS65010=m && BT_BCM2035UART=m + default y if TPS65010=y || BT_BCM2035UART=y + help + Adds bluetooth support for Palm Tungsten|T3 + config PALMTT3_FBKEYBOARD bool "On-screen keyboard (BROKEN)" depends on PALMTT3_TSC2101 Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Makefile =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Makefile 2007-07-08 14:34:34 UTC (rev 1121) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Makefile 2007-07-08 19:54:23 UTC (rev 1122) @@ -5,4 +5,5 @@ obj-$(CONFIG_MACH_T3XSCALE) += palmtt3.o obj-$(CONFIG_PALMTT3_BUTTONS) += palmtt3_buttons.o obj-$(CONFIG_PALMTT3_BATTERY) += palmtt3_battery.o +obj-$(CONFIG_PALMTT3_BLUETOOTH) += palmtt3_bt.o obj-$(CONFIG_PALMTT3_FBKEYBOARD) += palmtt3_fbkeyb.o \ No newline at end of file Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c 2007-07-08 14:34:34 UTC (rev 1121) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c 2007-07-08 19:54:23 UTC (rev 1122) @@ -42,11 +42,8 @@ #include <asm/arch/palmtt3-gpio.h> #include <asm/arch/tps65010.h> - #include "../generic.h" -// FIXME move this to include/asm/arch/palmtt3.h some time - #define DEBUG 1 /*** FRAMEBUFFER ***/ @@ -345,29 +342,8 @@ .resume = palmtt3_hwuart_resume, }; -/* Bluetooth */ - -void bcm2035_bt_reset(int on) -{ - printk(KERN_NOTICE "Switch BT reset %d\n", on); - if (on) - SET_GPIO(GPIO_NR_PALMTT3_RESET, 1); - else - SET_GPIO(GPIO_NR_PALMTT3_RESET, 0 ); -} -EXPORT_SYMBOL(bcm2035_bt_reset); - -void bcm2035_bt_power(int on) -{ - printk(KERN_NOTICE "Switch BT power %d\n", on); - if (on) - tps65010_set_gpio_out_value(GPIO_NR_PALMTT3_TPS65010_BT_POWER,1); - else - tps65010_set_gpio_out_value(GPIO_NR_PALMTT3_TPS65010_BT_POWER,0); -} -EXPORT_SYMBOL(bcm2035_bt_power); - - +/*** Bluetooth ***/ +#ifdef CONFIGURE_PALMTT3_BLUETOOTH struct bcm2035_bt_funcs { void (*configure) ( int state ); }; @@ -392,9 +368,8 @@ .platform_data = &bt_funcs, }, }; +#endif //CONFIG_PALMTT3_BLUETOOTH - - /*** Suspend/Resume ***/ #ifdef CONFIG_PM static long int _PM_backup[3]; @@ -461,7 +436,9 @@ &palmtt3_backlight_device, &palmtt3_led_device, &palmtt3_power_button, +#ifdef CONFIGURE_PALMTT3_BLUETOOTH &bcm2035_bt, +#endif }; @@ -475,7 +452,9 @@ set_pxa_fb_info(&palmtt3_lcd_screen); pxa_set_udc_info(&palmtt3_udc_mach_info); pxa_set_hwuart_info(&palmtt3_hwuart); +#ifdef CONFIGURE_PALMTT3_BLUETOOTH pxa_set_btuart_info(&bcm2035_pxa_bt_funcs); +#endif platform_add_devices (devices, ARRAY_SIZE (devices)); } Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtt3-gpio.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtt3-gpio.h 2007-07-08 14:34:34 UTC (rev 1121) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtt3-gpio.h 2007-07-08 19:54:23 UTC (rev 1122) @@ -19,6 +19,8 @@ #ifndef _INCLUDE_PALMTT3_GPIO_H_ #define _INCLUDE_PALMTT3_GPIO_H_ +#include <asm/arch/pxa-regs.h> +#include <asm/arch/gpio.h> #define T3_TPS65010_GPIO 14 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |