Send commitlog mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:
1. r4025 -
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-bt/src
([EMAIL PROTECTED])
2. r4026 - trunk/src/target/u-boot/patches ([EMAIL PROTECTED])
3. r4027 - trunk/src/target/u-boot/patches
([EMAIL PROTECTED])
4. r4028 - trunk/src/target/opkg ([EMAIL PROTECTED])
--- Begin Message ---
Author: graeme
Date: 2008-02-07 16:19:20 +0100 (Thu, 07 Feb 2008)
New Revision: 4025
Modified:
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-bt/src/openmoko-panel-bt.c
Log:
Update panel-applet-bt to check for different paths used in 2.6.22.5 and
2.6.24.
Modified:
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-bt/src/openmoko-panel-bt.c
===================================================================
---
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-bt/src/openmoko-panel-bt.c
2008-02-06 16:08:19 UTC (rev 4024)
+++
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-bt/src/openmoko-panel-bt.c
2008-02-07 15:19:20 UTC (rev 4025)
@@ -23,6 +23,7 @@
#include <stdio.h>
#define BT_POWERON_FILENAME
"/sys/class/i2c-dev/i2c-0/device/0-0008/gta01-pm-bt.0/power_on"
+#define BT_POWERON_FILENAME2
"/sys/class/i2c-dev/i2c-0/device/0-0008/neo1973-pm-bt.0/power_on"
typedef struct {
MokoPanelApplet *mokoapplet;
@@ -35,6 +36,7 @@
FILE * f = fopen(BT_POWERON_FILENAME, "r+");
int val;
+ if (f == NULL) f = fopen(BT_POWERON_FILENAME2, "r+");
if (f == NULL) return -1;
fscanf(f, "%i", &val);
@@ -47,6 +49,7 @@
{
FILE * f = fopen(BT_POWERON_FILENAME, "w");
+ if (f == NULL) f = fopen(BT_POWERON_FILENAME2, "w");
if (f == NULL) return -1;
fprintf(f, "%i\n", val);
--- End Message ---
--- Begin Message ---
Author: werner
Date: 2008-02-08 09:46:02 +0100 (Fri, 08 Feb 2008)
New Revision: 4026
Modified:
trunk/src/target/u-boot/patches/enable-splash-bmp.patch
trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
trunk/src/target/u-boot/patches/uboot-gta02.patch
Log:
Brought back use of SHORTSWAP32, since we need it for the GTA02 u-boot console.
This undoes the HWSWP change in revision 3774.
GTA01 splash screen images have to be generated without -swap, like before
revision 3774.
uboot-20061030-neo1973.patch:
- include/configs/neo1973_gta01.h: set VIDEO_FB_16BPP_PIXEL_SWAP
- board/neo1973/common/jbt6k74.c (board_video_init): enable HWSWP in LCDCON5
enable-splash-bmp.patch:
- include/configs/neo1973_gta01.h: adapted for context changes
uboot-gta02.patch:
- include/configs/neo1973_gta02.h: set VIDEO_FB_16BPP_PIXEL_SWAP
Modified: trunk/src/target/u-boot/patches/enable-splash-bmp.patch
===================================================================
--- trunk/src/target/u-boot/patches/enable-splash-bmp.patch 2008-02-07
15:19:20 UTC (rev 4025)
+++ trunk/src/target/u-boot/patches/enable-splash-bmp.patch 2008-02-08
08:46:02 UTC (rev 4026)
@@ -10,7 +10,7 @@
===================================================================
--- u-boot.orig/drivers/video/cfb_console.c
+++ u-boot/drivers/video/cfb_console.c
-@@ -191,6 +191,7 @@
+@@ -195,6 +195,7 @@
#if defined(CONFIG_CMD_BMP) || defined(CONFIG_SPLASH_SCREEN)
#include <watchdog.h>
#include <bmp_layout.h>
@@ -22,7 +22,7 @@
===================================================================
--- u-boot.orig/include/configs/neo1973_gta01.h
+++ u-boot/include/configs/neo1973_gta01.h
-@@ -81,6 +81,7 @@
+@@ -82,6 +82,7 @@
#define CONFIG_CMD_ENV
#define CONFIG_CMD_BOOTD
#define CONFIG_CMD_CONSOLE
@@ -30,7 +30,7 @@
#define CONFIG_CMD_ASKENV
#define CONFIG_CMD_RUN
#define CONFIG_CMD_ECHO
-@@ -237,19 +238,21 @@
+@@ -239,12 +240,15 @@
/* we have a board_late_init() function */
#define BOARD_LATE_INIT 1
@@ -40,13 +40,14 @@
#define CONFIG_CFB_CONSOLE
#define CONFIG_VIDEO_LOGO
+#define CONFIG_SPLASH_SCREEN
-+#define CFG_VIDEO_LOGO_MAX_SIZE (640*480+1024+100) /* 100 = slack */
++#define CFG_VIDEO_LOGO_MAX_SIZE (640*480+1024+100) /* 100 =
slack */
+#define CONFIG_VIDEO_BMP_GZIP
#define CONFIG_VGA_AS_SINGLE_DEVICE
+#define CONFIG_CMD_UNZIP
- #define VIDEO_KBD_INIT_FCT 0
- #define VIDEO_TSTC_FCT serial_tstc
+ #define VIDEO_FB_16BPP_PIXEL_SWAP
+
+@@ -253,7 +257,6 @@
#define VIDEO_GETC_FCT serial_getc
#define LCD_VIDEO_ADDR 0x33d00000
Modified: trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
2008-02-07 15:19:20 UTC (rev 4025)
+++ trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
2008-02-08 08:46:02 UTC (rev 4026)
@@ -8,7 +8,7 @@
===================================================================
--- u-boot.orig/Makefile
+++ u-boot/Makefile
-@@ -2323,6 +2323,14 @@
+@@ -2417,6 +2417,14 @@
sbc2410x_config: unconfig
@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
@@ -873,7 +873,7 @@
+ lcd->LCDCON2 = 0x019fc3c1;
+ lcd->LCDCON3 = 0x0039df67;
+ lcd->LCDCON4 = 0x00000007;
-+ lcd->LCDCON5 = 0x0001cf08;
++ lcd->LCDCON5 = 0x0001cf09;
+ lcd->LPCSEL = 0x00000000;
+}
Index: u-boot/board/neo1973/common/jbt6k74.h
@@ -1908,7 +1908,7 @@
===================================================================
--- /dev/null
+++ u-boot/include/configs/neo1973_gta01.h
-@@ -0,0 +1,255 @@
+@@ -0,0 +1,257 @@
+/*
+ * (C) Copyright 2006 OpenMoko, Inc.
+ * Author: Harald Welte <[EMAIL PROTECTED]>
@@ -2150,6 +2150,8 @@
+#define CONFIG_VIDEO_LOGO
+#define CONFIG_VGA_AS_SINGLE_DEVICE
+
++#define VIDEO_FB_16BPP_PIXEL_SWAP
++
+#define VIDEO_KBD_INIT_FCT 0
+#define VIDEO_TSTC_FCT serial_tstc
+#define VIDEO_GETC_FCT serial_getc
@@ -2250,8 +2252,8 @@
COBJS-y += ns87308.o
+COBJS-y += pcf50606.o
COBJS-y += status_led.o
+ COBJS-$(CONFIG_FSL_LAW) += fsl_law.o
- COBJS := $(COBJS-y)
Index: u-boot/drivers/misc/pcf50606.c
===================================================================
--- /dev/null
Modified: trunk/src/target/u-boot/patches/uboot-gta02.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-gta02.patch 2008-02-07 15:19:20 UTC
(rev 4025)
+++ trunk/src/target/u-boot/patches/uboot-gta02.patch 2008-02-08 08:46:02 UTC
(rev 4026)
@@ -609,7 +609,7 @@
===================================================================
--- /dev/null
+++ u-boot/include/configs/neo1973_gta02.h
-@@ -0,0 +1,284 @@
+@@ -0,0 +1,286 @@
+/*
+ * (C) Copyright 2007 OpenMoko, Inc.
+ * Author: Harald Welte <[EMAIL PROTECTED]>
@@ -873,6 +873,8 @@
+#define CONFIG_VGA_AS_SINGLE_DEVICE
+#define CONFIG_CMD_UNZIP
+
++#define VIDEO_FB_16BPP_PIXEL_SWAP
++
+#define VIDEO_KBD_INIT_FCT 0
+#define VIDEO_TSTC_FCT serial_tstc
+#define VIDEO_GETC_FCT serial_getc
--- End Message ---
--- Begin Message ---
Author: laforge
Date: 2008-02-08 10:28:19 +0100 (Fri, 08 Feb 2008)
New Revision: 4027
Removed:
trunk/src/target/u-boot/patches/uboot-arm920_s3c2410_irq_demux.patch
trunk/src/target/u-boot/patches/uboot-arm920t-gd_in_irq.patch
trunk/src/target/u-boot/patches/uboot-s3c2410-nand.patch
trunk/src/target/u-boot/patches/uboot-s3c24xx_multi_serial.patch
Modified:
trunk/src/target/u-boot/patches/series
Log:
four more patches have been merged mainline (great!)
Modified: trunk/src/target/u-boot/patches/series
===================================================================
--- trunk/src/target/u-boot/patches/series 2008-02-08 08:46:02 UTC (rev
4026)
+++ trunk/src/target/u-boot/patches/series 2008-02-08 09:28:19 UTC (rev
4027)
@@ -3,13 +3,9 @@
# those we want to get mainline
uboot-strtoul.patch
-uboot-arm920t-gd_in_irq.patch
-uboot-arm920_s3c2410_irq_demux.patch
-uboot-s3c2410-nand.patch
uboot-s3c24xx-nand-boot.patch
uboot-cmd_s3c2410.patch
uboot-s3c2410-mmc.patch
-uboot-s3c24xx_multi_serial.patch
env_nand_oob.patch
dynenv-harden.patch
uboot-s3c2410_fb.patch
Deleted: trunk/src/target/u-boot/patches/uboot-arm920_s3c2410_irq_demux.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-arm920_s3c2410_irq_demux.patch
2008-02-08 08:46:02 UTC (rev 4026)
+++ trunk/src/target/u-boot/patches/uboot-arm920_s3c2410_irq_demux.patch
2008-02-08 09:28:19 UTC (rev 4027)
@@ -1,56 +0,0 @@
-This patch adds a IRQ demultiplexer callback to the arm920 cpu core code,
-plus a stub implementation of it for the S3C2410.
-
-Index: u-boot/cpu/arm920t/interrupts.c
-===================================================================
---- u-boot.orig/cpu/arm920t/interrupts.c
-+++ u-boot/cpu/arm920t/interrupts.c
-@@ -161,11 +161,16 @@
-
- void do_irq (struct pt_regs *pt_regs)
- {
--#if defined (CONFIG_USE_IRQ) && defined (CONFIG_ARCH_INTEGRATOR)
-+#if defined (CONFIG_USE_IRQ)
-+#if defined (ARM920_IRQ_CALLBACK)
-+ ARM920_IRQ_CALLBACK();
-+ return;
-+#elif defined (CONFIG_ARCH_INTEGRATOR)
- /* ASSUMED to be a timer interrupt */
- /* Just clear it - count handled in */
- /* integratorap.c */
- *(volatile ulong *)(CFG_TIMERBASE + 0x0C) = 0;
-+#endif /* ARCH_INTEGRATOR */
- #else
- printf ("interrupt request\n");
- show_regs (pt_regs);
-Index: u-boot/cpu/arm920t/s3c24x0/interrupts.c
-===================================================================
---- u-boot.orig/cpu/arm920t/s3c24x0/interrupts.c
-+++ u-boot/cpu/arm920t/s3c24x0/interrupts.c
-@@ -216,4 +216,13 @@
- /*NOTREACHED*/
- }
-
-+#ifdef CONFIG_USE_IRQ
-+void s3c2410_irq(void)
-+{
-+ S3C24X0_INTERRUPT * irq = S3C24X0_GetBase_INTERRUPT();
-+ u_int32_t intpnd = irq->INTPND;
-+
-+}
-+#endif /* USE_IRQ */
-+
- #endif /* defined(CONFIG_S3C2400) || defined (CONFIG_S3C2410) || defined
(CONFIG_TRAB) */
-Index: u-boot/include/common.h
-===================================================================
---- u-boot.orig/include/common.h
-+++ u-boot/include/common.h
-@@ -480,6 +480,8 @@
- ulong get_PCI_freq (void);
- #endif
- #if defined(CONFIG_S3C2400) || defined(CONFIG_S3C2410) ||
defined(CONFIG_LH7A40X)
-+void s3c2410_irq(void);
-+#define ARM920_IRQ_CALLBACK s3c2410_irq
- ulong get_FCLK (void);
- ulong get_HCLK (void);
- ulong get_PCLK (void);
Deleted: trunk/src/target/u-boot/patches/uboot-arm920t-gd_in_irq.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-arm920t-gd_in_irq.patch
2008-02-08 08:46:02 UTC (rev 4026)
+++ trunk/src/target/u-boot/patches/uboot-arm920t-gd_in_irq.patch
2008-02-08 09:28:19 UTC (rev 4027)
@@ -1,28 +0,0 @@
-This patch allows us to use the 'gd' pointer (and thus environment
-and everything else associated with it) from interrupt context on
-arm920t.
-
-Signed-off-by: Harald Welte <[EMAIL PROTECTED]>
-
-Index: u-boot/cpu/arm920t/start.S
-===================================================================
---- u-boot.orig/cpu/arm920t/start.S
-+++ u-boot/cpu/arm920t/start.S
-@@ -415,12 +415,12 @@
- .macro irq_save_user_regs
- sub sp, sp, #S_FRAME_SIZE
- stmia sp, {r0 - r12} @ Calling r0-r12
-- add r8, sp, #S_PC
-- stmdb r8, {sp, lr}^ @ Calling SP, LR
-- str lr, [r8, #0] @ Save calling PC
-+ add r7, sp, #S_PC
-+ stmdb r7, {sp, lr}^ @ Calling SP, LR
-+ str lr, [r7, #0] @ Save calling PC
- mrs r6, spsr
-- str r6, [r8, #4] @ Save CPSR
-- str r0, [r8, #8] @ Save OLD_R0
-+ str r6, [r7, #4] @ Save CPSR
-+ str r0, [r7, #8] @ Save OLD_R0
- mov r0, sp
- .endm
-
Deleted: trunk/src/target/u-boot/patches/uboot-s3c2410-nand.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-s3c2410-nand.patch 2008-02-08
08:46:02 UTC (rev 4026)
+++ trunk/src/target/u-boot/patches/uboot-s3c2410-nand.patch 2008-02-08
09:28:19 UTC (rev 4027)
@@ -1,216 +0,0 @@
-This patch adds NAND support to the S3C24x0 SoC code in u-boot
-
-Signed-off-by: Harald Welte <[EMAIL PROTECTED]>
-
-Index: u-boot/cpu/arm920t/s3c24x0/Makefile
-===================================================================
---- u-boot.orig/cpu/arm920t/s3c24x0/Makefile
-+++ u-boot/cpu/arm920t/s3c24x0/Makefile
-@@ -26,7 +26,7 @@
- LIB = $(obj)lib$(SOC).a
-
- COBJS = i2c.o interrupts.o serial.o speed.o \
-- usb.o usb_ohci.o
-+ usb.o usb_ohci.o nand.o
-
- SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
- OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
-Index: u-boot/cpu/arm920t/s3c24x0/nand.c
-===================================================================
---- /dev/null
-+++ u-boot/cpu/arm920t/s3c24x0/nand.c
-@@ -0,0 +1,183 @@
-+/*
-+ * (C) Copyright 2006 OpenMoko, Inc.
-+ * Author: Harald Welte <[EMAIL PROTECTED]>
-+ *
-+ * 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 <common.h>
-+
-+#if 0
-+#define DEBUGN printf
-+#else
-+#define DEBUGN(x, args ...) {}
-+#endif
-+
-+#if defined(CONFIG_CMD_NAND)
-+#if !defined(CFG_NAND_LEGACY)
-+
-+#include <nand.h>
-+#include <s3c2410.h>
-+
-+#define __REGb(x) (*(volatile unsigned char *)(x))
-+#define __REGi(x) (*(volatile unsigned int *)(x))
-+
-+#define NF_BASE 0x4e000000
-+#define NFCONF __REGi(NF_BASE + 0x0)
-+#define NFCMD __REGb(NF_BASE + 0x4)
-+#define NFADDR __REGb(NF_BASE + 0x8)
-+#define NFDATA __REGb(NF_BASE + 0xc)
-+#define NFSTAT __REGb(NF_BASE + 0x10)
-+#define NFECC0 __REGb(NF_BASE + 0x14)
-+#define NFECC1 __REGb(NF_BASE + 0x15)
-+#define NFECC2 __REGb(NF_BASE + 0x16)
-+
-+#define S3C2410_NFCONF_EN (1<<15)
-+#define S3C2410_NFCONF_512BYTE (1<<14)
-+#define S3C2410_NFCONF_4STEP (1<<13)
-+#define S3C2410_NFCONF_INITECC (1<<12)
-+#define S3C2410_NFCONF_nFCE (1<<11)
-+#define S3C2410_NFCONF_TACLS(x) ((x)<<8)
-+#define S3C2410_NFCONF_TWRPH0(x) ((x)<<4)
-+#define S3C2410_NFCONF_TWRPH1(x) ((x)<<0)
-+
-+static void s3c2410_hwcontrol(struct mtd_info *mtd, int cmd)
-+{
-+ struct nand_chip *chip = mtd->priv;
-+
-+ DEBUGN("hwcontrol(): 0x%02x: ", cmd);
-+
-+ switch (cmd) {
-+ case NAND_CTL_SETNCE:
-+ NFCONF &= ~S3C2410_NFCONF_nFCE;
-+ DEBUGN("NFCONF=0x%08x\n", NFCONF);
-+ break;
-+ case NAND_CTL_CLRNCE:
-+ NFCONF |= S3C2410_NFCONF_nFCE;
-+ DEBUGN("NFCONF=0x%08x\n", NFCONF);
-+ break;
-+ case NAND_CTL_SETALE:
-+ chip->IO_ADDR_W = NF_BASE + 0x8;
-+ DEBUGN("SETALE\n");
-+ break;
-+ case NAND_CTL_SETCLE:
-+ chip->IO_ADDR_W = NF_BASE + 0x4;
-+ DEBUGN("SETCLE\n");
-+ break;
-+ default:
-+ chip->IO_ADDR_W = NF_BASE + 0xc;
-+ break;
-+ }
-+ return;
-+}
-+
-+static int s3c2410_dev_ready(struct mtd_info *mtd)
-+{
-+ DEBUGN("dev_ready\n");
-+ return (NFSTAT & 0x01);
-+}
-+
-+#ifdef CONFIG_S3C2410_NAND_HWECC
-+static void s3c2410_nand_enable_hwecc(struct mtd_info *mtd, int mode)
-+{
-+ DEBUGN("s3c2410_nand_enable_hwecc(%p, %d)\n", mtd ,mode);
-+ NFCONF |= S3C2410_NFCONF_INITECC;
-+}
-+
-+static int s3c2410_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat,
-+ u_char *ecc_code)
-+{
-+ ecc_code[0] = NFECC0;
-+ ecc_code[1] = NFECC1;
-+ ecc_code[2] = NFECC2;
-+ DEBUGN("s3c2410_nand_calculate_hwecc(%p,): 0x%02x 0x%02x 0x%02x\n",
-+ mtd , ecc_code[0], ecc_code[1], ecc_code[2]);
-+
-+ return 0;
-+}
-+
-+static int s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat,
-+ u_char *read_ecc, u_char *calc_ecc)
-+{
-+ if (read_ecc[0] == calc_ecc[0] &&
-+ read_ecc[1] == calc_ecc[1] &&
-+ read_ecc[2] == calc_ecc[2])
-+ return 0;
-+
-+ printf("s3c2410_nand_correct_data: not implemented\n");
-+ return -1;
-+}
-+#endif
-+
-+
-+int board_nand_init(void) __attribute__((weak, alias("__board_nand_init")));
-+
-+
-+int __board_nand_init(struct nand_chip *nand)
-+{
-+ u_int32_t cfg;
-+ u_int8_t tacls, twrph0, twrph1;
-+ S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER();
-+
-+ DEBUGN("board_nand_init()\n");
-+
-+ clk_power->CLKCON |= (1 << 4);
-+
-+ /* initialize hardware */
-+ twrph0 = 3; twrph1 = 0; tacls = 0;
-+
-+ cfg = S3C2410_NFCONF_EN;
-+ cfg |= S3C2410_NFCONF_TACLS(tacls - 1);
-+ cfg |= S3C2410_NFCONF_TWRPH0(twrph0 - 1);
-+ cfg |= S3C2410_NFCONF_TWRPH1(twrph1 - 1);
-+
-+ NFCONF = cfg;
-+
-+ /* initialize nand_chip data structure */
-+ nand->IO_ADDR_R = nand->IO_ADDR_W = 0x4e00000c;
-+
-+ /* read_buf and write_buf are default */
-+ /* read_byte and write_byte are default */
-+
-+ /* hwcontrol always must be implemented */
-+ nand->hwcontrol = s3c2410_hwcontrol;
-+
-+ nand->dev_ready = s3c2410_dev_ready;
-+
-+#ifdef CONFIG_S3C2410_NAND_HWECC
-+ nand->enable_hwecc = s3c2410_nand_enable_hwecc;
-+ nand->calculate_ecc = s3c2410_nand_calculate_ecc;
-+ nand->correct_data = s3c2410_nand_correct_data;
-+ nand->eccmode = NAND_ECC_HW3_512;
-+#else
-+ nand->eccmode = NAND_ECC_SOFT;
-+#endif
-+
-+#ifdef CONFIG_S3C2410_NAND_BBT
-+ nand->options = NAND_USE_FLASH_BBT;
-+#else
-+ nand->options = 0;
-+#endif
-+
-+ DEBUGN("end of nand_init\n");
-+
-+ return 0;
-+}
-+
-+#else
-+ #error "U-Boot legacy NAND support not available for S3C2410"
-+#endif
-+#endif
-Index: u-boot/include/s3c24x0.h
-===================================================================
---- u-boot.orig/include/s3c24x0.h
-+++ u-boot/include/s3c24x0.h
-@@ -1132,4 +1132,6 @@
-
- #endif
-
-+int __board_nand_init(struct nand_chip *nand);
-+
- #endif /*__S3C24X0_H__*/
Deleted: trunk/src/target/u-boot/patches/uboot-s3c24xx_multi_serial.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-s3c24xx_multi_serial.patch
2008-02-08 08:46:02 UTC (rev 4026)
+++ trunk/src/target/u-boot/patches/uboot-s3c24xx_multi_serial.patch
2008-02-08 09:28:19 UTC (rev 4027)
@@ -1,290 +0,0 @@
-Index: u-boot/common/serial.c
-===================================================================
---- u-boot.orig/common/serial.c
-+++ u-boot/common/serial.c
-@@ -59,6 +59,16 @@
- #else
- return &serial0_device;
- #endif
-+#elif defined(CONFIG_S3C2410)
-+#if defined(CONFIG_SERIAL1)
-+ return &s3c24xx_serial0_device;
-+#elif defined(CONFIG_SERIAL2)
-+ return &s3c24xx_serial1_device;
-+#elif defined(CONFIG_SERIAL3)
-+ return &s3c24xx_serial2_device;
-+#else
-+#error "CONFIG_SERIAL? missing."
-+#endif
- #else
- #error No default console
- #endif
-@@ -119,6 +129,11 @@
- #if defined (CONFIG_STUART)
- serial_register(&serial_stuart_device);
- #endif
-+#if defined(CONFIG_S3C2410)
-+ serial_register(&s3c24xx_serial0_device);
-+ serial_register(&s3c24xx_serial1_device);
-+ serial_register(&s3c24xx_serial2_device);
-+#endif
- serial_assign (default_serial_console ()->name);
- }
-
-Index: u-boot/cpu/arm920t/s3c24x0/serial.c
-===================================================================
---- u-boot.orig/cpu/arm920t/s3c24x0/serial.c
-+++ u-boot/cpu/arm920t/s3c24x0/serial.c
-@@ -48,18 +48,74 @@
- #error "Bad: you didn't configure serial ..."
- #endif
-
--void serial_setbrg (void)
-+#if defined(CONFIG_SERIAL_MULTI)
-+#include <serial.h>
-+
-+/* Multi serial device functions */
-+#define DECLARE_S3C_SERIAL_FUNCTIONS(port) \
-+ int s3serial##port##_init (void) {\
-+ return serial_init_dev(port);}\
-+ void s3serial##port##_setbrg (void) {\
-+ serial_setbrg_dev(port);}\
-+ int s3serial##port##_getc (void) {\
-+ return serial_getc_dev(port);}\
-+ int s3serial##port##_tstc (void) {\
-+ return serial_tstc_dev(port);}\
-+ void s3serial##port##_putc (const char c) {\
-+ serial_putc_dev(port, c);}\
-+ void s3serial##port##_puts (const char *s) {\
-+ serial_puts_dev(port, s);}
-+
-+#define INIT_S3C_SERIAL_STRUCTURE(port,name,bus) {\
-+ name,\
-+ bus,\
-+ s3serial##port##_init,\
-+ s3serial##port##_setbrg,\
-+ s3serial##port##_getc,\
-+ s3serial##port##_tstc,\
-+ s3serial##port##_putc,\
-+ s3serial##port##_puts, }
-+
-+#endif /* CONFIG_SERIAL_MULTI */
-+
-+void _serial_setbrg(const int dev_index)
- {
-- S3C24X0_UART * const uart = S3C24X0_GetBase_UART(UART_NR);
-- int i;
-+ S3C24X0_UART * const uart = S3C24X0_GetBase_UART(dev_index);
- unsigned int reg = 0;
-+ int i;
-
- /* value is calculated so : (int)(PCLK/16./baudrate) -1 */
- reg = get_PCLK() / (16 * gd->baudrate) - 1;
-
-+ uart->UBRDIV = reg;
-+ for (i = 0; i < 100; i++);
-+}
-+#if defined(CONFIG_SERIAL_MULTI)
-+static inline void
-+serial_setbrg_dev(unsigned int dev_index)
-+{
-+ _serial_setbrg(dev_index);
-+}
-+#else
-+void serial_setbrg(void)
-+{
-+ _serial_setbrg(UART_NR);
-+}
-+#endif
-+
-+
-+/* Initialise the serial port. The settings are always 8 data bits, no parity,
-+ * 1 stop bit, no start bits.
-+ */
-+static int serial_init_dev(const int dev_index)
-+{
-+ S3C24X0_UART * const uart = S3C24X0_GetBase_UART(dev_index);
-+ int i;
-+
- /* FIFO enable, Tx/Rx FIFO clear */
- uart->UFCON = 0x07;
- uart->UMCON = 0x0;
-+
- /* Normal,No parity,1 stop,8 bit */
- uart->ULCON = 0x3;
- /*
-@@ -67,40 +123,57 @@
- * normal,interrupt or polling
- */
- uart->UCON = 0x245;
-- uart->UBRDIV = reg;
-
- #ifdef CONFIG_HWFLOW
- uart->UMCON = 0x1; /* RTS up */
- #endif
-- for (i = 0; i < 100; i++);
-+
-+ /* FIXME: This is sooooooooooooooooooo ugly */
-+#if defined(CONFIG_ARCH_GTA02_v1) || defined(CONFIG_ARCH_GTA02_v2)
-+ /* we need auto hw flow control on the gsm and gps port */
-+ if (dev_index == 0 || dev_index == 1)
-+ uart->UMCON = 0x10;
-+#endif
-+ _serial_setbrg(dev_index);
-+
-+ return (0);
- }
-
--/*
-- * Initialise the serial port with the given baudrate. The settings
-- * are always 8 data bits, no parity, 1 stop bit, no start bits.
-- *
-+#if !defined(CONFIG_SERIAL_MULTI)
-+/* Initialise the serial port. The settings are always 8 data bits, no parity,
-+ * 1 stop bit, no start bits.
- */
- int serial_init (void)
- {
-- serial_setbrg ();
--
-- return (0);
-+ return serial_init_dev(UART_NR);
- }
-+#endif
-
- /*
- * Read a single byte from the serial port. Returns 1 on success, 0
- * otherwise. When the function is succesfull, the character read is
- * written into its argument c.
- */
--int serial_getc (void)
-+int _serial_getc (const int dev_index)
- {
-- S3C24X0_UART * const uart = S3C24X0_GetBase_UART(UART_NR);
-+ S3C24X0_UART * const uart = S3C24X0_GetBase_UART(dev_index);
-
- /* wait for character to arrive */
- while (!(uart->UTRSTAT & 0x1));
-
- return uart->URXH & 0xff;
- }
-+#if defined(CONFIG_SERIAL_MULTI)
-+static inline int serial_getc_dev(unsigned int dev_index)
-+{
-+ return _serial_getc(dev_index);
-+}
-+#else
-+int serial_getc (void)
-+{
-+ return _serial_getc(UART_NR);
-+}
-+#endif
-
- #ifdef CONFIG_HWFLOW
- static int hwflow = 0; /* turned off by default */
-@@ -138,9 +211,9 @@
- /*
- * Output a single byte to the serial port.
- */
--void serial_putc (const char c)
-+void _serial_putc (const char c, const int dev_index)
- {
-- S3C24X0_UART * const uart = S3C24X0_GetBase_UART(UART_NR);
-+ S3C24X0_UART * const uart = S3C24X0_GetBase_UART(dev_index);
- #ifdef CONFIG_MODEM_SUPPORT
- if (be_quiet)
- return;
-@@ -161,23 +234,72 @@
- if (c == '\n')
- serial_putc ('\r');
- }
-+#if defined(CONFIG_SERIAL_MULTI)
-+static inline void serial_putc_dev(unsigned int dev_index, const char c)
-+{
-+ _serial_putc(c, dev_index);
-+}
-+#else
-+void serial_putc(const char c)
-+{
-+ _serial_putc(c, UART_NR);
-+}
-+#endif
-+
-
- /*
- * Test whether a character is in the RX buffer
- */
--int serial_tstc (void)
-+int _serial_tstc(const int dev_index)
- {
-- S3C24X0_UART * const uart = S3C24X0_GetBase_UART(UART_NR);
-+ S3C24X0_UART * const uart = S3C24X0_GetBase_UART(dev_index);
-
- return uart->UTRSTAT & 0x1;
- }
-+#if defined(CONFIG_SERIAL_MULTI)
-+static inline int
-+serial_tstc_dev(unsigned int dev_index)
-+{
-+ return _serial_tstc(dev_index);
-+}
-+#else
-+int serial_tstc(void)
-+{
-+ return _serial_tstc(UART_NR);
-+}
-+#endif
-
--void
--serial_puts (const char *s)
-+void _serial_puts(const char *s, const int dev_index)
- {
- while (*s) {
-- serial_putc (*s++);
-+ _serial_putc (*s++, dev_index);
- }
- }
-+#if defined(CONFIG_SERIAL_MULTI)
-+static inline void
-+serial_puts_dev(int dev_index, const char *s)
-+{
-+ _serial_puts(s, dev_index);
-+}
-+#else
-+void
-+serial_puts (const char *s)
-+{
-+ _serial_puts(s, UART_NR);
-+}
-+#endif
-+
-+#if defined(CONFIG_SERIAL_MULTI)
-+DECLARE_S3C_SERIAL_FUNCTIONS(0);
-+struct serial_device s3c24xx_serial0_device =
-+ INIT_S3C_SERIAL_STRUCTURE(0, "s3ser0", "S3UART1");
-+DECLARE_S3C_SERIAL_FUNCTIONS(1);
-+struct serial_device s3c24xx_serial1_device =
-+ INIT_S3C_SERIAL_STRUCTURE(1, "s3ser1", "S3UART2");
-+DECLARE_S3C_SERIAL_FUNCTIONS(2);
-+struct serial_device s3c24xx_serial2_device =
-+ INIT_S3C_SERIAL_STRUCTURE(2, "s3ser2", "S3UART3");
-+
-+#endif /* CONFIG_SERIAL_MULTI */
-
- #endif /* defined(CONFIG_S3C2400) || defined (CONFIG_S3C2410) || defined
(CONFIG_TRAB) */
-Index: u-boot/include/serial.h
-===================================================================
---- u-boot.orig/include/serial.h
-+++ u-boot/include/serial.h
-@@ -35,6 +35,11 @@
-
- #endif
-
-+#if defined(CONFIG_S3C2410)
-+extern struct serial_device s3c24xx_serial0_device;
-+extern struct serial_device s3c24xx_serial1_device;
-+extern struct serial_device s3c24xx_serial2_device;
-+#endif
-
- extern struct serial_device serial_ffuart_device;
- extern struct serial_device serial_btuart_device;
--- End Message ---
--- Begin Message ---
Author: thomas
Date: 2008-02-08 10:57:32 +0100 (Fri, 08 Feb 2008)
New Revision: 4028
Modified:
trunk/src/target/opkg/opkg_state.c
Log:
opkg: correct the name of the state changed callback and run it when appropriate
Modified: trunk/src/target/opkg/opkg_state.c
===================================================================
--- trunk/src/target/opkg/opkg_state.c 2008-02-08 09:28:19 UTC (rev 4027)
+++ trunk/src/target/opkg/opkg_state.c 2008-02-08 09:57:32 UTC (rev 4028)
@@ -33,7 +33,7 @@
-opkg_state_changed_callback opkg_cb_state;
+opkg_state_changed_callback opkg_cb_state_changed = NULL;
static opkg_state_t opkg_state = 0;
static char *opkg_state_data = NULL;
@@ -55,6 +55,12 @@
opkg_state = state;
+ if (opkg_cb_state_changed)
+ {
+ opkg_cb_state_changed (opkg_state, opkg_state_data);
+ }
+
+
printf ("opkg state set to %s: %s\n", state_strings[state], data);
}
--- End Message ---
_______________________________________________
commitlog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/commitlog