You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
(82) |
Jun
(72) |
Jul
(39) |
Aug
(104) |
Sep
(61) |
Oct
(55) |
Nov
(101) |
Dec
(48) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(52) |
Feb
(67) |
Mar
(18) |
Apr
(16) |
May
(33) |
Jun
(12) |
Jul
(102) |
Aug
(168) |
Sep
(65) |
Oct
(60) |
Nov
(43) |
Dec
(121) |
2002 |
Jan
(69) |
Feb
(32) |
Mar
(90) |
Apr
(59) |
May
(45) |
Jun
(43) |
Jul
(33) |
Aug
(21) |
Sep
(11) |
Oct
(20) |
Nov
(26) |
Dec
(3) |
2003 |
Jan
(12) |
Feb
(18) |
Mar
(11) |
Apr
(11) |
May
(41) |
Jun
(76) |
Jul
(77) |
Aug
(15) |
Sep
(38) |
Oct
(56) |
Nov
(19) |
Dec
(39) |
2004 |
Jan
(17) |
Feb
(52) |
Mar
(36) |
Apr
(34) |
May
(48) |
Jun
(85) |
Jul
(38) |
Aug
(42) |
Sep
(41) |
Oct
(77) |
Nov
(27) |
Dec
(19) |
2005 |
Jan
(32) |
Feb
(35) |
Mar
(29) |
Apr
(8) |
May
(7) |
Jun
(31) |
Jul
(46) |
Aug
(93) |
Sep
(65) |
Oct
(85) |
Nov
(219) |
Dec
(47) |
2006 |
Jan
(170) |
Feb
(103) |
Mar
(49) |
Apr
(43) |
May
(45) |
Jun
(29) |
Jul
(77) |
Aug
(82) |
Sep
(43) |
Oct
(45) |
Nov
(26) |
Dec
(85) |
2007 |
Jan
(42) |
Feb
(48) |
Mar
(64) |
Apr
(31) |
May
(88) |
Jun
(53) |
Jul
(175) |
Aug
(212) |
Sep
(91) |
Oct
(103) |
Nov
(110) |
Dec
(5) |
2008 |
Jan
(20) |
Feb
(11) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(5) |
Sep
(3) |
Oct
(12) |
Nov
|
Dec
|
From: Kristoffer E. <kri...@gm...> - 2007-08-25 01:10:58
|
Greetings, All in all it feels pretty good. What works: HD64461 CCHIP (IRQ 36 -> IRQ4) Framebuffer(HD64461) Compact Flash(HD64461) (IRQ 77 -> IRQ4) SCIF (sci, scif, irda) RTC What doesn't work: Keyboard (missing driver, almost finished) Sound (TMU stuff, old driver going to be replaced by fresh alsa one) PCMCIA (missing driver, old driver that needs to be cleaned up alot) Touchscreen (error aquiring IRQ3) APM (error aquiring IRQ0) Linux version 2.6.23-rc3-g25f3fc5e-dirty (kristoffer@NightCrawler) (gcc version 3.4.5) #10 Fri Aug 24 22:24:22 PDT 2007 Booting machvec: hp6xx Node 0: start_pfn = 0xc000, low = 0xe000 Zone PFN ranges: Normal 49152 -> 57344 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 49152 -> 57344 Built 1 zonelists in Zone order. Total pages: 8128 Kernel command line: mem=32M root=/dev/sda4 console=ttySC1,115200 init=/bin/sh PID hash table entries: 128 (order: 7, 512 bytes) Using tmu for system timer Using 5.528 MHz high precision timer. Console: colour dummy device 80x25 Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 30848k/32768k available (1192k kernel code, 287k data, 64k init) Mount-cache hash table entries: 512 CPU: SH7729 SCSI subsystem initialized DMA: Registering DMA API. DMA: Registering sh_dmac handler (4 channels). Time: SuperH clocksource has been installed. hp6x0_apm: IRQ 32 request failed HD64461 configured at 0xb0000000 on irq 36(mapped into 64 to 79) HD64461: enabling PCMCIA devices io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered Console: switching to colour frame buffer device 80x30 fb0: Hitachi HD64461 frame buffer device SuperH SCI(F) driver initialized sh-sci: ttySC0 at MMIO 0xfffffe80 (irq = 25) is a sci sh-sci: ttySC1 at MMIO 0xa4000150 (irq = 59) is a scif console [ttySC1] enabled sh-sci: ttySC2 at MMIO 0xa4000140 (irq = 55) is a irda scsi0 : pata_platform ata1: PATA max PIO0 cmd 0xb50001f0 ctl 0xb50001fe bmdma 0x00000000 irq 77 ata1.00: CFA: Hitachi XX.V.3.5.0.0, Rev 0.00, max PIO4 ata1.00: 2002896 sectors, multi 0: LBA ata1.00: configured for PIO ata1: EH pending after completion, repeating EH (cnt=4) scsi 0:0:0:0: Direct-Access ATA Hitachi XX.V.3.5 Rev PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 2002896 512-byte hardware sectors (1025 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:0:0: [sda] 2002896 512-byte hardware sectors (1025 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sda3 sda4 sd 0:0:0:0: [sda] Attached SCSI removable disk sd 0:0:0:0: Attached scsi generic sg0 type 0 mice: PS/2 mouse device common for all mice hp680_touchscreen.c: Can't allocate irq 35 sh-rtc sh-rtc: rtc core: registered sh as rtc0 sh_dac_audio: IRQ 16 request failed sh-rtc sh-rtc: setting the system clock to 1999-01-01 00:01:30 (915148890) EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 64k freed /bin/sh: can't access tty; job control turned off / $ -- Kristoffer Ericson <Kri...@Gm...> |
From: Carl S. <sha...@gm...> - 2007-08-24 20:12:22
|
As far as I remember, ST haven't pushed out a version of the compiler with the new __GNUC_STM_RELEASE__ yet (see the date tag on your compiler). There'll hopefully be some updates out next week for the 2.2. distro which should have them. The 2.3 distro is moving to gcc 4.2.1 (more of a vanilla version than previous ones and currently undergoing internal testing) - I'll make sure and test it against the mainline kernel before we ship it to stop the sillyness ;-) Carl On 8/23/07, Paul Mundt <le...@li...> wrote: > On Wed, Aug 22, 2007 at 08:56:49PM +0100, Adrian McMenamin wrote: > > Getting this with the ST uclibc 4.1 compiler: > > > > ERROR: "__udivsi3_i4i" [sound/sh/snd-aica.ko] undefined! > > ERROR: "__sdivsi3_i4i" [sound/sh/snd-aica.ko] undefined! > > ERROR: "__sdivsi3_i4i" [sound/core/snd-timer.ko] undefined! > > ERROR: "__udivsi3_i4i" [sound/core/snd-pcm.ko] undefined! > > ERROR: "__udivsi3_i4i" [sound/core/snd-page-alloc.ko] undefined! > > ERROR: "__udivsi3_i4i" [sound/core/oss/snd-pcm-oss.ko] undefined! > > ERROR: "__sdivsi3_i4i" [sound/core/oss/snd-mixer-oss.ko] undefined! > > make[1]: *** [__modpost] Error 1 > > make: *** [modules] Error 2 > > > > This is an old error, though, isn't it? I thought it was fixed some time > > ago? > > > See the 'ST compiler silliness' thread. > > http://marc.info/?l=linuxsh-dev&m=118420995932115&w=2 > http://marc.info/?l=linuxsh-dev&m=118423912630664&w=2 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > linuxsh-dev mailing list > lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxsh-dev > |
From: Kristoffer E. <kri...@gm...> - 2007-08-24 14:39:36
|
Greetings, Shortlog: HD64461 was setup to use IRQ 80->95 with the CF getting (80+13) 93. Since we now start OFFCHIP_IRQ at 64 we need to set CF to use (64+13) instead, meaning IRQ 77. Signed-off-by: Kristoffer Ericson <Kri...@gm...> diff --git a/arch/sh/boards/hp6xx/setup.c b/arch/sh/boards/hp6xx/setup.c index 7ae7089..ac527a8 100644 --- a/arch/sh/boards/hp6xx/setup.c +++ b/arch/sh/boards/hp6xx/setup.c @@ -34,7 +34,7 @@ static struct resource cf_ide_resources[] = { .flags = IORESOURCE_MEM, }, [2] = { - .start = 93, + .start = 77, .flags = IORESOURCE_IRQ, }, }; -- Kristoffer Ericson <Kri...@Gm...> |
From: Kristoffer E. <kri...@gm...> - 2007-08-24 14:09:38
|
Corrected the patch. diff --git a/arch/sh/boards/hp6xx/hp6xx_apm.c b/arch/sh/boards/hp6xx/hp6xx_apm.c index d1c1460..4329058 100644 --- a/arch/sh/boards/hp6xx/hp6xx_apm.c +++ b/arch/sh/boards/hp6xx/hp6xx_apm.c @@ -20,9 +20,9 @@ #define APM_CRITICAL 10 #define APM_LOW 30 -#define HP680_BATTERY_MAX 875 -#define HP680_BATTERY_MIN 600 -#define HP680_BATTERY_AC_ON 900 +#define HP680_BATTERY_MAX 898 +#define HP680_BATTERY_MIN 486 +#define HP680_BATTERY_AC_ON 1023 #define MODNAME "hp6x0_apm" @@ -65,9 +65,10 @@ static void hp6x0_apm_get_power_status(struct apm_power_info *info) static irqreturn_t hp6x0_apm_interrupt(int irq, void *dev) { - if (!apm_suspended) + if(!APM_DISABLED) apm_queue_event(APM_USER_SUSPEND); - + /* apm_suspended (SH) -> apm_disabled (ARM) + and it is now handled by the driver itself */ return IRQ_HANDLED; } @@ -76,10 +77,10 @@ static int __init hp6x0_apm_init(void) int ret; ret = request_irq(HP680_BTN_IRQ, hp6x0_apm_interrupt, - IRQF_DISABLED, MODNAME, NULL); + IRQF_DISABLED, MODNAME, NULL); if (unlikely(ret < 0)) { printk(KERN_ERR MODNAME ": IRQ %d request failed\n", - HP680_BTN_IRQ); + HP680_BTN_IRQ); return ret; } @@ -91,7 +92,6 @@ static int __init hp6x0_apm_init(void) static void __exit hp6x0_apm_exit(void) { free_irq(HP680_BTN_IRQ, 0); - apm_get_info = NULL; } module_init(hp6x0_apm_init); On Fri, 24 Aug 2007 17:37:35 +0900 Paul Mundt <le...@li...> wrote: > On Thu, Aug 23, 2007 at 02:35:36PM -0700, Kristoffer Ericson wrote: > > + if(!APM_DISABLED) > > + apm_queue_event(APM_USER_SUSPEND); > > + /* apm_suspended (SH) -> apm_disabled (ARM) > > + and it is now handled by the driver itself */ > > return IRQ_HANDLED; > > } > > > This is totally whitespace damaged. Please run your patches through > scripts/checkpatch.pl. -- Kristoffer Ericson <Kri...@Gm...> |
From: Kristoffer E. <kri...@gm...> - 2007-08-24 13:44:09
|
True, I've gotten so used to it that I didn't even react. You want me to send you a new defconf patch? 2007/8/24, Paul Mundt <le...@li...>: > > On Thu, Aug 23, 2007 at 04:31:14PM -0700, Kristoffer Ericson wrote: > > 38.sh-sci sh-sci: Attempting to register port 3 when only 2 are > available. > > 39.sh-sci sh-sci: Consider bumping CONFIG_SERIAL_SH_SCI_NR_UARTS! > > You may want to correct this in your defconfig. > |
From: Kristoffer E. <kri...@gm...> - 2007-08-24 13:43:12
|
The alsa driver is mostly finished thats why I basicly only fixed it to compile. Perhaps its better to leave it to its fate? 2007/8/24, Paul Mundt <le...@li...>: > > On Thu, Aug 23, 2007 at 03:05:21PM -0700, Kristoffer Ericson wrote: > > Greetings, > > > > shortlog: Added missing define TSTR which is needed for compilation, > minor cleanup also. > > > Might fix compilation, but has no hope of ever working. You've already > been told that TMU0 and TMU1 are used by the system, sh_dac_audio will > have to latch on to another channel. Your request_irq() here will > automatically fail, and it seems a bit dubious to be using a timer > channel directly like this anyhow. > |
From: Kristoffer E. <kri...@gm...> - 2007-08-24 13:42:02
|
Sorry must have missed my usual vim check. Will do that 2007/8/24, Paul Mundt <le...@li...>: > > On Thu, Aug 23, 2007 at 02:35:36PM -0700, Kristoffer Ericson wrote: > > + if(!APM_DISABLED) > > + apm_queue_event(APM_USER_SUSPEND); > > + /* apm_suspended (SH) -> apm_disabled (ARM) > > + and it is now handled by the driver itself */ > > return IRQ_HANDLED; > > } > > > This is totally whitespace damaged. Please run your patches through > scripts/checkpatch.pl. > |
From: Kristoffer E. <kri...@gm...> - 2007-08-24 13:41:33
|
2.6.24 will do nicely 2007/8/24, Paul Mundt <le...@li...>: > > On Thu, Aug 23, 2007 at 02:19:35PM -0700, Kristoffer Ericson wrote: > > This patchs brings the old hp6xx_defconfig up to speed. Note that this > > file will require additional patching since some hardware still isn't > > implemented, this includes cchips support, keyboard driver. The config > > should be mostly right. > > On Thu, Aug 23, 2007 at 02:30:04PM -0700, Kristoffer Ericson wrote: > > HP6xx uses OFFCHIP_IRQ to know the base irq number where non cpu > > interrupts should start. This define was in IRQ.h before, but since > > rework got lost. It really belongs inside hd64461.h since the hp6xx > > wont work without it. > > On Thu, Aug 23, 2007 at 02:45:14PM -0700, Kristoffer Ericson wrote: > > Some minor compile fixes. > > * Added define for INTC_INTR which is used in hd64461 init process. > > * __irq_demux(irq) is removed and a simple (irq) would do the trick. > > * Some minor commenting > > On Thu, Aug 23, 2007 at 03:31:36PM -0700, Kristoffer Ericson wrote: > > This makes the DMTE defines get allocated to SH7709. > > These look fine, some of these are also 2.6.23 material, but I'm not sure > if you want to bother with that or not given the other troubles with the > platform. Otherwise I'll queue these for 2.6.24. > |
From: Paul M. <le...@li...> - 2007-08-24 08:51:53
|
On Thu, Aug 23, 2007 at 04:31:14PM -0700, Kristoffer Ericson wrote: > 38.sh-sci sh-sci: Attempting to register port 3 when only 2 are available. > 39.sh-sci sh-sci: Consider bumping CONFIG_SERIAL_SH_SCI_NR_UARTS! You may want to correct this in your defconfig. |
From: Paul M. <le...@li...> - 2007-08-24 08:42:41
|
On Thu, Aug 23, 2007 at 02:19:35PM -0700, Kristoffer Ericson wrote: > This patchs brings the old hp6xx_defconfig up to speed. Note that this > file will require additional patching since some hardware still isn't > implemented, this includes cchips support, keyboard driver. The config > should be mostly right. On Thu, Aug 23, 2007 at 02:30:04PM -0700, Kristoffer Ericson wrote: > HP6xx uses OFFCHIP_IRQ to know the base irq number where non cpu > interrupts should start. This define was in IRQ.h before, but since > rework got lost. It really belongs inside hd64461.h since the hp6xx > wont work without it. On Thu, Aug 23, 2007 at 02:45:14PM -0700, Kristoffer Ericson wrote: > Some minor compile fixes. > * Added define for INTC_INTR which is used in hd64461 init process. > * __irq_demux(irq) is removed and a simple (irq) would do the trick. > * Some minor commenting On Thu, Aug 23, 2007 at 03:31:36PM -0700, Kristoffer Ericson wrote: > This makes the DMTE defines get allocated to SH7709. These look fine, some of these are also 2.6.23 material, but I'm not sure if you want to bother with that or not given the other troubles with the platform. Otherwise I'll queue these for 2.6.24. |
From: Paul M. <le...@li...> - 2007-08-24 08:39:03
|
On Thu, Aug 23, 2007 at 02:35:36PM -0700, Kristoffer Ericson wrote: > + if(!APM_DISABLED) > + apm_queue_event(APM_USER_SUSPEND); > + /* apm_suspended (SH) -> apm_disabled (ARM) > + and it is now handled by the driver itself */ > return IRQ_HANDLED; > } > This is totally whitespace damaged. Please run your patches through scripts/checkpatch.pl. |
From: Paul M. <le...@li...> - 2007-08-24 02:02:23
|
On Thu, Aug 23, 2007 at 03:05:21PM -0700, Kristoffer Ericson wrote: > Greetings, > > shortlog: Added missing define TSTR which is needed for compilation, minor cleanup also. > Might fix compilation, but has no hope of ever working. You've already been told that TMU0 and TMU1 are used by the system, sh_dac_audio will have to latch on to another channel. Your request_irq() here will automatically fail, and it seems a bit dubious to be using a timer channel directly like this anyhow. |
From: Paul M. <le...@li...> - 2007-08-24 01:55:07
|
On Thu, Aug 23, 2007 at 02:49:39PM -0700, Kristoffer Ericson wrote: > --- a/drivers/video/backlight/hp680_bl.c > +++ b/drivers/video/backlight/hp680_bl.c > @@ -125,8 +125,8 @@ static int hp680bl_remove(struct platform_device *pdev) > { > struct backlight_device *bd = platform_get_drvdata(pdev); > > - hp680bl_data.brightness = 0; > - hp680bl_data.power = 0; > +// hp680bl_data.brightness = 0; > +// hp680bl_data.power = 0; > hp680bl_send_intensity(bd); > > backlight_device_unregister(bd); > Don't do things like this. It does nothing to fix the problem, and it's fairly obvious what the problem is. If there have been API changes, then look at the other drivers and see how they have dealt with this. Just from a 2 second glance, it's obvious that bd->props.{brightness,power} are what you want to clear, as hp680bl_data has been removed completely. Simply hacking it to build will generally cause more problems than it solves, whereas actually thinking about the problem will net you much better results in the end. |
From: Kristoffer E. <kri...@gm...> - 2007-08-23 14:39:16
|
Greetings, Kernel now boots (although no output from jornada lcd screen). Stuff that doesn't work properly is all IRQ related. Keyboard and PCMCIA support isn't applied yet, still working on cleaning them up. Best Wishes Kristoffer With all the patches applied that I submitted, the status (from serial cable) is : 1.Linux version 2.6.23-rc3-gc15b21e3 (kristoffer@NightCrawler) (gcc version 3.4.5) #2 Thu Aug 23 15:33:20 PDT 2007 2.Booting machvec: hp6xx 3.Node 0: start_pfn = 0xc000, low = 0xe000 4.Zone PFN ranges: 5.Normal 49152 -> 57344 6.Movable zone start PFN for each node 7.early_node_map[1] active PFN ranges 8.0: 49152 -> 57344 9.Built 1 zonelists in Zone order. Total pages: 8128 10.Kernel command line: mem=32M root=/dev/sda4 console=ttySC1,115200 init=/bin/sh 11.PID hash table entries: 128 (order: 7, 512 bytes) 12.Using tmu for system timer 13.Using 5.528 MHz high precision timer. 14.Console: colour dummy device 80x25 15.Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) 16.Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) 17.Memory: 30884k/32768k available (1161k kernel code, 278k data, 68k init) 18.Mount-cache hash table entries: 512 19. 20.CPU: SH7729 21.SCSI subsystem initialized 22.DMA: Registering DMA API. 23.DMA: Registering sh_dmac handler (4 channels). 24.Time: SuperH clocksource has been installed. 25.hp6x0_apm: IRQ 32 request failed 26.HD64461 configured at 0xb0000000 on irq 36(mapped into 64 to 79) 27.HD64461: enabling PCMCIA devices 28.io scheduler noop registered 29.io scheduler anticipatory registered (default) 30.io scheduler deadline registered 31.io scheduler cfq registered 32.Console: switching to colour frame buffer device 80x30 33.fb0: Hitachi HD64461 frame buffer device 34.SuperH SCI(F) driver initialized 35.sh-sci: ttySC0 at MMIO 0xfffffe80 (irq = 25) is a sci 36.sh-sci: ttySC1 at MMIO 0xa4000150 (irq = 59) is a scif 37.console [ttySC1] enabled 38.sh-sci sh-sci: Attempting to register port 3 when only 2 are available. 39.sh-sci sh-sci: Consider bumping CONFIG_SERIAL_SH_SCI_NR_UARTS! 40.RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize 41.mice: PS/2 mouse device common for all mice 42.hp680_touchscreen.c: Can't allocate irq 35 43.sh-rtc sh-rtc: rtc core: registered sh as rtc0 44.sh_dac_audio: IRQ 16 request failed 45.sh-rtc sh-rtc: setting the system clock to 1999-01-01 04:53:55 (915166435) 46.VFS: Cannot open root device "sda4" or unknown-block(0,0) 47.Please append a correct "root=" boot option; here are the available partitions: 48.Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) -- Kristoffer Ericson <Kri...@Gm...> |
From: Kristoffer E. <kri...@gm...> - 2007-08-23 13:24:39
|
Greetings, This makes the DMTE defines get allocated to SH7709. Signed-off-by: Kristoffer Ericson <Kri...@gm...> diff --git a/include/asm-sh/cpu-sh3/dma.h b/include/asm-sh/cpu-sh3/dma.h index e562030..54bfece 100644 --- a/include/asm-sh/cpu-sh3/dma.h +++ b/include/asm-sh/cpu-sh3/dma.h @@ -2,7 +2,7 @@ #define __ASM_CPU_SH3_DMA_H -#if defined(CONFIG_CPU_SUBTYPE_SH7720) +#if defined(CONFIG_CPU_SUBTYPE_SH7720) || defined(CONFIG_CPU_SUBTYPE_SH7709) #define SH_DMAC_BASE 0xa4010020 #define DMTE0_IRQ 48 diff --git a/arch/sh/drivers/dma/dma-sh.c b/arch/sh/drivers/dma/dma-sh.c index 6e5f16c..958bac1 100644 --- a/arch/sh/drivers/dma/dma-sh.c +++ b/arch/sh/drivers/dma/dma-sh.c @@ -27,6 +27,7 @@ static int dmte_irq_map[] = { #if defined(CONFIG_CPU_SUBTYPE_SH7720) || \ defined(CONFIG_CPU_SUBTYPE_SH7751R) || \ defined(CONFIG_CPU_SUBTYPE_SH7760) || \ + defined(CONFIG_CPU_SUBTYPE_SH7709) || \ defined(CONFIG_CPU_SUBTYPE_SH7780) DMTE4_IRQ, DMTE5_IRQ, -- Kristoffer Ericson <Kri...@Gm...> |
From: Kristoffer E. <kri...@gm...> - 2007-08-23 13:03:17
|
Forgot TMU_ before TSTR...:( Use this patch instead Signed-off-by: Kristoffer Ericson <Kri...@gm...> diff --git a/sound/oss/sh_dac_audio.c b/sound/oss/sh_dac_audio.c index b493660..5285510 100644 --- a/sound/oss/sh_dac_audio.c +++ b/sound/oss/sh_dac_audio.c @@ -32,10 +32,13 @@ #define MODNAME "sh_dac_audio" #define TMU_TOCR_INIT 0x00 +#define TIMER1_IRQ 16 #define TMU1_TCR_INIT 0x0020 /* Clock/4, rising edge; interrupt on */ #define TMU1_TSTR_INIT 0x02 /* Bit to turn on TMU1 */ +#define TMU_TSTR 0xfffffe92 /* Byte Access */ + #define BUFFER_SIZE 48000 static int rate; @@ -95,18 +98,19 @@ static void dac_audio_stop(void) outw(v, HD64461_GPADR); } - sh_dac_output(0, CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); + sh_dac_output(0, CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); sh_dac_disable(CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); } static void dac_audio_set_rate(void) { unsigned long interval; - struct clk *clk; + struct clk *clk; + + clk = clk_get(NULL,"module_clk"); + interval = (clk_get_rate(clk) / 4) / rate; + clk_put(clk); - clk = clk_get(NULL, "module_clk"); - interval = (clk_get_rate(clk) / 4) / rate; - clk_put(clk); ctrl_outl(interval, TMU1_TCOR); ctrl_outl(interval, TMU1_TCNT); } -- Kristoffer Ericson <Kri...@Gm...> |
From: Kristoffer E. <kri...@gm...> - 2007-08-23 12:58:32
|
Greetings, shortlog: Added missing define TSTR which is needed for compilation, minor cleanup also. Signed-off-by: Kristoffer Ericson <Kri...@gm...> diff --git a/sound/oss/sh_dac_audio.c b/sound/oss/sh_dac_audio.c index b493660..a28be0a 100644 --- a/sound/oss/sh_dac_audio.c +++ b/sound/oss/sh_dac_audio.c @@ -32,10 +32,13 @@ #define MODNAME "sh_dac_audio" #define TMU_TOCR_INIT 0x00 +#define TIMER1_IRQ 16 #define TMU1_TCR_INIT 0x0020 /* Clock/4, rising edge; interrupt on */ #define TMU1_TSTR_INIT 0x02 /* Bit to turn on TMU1 */ +#define TSTR 0xfffffe92 /* Byte Access */ + #define BUFFER_SIZE 48000 static int rate; @@ -95,18 +98,19 @@ static void dac_audio_stop(void) outw(v, HD64461_GPADR); } - sh_dac_output(0, CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); + sh_dac_output(0, CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); sh_dac_disable(CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); } static void dac_audio_set_rate(void) { unsigned long interval; - struct clk *clk; + struct clk *clk; + + clk = clk_get(NULL,"module_clk"); + interval = (clk_get_rate(clk) / 4) / rate; + clk_put(clk); - clk = clk_get(NULL, "module_clk"); - interval = (clk_get_rate(clk) / 4) / rate; - clk_put(clk); ctrl_outl(interval, TMU1_TCOR); ctrl_outl(interval, TMU1_TCNT); } -- Kristoffer Ericson <Kri...@Gm...> |
From: Kristoffer E. <kri...@gm...> - 2007-08-23 12:42:41
|
Greetings, Shortlog: Ugly patch which fixes compilation. Signed-off-by: Kristoffer Ericson <Kri...@gm...> diff --git a/drivers/video/backlight/hp680_bl.c b/drivers/video/backlight/hp680_bl.c index 0899fcc..109329a 100644 --- a/drivers/video/backlight/hp680_bl.c +++ b/drivers/video/backlight/hp680_bl.c @@ -125,8 +125,8 @@ static int hp680bl_remove(struct platform_device *pdev) { struct backlight_device *bd = platform_get_drvdata(pdev); - hp680bl_data.brightness = 0; - hp680bl_data.power = 0; +// hp680bl_data.brightness = 0; +// hp680bl_data.power = 0; hp680bl_send_intensity(bd); backlight_device_unregister(bd); -- Kristoffer Ericson <Kri...@Gm...> |
From: Kristoffer E. <kri...@gm...> - 2007-08-23 12:38:19
|
Greetings, shortlog: Some minor compile fixes. * Added define for INTC_INTR which is used in hd64461 init process. * __irq_demux(irq) is removed and a simple (irq) would do the trick. * Some minor commenting Signed-off-by: Kristoffer Ericson <Kri...@gm...> diff --git a/arch/sh/cchips/hd6446x/hd64461.c b/arch/sh/cchips/hd6446x/hd64461.c index 97f6512..a1894bd 100644 --- a/arch/sh/cchips/hd6446x/hd64461.c +++ b/arch/sh/cchips/hd6446x/hd64461.c @@ -14,6 +14,9 @@ #include <asm/irq.h> #include <asm/hd64461.h> +/* This belongs in cpu specific */ +#define INTC_ICR1 0xA4140010UL + static void disable_hd64461_irq(unsigned int irq) { unsigned short nimr; @@ -121,7 +124,7 @@ int hd64461_irq_demux(int irq) } } } - return __irq_demux(irq); + return (irq); } static struct irqaction irq0 = { hd64461_interrupt, IRQF_DISABLED, CPU_MASK_NONE, "HD64461", NULL, NULL }; @@ -143,6 +146,7 @@ int __init setup_hd64461(void) #endif outw(0xffff, HD64461_NIMR); + /* IRQ 80 -> 95 belongs to HD64461 */ for (i = HD64461_IRQBASE; i < HD64461_IRQBASE + 16; i++) { irq_desc[i].chip = &hd64461_irq_type; } -- Kristoffer Ericson <Kri...@Gm...> |
From: Kristoffer E. <kri...@gm...> - 2007-08-23 12:28:42
|
Greetings, Shortlog: HP6xx_apm is currently broken due to IRQ problems (acking/mask), but this will fix the compiling issues. It also adds better battery values. signed-off-by: Kristoffer Ericson <Kri...@gm...> diff --git a/arch/sh/boards/hp6xx/hp6xx_apm.c b/arch/sh/boards/hp6xx/hp6xx_apm.c index d1c1460..cc713e3 100644 --- a/arch/sh/boards/hp6xx/hp6xx_apm.c +++ b/arch/sh/boards/hp6xx/hp6xx_apm.c @@ -20,9 +20,9 @@ #define APM_CRITICAL 10 #define APM_LOW 30 -#define HP680_BATTERY_MAX 875 -#define HP680_BATTERY_MIN 600 -#define HP680_BATTERY_AC_ON 900 +#define HP680_BATTERY_MAX 898 +#define HP680_BATTERY_MIN 486 +#define HP680_BATTERY_AC_ON 1023 #define MODNAME "hp6x0_apm" @@ -65,9 +65,10 @@ static void hp6x0_apm_get_power_status(struct apm_power_info *info) static irqreturn_t hp6x0_apm_interrupt(int irq, void *dev) { - if (!apm_suspended) - apm_queue_event(APM_USER_SUSPEND); - + if(!APM_DISABLED) + apm_queue_event(APM_USER_SUSPEND); + /* apm_suspended (SH) -> apm_disabled (ARM) + and it is now handled by the driver itself */ return IRQ_HANDLED; } @@ -91,7 +92,6 @@ static int __init hp6x0_apm_init(void) static void __exit hp6x0_apm_exit(void) { free_irq(HP680_BTN_IRQ, 0); - apm_get_info = NULL; } module_init(hp6x0_apm_init); -- Kristoffer Ericson <Kri...@Gm...> |
From: Kristoffer E. <kri...@gm...> - 2007-08-23 12:23:14
|
Greetings, shortlog: HP6xx uses OFFCHIP_IRQ to know the base irq number where non cpu interrupts should start. This define was in IRQ.h before, but since rework got lost. It really belongs inside hd64461.h since the hp6xx wont work without it. signed-off-by: Kristoffer Ericson <Kri...@gm...> diff --git a/include/asm-sh/hd64461.h b/include/asm-sh/hd64461.h index 4dd8592..342ca55 100644 --- a/include/asm-sh/hd64461.h +++ b/include/asm-sh/hd64461.h @@ -226,6 +226,7 @@ #define HD64461_NIMR (CONFIG_HD64461_IOBASE + 0x5002) #define HD64461_IRQBASE OFFCHIP_IRQ_BASE +#define OFFCHIP_IRQ_BASE 64 #define HD64461_IRQ_NUM 16 #define HD64461_IRQ_UART (HD64461_IRQBASE+5) -- Kristoffer Ericson <Kri...@Gm...> |
From: Kristoffer E. <kri...@gm...> - 2007-08-23 12:13:57
|
Forgot to attach. -- Kristoffer Ericson <Kri...@Gm...> |
From: Kristoffer E. <kri...@gm...> - 2007-08-23 12:12:45
|
Greetings, Shortlog: This patchs brings the old hp6xx_defconfig up to speed. Note that this file will require additional patching since some hardware still isn't implemented, this includes cchips support, keyboard driver. The config should be mostly right. Best wishes Kristoffer diff --git a/arch/sh/configs/hp6xx_defconfig b/arch/sh/configs/hp6xx_defconfig index b931d9b..6e4f2a0 100644 --- a/arch/sh/configs/hp6xx_defconfig +++ b/arch/sh/configs/hp6xx_defconfig @@ -1,37 +1,47 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.18 -# Tue Oct 3 11:10:06 2006 +# Linux kernel version: 2.6.23-rc3 +# Thu Aug 23 14:13:32 2007 # CONFIG_SUPERH=y CONFIG_RWSEM_GENERIC_SPINLOCK=y +CONFIG_GENERIC_BUG=y CONFIG_GENERIC_FIND_NEXT_BIT=y CONFIG_GENERIC_HWEIGHT=y CONFIG_GENERIC_HARDIRQS=y CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_CALIBRATE_DELAY=y +CONFIG_GENERIC_TIME=y +CONFIG_GENERIC_CLOCKEVENTS=y +CONFIG_SYS_SUPPORTS_PM=y +CONFIG_SYS_SUPPORTS_APM_EMULATION=y +CONFIG_STACKTRACE_SUPPORT=y +CONFIG_LOCKDEP_SUPPORT=y +# CONFIG_ARCH_HAS_ILOG2_U32 is not set +# CONFIG_ARCH_HAS_ILOG2_U64 is not set +CONFIG_ARCH_NO_VIRT_TO_BUS=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" # -# Code maturity level options +# General setup # CONFIG_EXPERIMENTAL=y CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 - -# -# General setup -# CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_SWAP=y # CONFIG_SYSVIPC is not set -# CONFIG_BSD_PROCESS_ACCT is not set -# CONFIG_UTS_NS is not set -# CONFIG_IKCONFIG is not set +CONFIG_BSD_PROCESS_ACCT=y +# CONFIG_BSD_PROCESS_ACCT_V3 is not set +# CONFIG_USER_NS is not set +CONFIG_IKCONFIG=y +CONFIG_IKCONFIG_PROC=y +CONFIG_LOG_BUF_SHIFT=14 +CONFIG_SYSFS_DEPRECATED=y # CONFIG_RELAY is not set -CONFIG_INITRAMFS_SOURCE="" -CONFIG_CC_OPTIMIZE_FOR_SIZE=y +# CONFIG_BLK_DEV_INITRD is not set +# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_SYSCTL=y CONFIG_EMBEDDED=y CONFIG_UID16=y @@ -44,27 +54,25 @@ CONFIG_BUG=y CONFIG_ELF_CORE=y CONFIG_BASE_FULL=y CONFIG_FUTEX=y +CONFIG_ANON_INODES=y CONFIG_EPOLL=y +CONFIG_SIGNALFD=y +CONFIG_TIMERFD=y +CONFIG_EVENTFD=y CONFIG_SHMEM=y -CONFIG_SLAB=y CONFIG_VM_EVENT_COUNTERS=y +CONFIG_SLAB=y +# CONFIG_SLUB is not set +# CONFIG_SLOB is not set CONFIG_RT_MUTEXES=y # CONFIG_TINY_SHMEM is not set CONFIG_BASE_SMALL=0 -# CONFIG_SLOB is not set - -# -# Loadable module support -# # CONFIG_MODULES is not set - -# -# Block layer -# CONFIG_BLOCK=y # CONFIG_LBD is not set # CONFIG_BLK_DEV_IO_TRACE is not set # CONFIG_LSF is not set +# CONFIG_BLK_DEV_BSG is not set # # IO Schedulers @@ -82,55 +90,17 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" # # System type # -# CONFIG_SH_SOLUTION_ENGINE is not set -# CONFIG_SH_7751_SOLUTION_ENGINE is not set -# CONFIG_SH_7300_SOLUTION_ENGINE is not set -# CONFIG_SH_7343_SOLUTION_ENGINE is not set -# CONFIG_SH_73180_SOLUTION_ENGINE is not set -# CONFIG_SH_7751_SYSTEMH is not set -CONFIG_SH_HP6XX=y -# CONFIG_SH_EC3104 is not set -# CONFIG_SH_SATURN is not set -# CONFIG_SH_DREAMCAST is not set -# CONFIG_SH_BIGSUR is not set -# CONFIG_SH_MPC1211 is not set -# CONFIG_SH_SH03 is not set -# CONFIG_SH_SECUREEDGE5410 is not set -# CONFIG_SH_HS7751RVOIP is not set -# CONFIG_SH_7710VOIPGW is not set -# CONFIG_SH_RTS7751R2D is not set -# CONFIG_SH_R7780RP is not set -# CONFIG_SH_EDOSK7705 is not set -# CONFIG_SH_SH4202_MICRODEV is not set -# CONFIG_SH_LANDISK is not set -# CONFIG_SH_TITAN is not set -# CONFIG_SH_SHMIN is not set -# CONFIG_SH_UNKNOWN is not set - -# -# Processor selection -# CONFIG_CPU_SH3=y - -# -# SH-2 Processor Support -# -# CONFIG_CPU_SUBTYPE_SH7604 is not set - -# -# SH-3 Processor Support -# -# CONFIG_CPU_SUBTYPE_SH7300 is not set +# CONFIG_CPU_SUBTYPE_SH7619 is not set +# CONFIG_CPU_SUBTYPE_SH7206 is not set # CONFIG_CPU_SUBTYPE_SH7705 is not set # CONFIG_CPU_SUBTYPE_SH7706 is not set # CONFIG_CPU_SUBTYPE_SH7707 is not set # CONFIG_CPU_SUBTYPE_SH7708 is not set CONFIG_CPU_SUBTYPE_SH7709=y # CONFIG_CPU_SUBTYPE_SH7710 is not set - -# -# SH-4 Processor Support -# +# CONFIG_CPU_SUBTYPE_SH7712 is not set +# CONFIG_CPU_SUBTYPE_SH7720 is not set # CONFIG_CPU_SUBTYPE_SH7750 is not set # CONFIG_CPU_SUBTYPE_SH7091 is not set # CONFIG_CPU_SUBTYPE_SH7750R is not set @@ -139,66 +109,78 @@ CONFIG_CPU_SUBTYPE_SH7709=y # CONFIG_CPU_SUBTYPE_SH7751R is not set # CONFIG_CPU_SUBTYPE_SH7760 is not set # CONFIG_CPU_SUBTYPE_SH4_202 is not set - -# -# ST40 Processor Support -# # CONFIG_CPU_SUBTYPE_ST40STB1 is not set # CONFIG_CPU_SUBTYPE_ST40GX1 is not set - -# -# SH-4A Processor Support -# # CONFIG_CPU_SUBTYPE_SH7770 is not set # CONFIG_CPU_SUBTYPE_SH7780 is not set - -# -# SH4AL-DSP Processor Support -# -# CONFIG_CPU_SUBTYPE_SH73180 is not set +# CONFIG_CPU_SUBTYPE_SH7785 is not set +# CONFIG_CPU_SUBTYPE_SHX3 is not set # CONFIG_CPU_SUBTYPE_SH7343 is not set +# CONFIG_CPU_SUBTYPE_SH7722 is not set # # Memory management options # +CONFIG_QUICKLIST=y CONFIG_MMU=y CONFIG_PAGE_OFFSET=0x80000000 CONFIG_MEMORY_START=0x0c000000 CONFIG_MEMORY_SIZE=0x00400000 CONFIG_VSYSCALL=y +CONFIG_ARCH_FLATMEM_ENABLE=y +CONFIG_ARCH_SPARSEMEM_ENABLE=y +CONFIG_ARCH_SPARSEMEM_DEFAULT=y +CONFIG_MAX_ACTIVE_REGIONS=1 +CONFIG_ARCH_POPULATES_NODE_MAP=y +CONFIG_ARCH_SELECT_MEMORY_MODEL=y +CONFIG_PAGE_SIZE_4KB=y +# CONFIG_PAGE_SIZE_8KB is not set +# CONFIG_PAGE_SIZE_64KB is not set CONFIG_SELECT_MEMORY_MODEL=y CONFIG_FLATMEM_MANUAL=y # CONFIG_DISCONTIGMEM_MANUAL is not set # CONFIG_SPARSEMEM_MANUAL is not set CONFIG_FLATMEM=y CONFIG_FLAT_NODE_MEM_MAP=y -# CONFIG_SPARSEMEM_STATIC is not set +CONFIG_SPARSEMEM_STATIC=y CONFIG_SPLIT_PTLOCK_CPUS=4 # CONFIG_RESOURCES_64BIT is not set +CONFIG_ZONE_DMA_FLAG=0 +CONFIG_NR_QUICK=2 # # Cache configuration # # CONFIG_SH_DIRECT_MAPPED is not set -# CONFIG_SH_WRITETHROUGH is not set -# CONFIG_SH_OCRAM is not set +CONFIG_CACHE_WRITEBACK=y +# CONFIG_CACHE_WRITETHROUGH is not set +# CONFIG_CACHE_OFF is not set # # Processor features # CONFIG_CPU_LITTLE_ENDIAN=y +# CONFIG_CPU_BIG_ENDIAN is not set # CONFIG_SH_FPU_EMU is not set -# CONFIG_SH_DSP is not set CONFIG_SH_ADC=y CONFIG_CPU_HAS_INTEVT=y -CONFIG_CPU_HAS_PINT_IRQ=y CONFIG_CPU_HAS_SR_RB=y # -# Timer support +# Board support +# +# CONFIG_SH_SOLUTION_ENGINE is not set +CONFIG_SH_HP6XX=y + +# +# Timer and clock configuration # CONFIG_SH_TMU=y +CONFIG_SH_TIMER_IRQ=16 CONFIG_SH_PCLK_FREQ=22110000 +# CONFIG_TICK_ONESHOT is not set +# CONFIG_NO_HZ is not set +# CONFIG_HIGH_RES_TIMERS is not set # # CPU Frequency scaling @@ -208,6 +190,7 @@ CONFIG_SH_PCLK_FREQ=22110000 # # DMA support # +CONFIG_SH_DMA_API=y CONFIG_SH_DMA=y CONFIG_NR_ONCHIP_DMA_CHANNELS=4 # CONFIG_NR_DMA_CHANNELS_BOOL is not set @@ -223,14 +206,21 @@ CONFIG_HD64461_IOBASE=0xb0000000 CONFIG_HD64461_ENABLER=y # +# Additional SuperH Device Drivers +# +# CONFIG_HEARTBEAT is not set +# CONFIG_PUSH_SWITCH is not set + +# # Kernel features # # CONFIG_HZ_100 is not set CONFIG_HZ_250=y +# CONFIG_HZ_300 is not set # CONFIG_HZ_1000 is not set CONFIG_HZ=250 # CONFIG_KEXEC is not set -# CONFIG_SMP is not set +# CONFIG_CRASH_DUMP is not set CONFIG_PREEMPT_NONE=y # CONFIG_PREEMPT_VOLUNTARY is not set # CONFIG_PREEMPT is not set @@ -240,14 +230,13 @@ CONFIG_PREEMPT_NONE=y # CONFIG_ZERO_PAGE_OFFSET=0x00001000 CONFIG_BOOT_LINK_OFFSET=0x00800000 -# CONFIG_UBC_WAKEUP is not set # CONFIG_CMDLINE_BOOL is not set # # Bus options # CONFIG_ISA=y -# CONFIG_PCI is not set +# CONFIG_ARCH_SUPPORTS_MSI is not set # # PCCARD (PCMCIA/CardBus) support @@ -266,14 +255,9 @@ CONFIG_PCMCIA_IOCTL=y CONFIG_PCMCIA_PROBE=y # -# PCI Hotplug Support -# - -# # Executable file formats # CONFIG_BINFMT_ELF=y -# CONFIG_BINFMT_FLAT is not set # CONFIG_BINFMT_MISC is not set # @@ -282,8 +266,9 @@ CONFIG_BINFMT_ELF=y CONFIG_PM=y CONFIG_PM_LEGACY=y # CONFIG_PM_DEBUG is not set -# CONFIG_PM_SYSFS_DEPRECATED is not set -CONFIG_APM=y +CONFIG_PM_SLEEP=y +CONFIG_SUSPEND=y +CONFIG_APM_EMULATION=y # # Networking @@ -301,109 +286,79 @@ CONFIG_APM=y CONFIG_PREVENT_FIRMWARE_BUILD=y CONFIG_FW_LOADER=y # CONFIG_SYS_HYPERVISOR is not set - -# -# Connector - unified userspace <-> kernelspace linker -# - -# -# Memory Technology Devices (MTD) -# # CONFIG_MTD is not set - -# -# Parallel port support -# # CONFIG_PARPORT is not set - -# -# Plug and Play support -# # CONFIG_PNP is not set - -# -# Block devices -# +CONFIG_BLK_DEV=y # CONFIG_BLK_DEV_COW_COMMON is not set # CONFIG_BLK_DEV_LOOP 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_CDROM_PKTCDVD is not set - -# -# ATA/ATAPI/MFM/RLL support -# -CONFIG_IDE=y -CONFIG_IDE_MAX_HWIFS=4 -CONFIG_BLK_DEV_IDE=y - -# -# Please see Documentation/ide.txt for help/info on IDE drives -# -# CONFIG_BLK_DEV_IDE_SATA is not set -CONFIG_BLK_DEV_IDEDISK=y -# CONFIG_IDEDISK_MULTI_MODE is not set -CONFIG_BLK_DEV_IDECS=y -# CONFIG_BLK_DEV_IDECD is not set -# CONFIG_BLK_DEV_IDETAPE is not set -# CONFIG_BLK_DEV_IDEFLOPPY is not set -# CONFIG_IDE_TASK_IOCTL is not set - -# -# IDE chipset support/bugfixes -# -CONFIG_IDE_GENERIC=y -# CONFIG_IDE_ARM is not set -# CONFIG_IDE_CHIPSETS is not set -# CONFIG_BLK_DEV_IDEDMA is not set -# CONFIG_IDEDMA_AUTO is not set -# CONFIG_BLK_DEV_HD is not set +CONFIG_MISC_DEVICES=y +# CONFIG_EEPROM_93CX6 is not set +# CONFIG_IDE is not set # # SCSI device support # # CONFIG_RAID_ATTRS is not set -# CONFIG_SCSI is not set +CONFIG_SCSI=y +CONFIG_SCSI_DMA=y +# CONFIG_SCSI_TGT is not set # CONFIG_SCSI_NETLINK is not set - -# -# Serial ATA (prod) and Parallel ATA (experimental) drivers -# -# CONFIG_ATA is not set - -# -# Old CD-ROM drivers (not SCSI, not IDE) -# -# CONFIG_CD_NO_IDESCSI is not set - -# -# Multi-device support (RAID and LVM) -# +CONFIG_SCSI_PROC_FS=y + +# +# SCSI support type (disk, tape, CD-ROM) +# +# CONFIG_BLK_DEV_SD is not set +# CONFIG_CHR_DEV_ST is not set +# CONFIG_CHR_DEV_OSST is not set +# CONFIG_BLK_DEV_SR is not set +# CONFIG_CHR_DEV_SG is not set +# CONFIG_CHR_DEV_SCH is not set + +# +# Some SCSI devices (e.g. CD jukebox) support multiple LUNs +# +# CONFIG_SCSI_MULTI_LUN is not set +# CONFIG_SCSI_CONSTANTS is not set +# CONFIG_SCSI_LOGGING is not set +# CONFIG_SCSI_SCAN_ASYNC is not set + +# +# SCSI Transports +# +# CONFIG_SCSI_SPI_ATTRS is not set +# CONFIG_SCSI_FC_ATTRS is not set +# CONFIG_SCSI_SAS_LIBSAS is not set +CONFIG_SCSI_LOWLEVEL=y +# CONFIG_SCSI_AHA152X is not set +# CONFIG_SCSI_AIC7XXX_OLD is not set +# CONFIG_SCSI_IN2000 is not set +# CONFIG_SCSI_DTC3280 is not set +# CONFIG_SCSI_FUTURE_DOMAIN is not set +# CONFIG_SCSI_GENERIC_NCR5380 is not set +# CONFIG_SCSI_GENERIC_NCR5380_MMIO is not set +# CONFIG_SCSI_NCR53C406A is not set +# CONFIG_SCSI_PAS16 is not set +# CONFIG_SCSI_PSI240I is not set +# CONFIG_SCSI_QLOGIC_FAS is not set +# CONFIG_SCSI_SYM53C416 is not set +# CONFIG_SCSI_T128 is not set +# CONFIG_SCSI_DEBUG is not set +# CONFIG_SCSI_LOWLEVEL_PCMCIA is not set +CONFIG_ATA=y +# CONFIG_ATA_NONSTANDARD is not set +# CONFIG_PATA_LEGACY is not set +CONFIG_PATA_PCMCIA=y +# CONFIG_PATA_QDI is not set +# CONFIG_PATA_WINBOND_VLB is not set +# CONFIG_PATA_PLATFORM is not set # CONFIG_MD is not set - -# -# Fusion MPT device support -# -# CONFIG_FUSION is not set - -# -# IEEE 1394 (FireWire) support -# - -# -# I2O device support -# - -# -# ISDN subsystem -# - -# -# Telephony Support -# # CONFIG_PHONE is not set # @@ -411,6 +366,7 @@ CONFIG_IDE_GENERIC=y # CONFIG_INPUT=y # CONFIG_INPUT_FF_MEMLESS is not set +CONFIG_INPUT_POLLDEV=y # # Userland interfaces @@ -423,7 +379,7 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 CONFIG_INPUT_TSDEV=y CONFIG_INPUT_TSDEV_SCREEN_X=240 CONFIG_INPUT_TSDEV_SCREEN_Y=320 -# CONFIG_INPUT_EVDEV is not set +CONFIG_INPUT_EVDEV=y # CONFIG_INPUT_EVBUG is not set # @@ -438,7 +394,9 @@ CONFIG_INPUT_KEYBOARD=y # CONFIG_KEYBOARD_STOWAWAY is not set # CONFIG_INPUT_MOUSE is not set # CONFIG_INPUT_JOYSTICK is not set +# CONFIG_INPUT_TABLET is not set CONFIG_INPUT_TOUCHSCREEN=y +# CONFIG_TOUCHSCREEN_FUJITSU is not set # CONFIG_TOUCHSCREEN_GUNZE is not set # CONFIG_TOUCHSCREEN_ELO is not set # CONFIG_TOUCHSCREEN_MTOUCH is not set @@ -447,6 +405,7 @@ CONFIG_TOUCHSCREEN_HP600=y # CONFIG_TOUCHSCREEN_PENMOUNT is not set # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set # CONFIG_TOUCHSCREEN_TOUCHWIN is not set +# CONFIG_TOUCHSCREEN_UCB1400 is not set # CONFIG_INPUT_MISC is not set # @@ -476,46 +435,29 @@ CONFIG_HW_CONSOLE=y # # Non-8250 serial port support # -# CONFIG_SERIAL_SH_SCI is not set +CONFIG_SERIAL_SH_SCI=y +CONFIG_SERIAL_SH_SCI_NR_UARTS=2 +CONFIG_SERIAL_SH_SCI_CONSOLE=y +CONFIG_SERIAL_CORE=y +CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_UNIX98_PTYS=y CONFIG_LEGACY_PTYS=y -CONFIG_LEGACY_PTY_COUNT=256 - -# -# IPMI -# +CONFIG_LEGACY_PTY_COUNT=128 # CONFIG_IPMI_HANDLER is not set - -# -# Watchdog Cards -# # CONFIG_WATCHDOG is not set CONFIG_HW_RANDOM=y -# CONFIG_GEN_RTC is not set # CONFIG_DTLK is not set # CONFIG_R3964 is not set # -# Ftape, the floppy tape device driver -# - -# # 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 - -# -# TPM devices -# # CONFIG_TCG_TPM is not set -# CONFIG_TELCLOCK is not set - -# -# I2C support -# +CONFIG_DEVPORT=y # CONFIG_I2C is not set # @@ -523,48 +465,68 @@ CONFIG_HW_RANDOM=y # # CONFIG_SPI is not set # CONFIG_SPI_MASTER is not set - -# -# Dallas's 1-wire bus -# - -# -# Hardware Monitoring support -# +# CONFIG_W1 is not set +# CONFIG_POWER_SUPPLY is not set CONFIG_HWMON=y # CONFIG_HWMON_VID is not set # CONFIG_SENSORS_ABITUGURU is not set +# CONFIG_SENSORS_ABITUGURU3 is not set # CONFIG_SENSORS_F71805F is not set +# CONFIG_SENSORS_IT87 is not set +# CONFIG_SENSORS_PC87360 is not set +# CONFIG_SENSORS_PC87427 is not set +# CONFIG_SENSORS_SMSC47M1 is not set +# CONFIG_SENSORS_SMSC47B397 is not set # CONFIG_SENSORS_VT1211 is not set +# CONFIG_SENSORS_W83627HF is not set +# CONFIG_SENSORS_W83627EHF is not set # CONFIG_HWMON_DEBUG_CHIP is not set # -# Misc devices +# Multifunction device drivers # +# CONFIG_MFD_SM501 is not set # # Multimedia devices # # CONFIG_VIDEO_DEV is not set -CONFIG_VIDEO_V4L2=y +CONFIG_DAB=y # -# Digital Video Broadcasting Devices +# Graphics support # +CONFIG_BACKLIGHT_LCD_SUPPORT=y +CONFIG_LCD_CLASS_DEVICE=y +CONFIG_BACKLIGHT_CLASS_DEVICE=y +CONFIG_BACKLIGHT_HP680=y # -# Graphics support +# Display device support # -CONFIG_FIRMWARE_EDID=y +# CONFIG_DISPLAY_SUPPORT is not set +# CONFIG_VGASTATE is not set +CONFIG_VIDEO_OUTPUT_CONTROL=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_SYS_FILLRECT is not set +# CONFIG_FB_SYS_COPYAREA is not set +# CONFIG_FB_SYS_IMAGEBLIT is not set +# CONFIG_FB_SYS_FOPS is not set +CONFIG_FB_DEFERRED_IO=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 -# CONFIG_FB_EPSON1355 is not set + +# +# Frame buffer hardware drivers +# # CONFIG_FB_S1D13XXX is not set CONFIG_FB_HIT=y # CONFIG_FB_VIRTUAL is not set @@ -575,6 +537,7 @@ CONFIG_FB_HIT=y # CONFIG_MDA_CONSOLE is not set CONFIG_DUMMY_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE=y +# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set CONFIG_FONTS=y # CONFIG_FONT_8x8 is not set @@ -587,12 +550,7 @@ CONFIG_FONT_PEARL_8x8=y # CONFIG_FONT_SUN8x16 is not set # CONFIG_FONT_SUN12x22 is not set # CONFIG_FONT_10x18 is not set - -# -# Logo configuration -# # CONFIG_LOGO is not set -# CONFIG_BACKLIGHT_LCD_SUPPORT is not set # # Sound @@ -608,58 +566,47 @@ CONFIG_SOUND=y # Open Sound System # CONFIG_SOUND_PRIME=y -# CONFIG_OSS_OBSOLETE_DRIVER is not set # CONFIG_SOUND_MSNDCLAS is not set # CONFIG_SOUND_MSNDPIN is not set CONFIG_SOUND_SH_DAC_AUDIO=y CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL=1 - -# -# USB support -# -# CONFIG_USB_ARCH_HAS_HCD is not set -# CONFIG_USB_ARCH_HAS_OHCI is not set -# CONFIG_USB_ARCH_HAS_EHCI is not set - -# -# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' -# - -# -# USB Gadget Support -# -# CONFIG_USB_GADGET is not set - -# -# MMC/SD Card support -# +# CONFIG_HID_SUPPORT is not set +# CONFIG_USB_SUPPORT is not set # CONFIG_MMC is not set - -# -# LED devices -# # CONFIG_NEW_LEDS is not set +CONFIG_RTC_LIB=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_HCTOSYS=y +CONFIG_RTC_HCTOSYS_DEVICE="rtc0" +# CONFIG_RTC_DEBUG is not set # -# LED drivers -# - -# -# LED Triggers +# RTC interfaces # +CONFIG_RTC_INTF_SYSFS=y +CONFIG_RTC_INTF_PROC=y +CONFIG_RTC_INTF_DEV=y +# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set +# CONFIG_RTC_DRV_TEST is not set # -# InfiniBand support +# SPI RTC drivers # # -# EDAC - error detection and reporting (RAS) (EXPERIMENTAL) +# Platform RTC drivers # +# CONFIG_RTC_DRV_DS1553 is not set +# CONFIG_RTC_DRV_STK17TA8 is not set +# CONFIG_RTC_DRV_DS1742 is not set +# CONFIG_RTC_DRV_M48T86 is not set +# CONFIG_RTC_DRV_M48T59 is not set +# CONFIG_RTC_DRV_V3020 is not set # -# Real Time Clock +# on-CPU RTC drivers # -# CONFIG_RTC_CLASS is not set +CONFIG_RTC_DRV_SH=y # # DMA Engine support @@ -675,16 +622,23 @@ CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL=1 # # +# Userspace I/O +# +# CONFIG_UIO is not set + +# # File systems # CONFIG_EXT2_FS=y # CONFIG_EXT2_FS_XATTR is not set # CONFIG_EXT2_FS_XIP is not set # CONFIG_EXT3_FS is not set +# CONFIG_EXT4DEV_FS is not set # CONFIG_REISERFS_FS is not set # CONFIG_JFS_FS is not set # CONFIG_FS_POSIX_ACL is not set # CONFIG_XFS_FS is not set +# CONFIG_GFS2_FS is not set # CONFIG_MINIX_FS is not set # CONFIG_ROMFS_FS is not set CONFIG_INOTIFY=y @@ -705,7 +659,7 @@ CONFIG_DNOTIFY=y # DOS/FAT/NT Filesystems # CONFIG_FAT_FS=y -# CONFIG_MSDOS_FS is not set +CONFIG_MSDOS_FS=y CONFIG_VFAT_FS=y CONFIG_FAT_DEFAULT_CODEPAGE=437 CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" @@ -755,7 +709,7 @@ CONFIG_NLS_DEFAULT="iso8859-1" # CONFIG_NLS_CODEPAGE_437 is not set # CONFIG_NLS_CODEPAGE_737 is not set # CONFIG_NLS_CODEPAGE_775 is not set -# CONFIG_NLS_CODEPAGE_850 is not set +CONFIG_NLS_CODEPAGE_850=y # CONFIG_NLS_CODEPAGE_852 is not set # CONFIG_NLS_CODEPAGE_855 is not set # CONFIG_NLS_CODEPAGE_857 is not set @@ -799,34 +753,73 @@ CONFIG_NLS_DEFAULT="iso8859-1" # # Kernel hacking # +CONFIG_TRACE_IRQFLAGS_SUPPORT=y # CONFIG_PRINTK_TIME is not set CONFIG_ENABLE_MUST_CHECK=y # CONFIG_MAGIC_SYSRQ is not set # CONFIG_UNUSED_SYMBOLS is not set +# CONFIG_DEBUG_FS is not set +# CONFIG_HEADERS_CHECK is not set # CONFIG_DEBUG_KERNEL is not set -CONFIG_LOG_BUF_SHIFT=14 # CONFIG_DEBUG_BUGVERBOSE is not set -# CONFIG_DEBUG_FS is not set -# CONFIG_UNWIND_INFO is not set # CONFIG_SH_STANDARD_BIOS is not set -# CONFIG_KGDB is not set +# CONFIG_EARLY_SCIF_CONSOLE is not set +# CONFIG_SH_KGDB is not set # # Security options # # CONFIG_KEYS is not set # CONFIG_SECURITY is not set - -# -# Cryptographic options -# -# CONFIG_CRYPTO is not set +CONFIG_CRYPTO=y +CONFIG_CRYPTO_ALGAPI=y +CONFIG_CRYPTO_BLKCIPHER=y +CONFIG_CRYPTO_MANAGER=y +# CONFIG_CRYPTO_HMAC is not set +# CONFIG_CRYPTO_XCBC is not set +# CONFIG_CRYPTO_NULL is not set +# CONFIG_CRYPTO_MD4 is not set +CONFIG_CRYPTO_MD5=y +# CONFIG_CRYPTO_SHA1 is not set +# CONFIG_CRYPTO_SHA256 is not set +# CONFIG_CRYPTO_SHA512 is not set +# CONFIG_CRYPTO_WP512 is not set +# CONFIG_CRYPTO_TGR192 is not set +# CONFIG_CRYPTO_GF128MUL is not set +CONFIG_CRYPTO_ECB=y +CONFIG_CRYPTO_CBC=y +CONFIG_CRYPTO_PCBC=y +# CONFIG_CRYPTO_LRW is not set +# CONFIG_CRYPTO_CRYPTD is not set +# CONFIG_CRYPTO_DES is not set +# CONFIG_CRYPTO_FCRYPT is not set +# CONFIG_CRYPTO_BLOWFISH is not set +# CONFIG_CRYPTO_TWOFISH is not set +# CONFIG_CRYPTO_SERPENT is not set +# CONFIG_CRYPTO_AES is not set +# CONFIG_CRYPTO_CAST5 is not set +# CONFIG_CRYPTO_CAST6 is not set +# CONFIG_CRYPTO_TEA is not set +# CONFIG_CRYPTO_ARC4 is not set +# CONFIG_CRYPTO_KHAZAD is not set +# CONFIG_CRYPTO_ANUBIS is not set +# CONFIG_CRYPTO_DEFLATE is not set +# CONFIG_CRYPTO_MICHAEL_MIC is not set +# CONFIG_CRYPTO_CRC32C is not set +# CONFIG_CRYPTO_CAMELLIA is not set +# CONFIG_CRYPTO_HW is not set # # Library routines # +CONFIG_BITREVERSE=y # CONFIG_CRC_CCITT is not set -# CONFIG_CRC16 is not set +CONFIG_CRC16=y +# CONFIG_CRC_ITU_T is not set CONFIG_CRC32=y +# CONFIG_CRC7 is not set # CONFIG_LIBCRC32C is not set CONFIG_PLIST=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT=y +CONFIG_HAS_DMA=y -- Kristoffer Ericson <Kri...@Gm...> |
From: Magnus D. <mag...@gm...> - 2007-08-23 10:18:18
|
On 8/24/07, Kristoffer Ericson <kri...@gm...> wrote: > Big thanks to you and Markus. No worries. Hope it helps. > I'll pull down a fresh lethal.git tree and see where it fails, and push the fix upstreams. > Whats broken in general? I'm not sure exactly what is broken, but the defconfig doesn't compile. Fixing that is a good start. Remember the problem with OFFCHIP_IRQ_BASE? It is kind of meaningless for me to try to fix it because I don't have any hardware to run the kernel on... And maybe the defconfig is broken itself? Please write patches against this tree (contains 2.6.24 material at the moment): http://git.kernel.org/?p=linux/kernel/git/lethal/sh-2.6.git;a=summary Cheers, / magnus |
From: Kristoffer E. <kri...@gm...> - 2007-08-23 10:03:02
|
Big thanks to you and Markus. I'll pull down a fresh lethal.git tree and see where it fails, and push the fix upstreams. Whats broken in general? Best wishes Kristoffer On Thu, 23 Aug 2007 18:53:40 +0900 "Magnus Damm" <mag...@gm...> wrote: > Hi Kristoffer, > > On 8/24/07, Kristoffer Ericson <kri...@gm...> wrote: > > Greetings, > > > > Didn't get a reply on my last mail, so here goes again. Basicly how do I calculate the IRQ number using the INTC table in setup-sh770x.c. > > Hehe, your email are still on my todo list. > > I wanted to answer your question, but I hesitated a bit because i'm > still not really sure why the official tree is broken and what the > state is of your tree. I wish we could work together and fix up the > official 2.6.24 tree step by step. > > > For instance I want to know where IRQ4 ends up, If I check how the RTC IRQ's are calculated and use the I end up at IRQ 30. > > Not sure If I understand it properly. > > There is a private set of enum_ids for each set of tables passed to > the intc code using register_intc_controller(). The enum_id value zero > needs to be treated as unused and all other values are used to provide > mappings for the intc code between interrupts and bits or bit fields > in registers. For setup-sh770x.c the first useful enum_id is IRQ0. > These enum_ids are private data for the intc code and there is no > point in trying to use them somewhere else. > > What you are looking for is hidden inside vectors[] - the information > provided by INTC_VECT(). The first argument to INTC_VECT() is the > private enum_id and the second one the vector number specified by the > processor data sheet. This vector number is hard coded in the > processor chip and the intc tables are used to describe the > relationship between these vectors and certain registers. > > You should look at the evt2irq() macro in include/asm-sh/irq.h to > figure out the relationship between the processor vector number > (second argument to INTC_VECT()) and the IRQ number passed to > request_irq(). The PINT07 interrupt source for example is located on > vector 0x700 and using the evt2irq() macro this gives us IRQ 40. > > Hope this helps. I'd be happy to help out hacking up the new pint > controller but I feel we need to get the upstream kernel in a better > shape first. Hint: send patches! =) > > Happy hacking! > > / magnus -- Kristoffer Ericson <Kri...@Gm...> |