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: Paul M. <le...@li...> - 2007-03-27 02:47:03
|
On Mon, Mar 26, 2007 at 06:45:42PM +0000, Kristoffer Ericson wrote: > /arch/sh/hp6xx/setup.c: Cleanups and added pata_platform support > * Added pata_platform support for CF slot since ide-sh has been removed. > * Removed specific hd64461_mv and it will now use the io_generic > * Removed obselete comment (concerning the need to move to io_generic) > * Added copyright notice > > signed-off-by: Kristoffer Ericson <Kri...@ho...> > Again, there's a lot of unusual whitespace changes here, and completely broken spaces vs tabs. Whatever you're using as an editor, I suggest you throw it out and use something that can show these as errors. Likewise, your other inlined patch is also line-wrapped and broken by your mailer. Please clean this up and resubmit with a coherent mailer. |
From: Kristoffer E. <kri...@ho...> - 2007-03-26 19:02:45
|
Thoughts? diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7709.c b/arch/sh/kernel/cpu/sh3/setup-sh7709.c index dc9b211..a76777f 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7709.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7709.c @@ -55,6 +55,8 @@ __initcall(sh7709_devices_setup); #define IPRx(A,N) .addr=A, .shift=0*N*-1 #define IPRA(N) IPRx(0xfffffee2UL,N) #define IPRB(N) IPRx(0xfffffee4UL,N) +#define IPRC(N) IPRx(0xa4000016UL,N) +#define IPRD(N) IPRx(0xa4000018UL,N) #define IPRE(N) IPRx(0xa400001aUL,N) static struct ipr_data sh7709_ipr_map[] = { @@ -63,6 +65,12 @@ static struct ipr_data sh7709_ipr_map[] = { [22] = { IPRA(3-0), 2 }, /* RTC CUI */ [23 ... 26] = { IPRB(7-4), 3 }, /* SCI */ [27] = { IPRB(15-12), 2 }, /* WDT ITI */ + [32] = { IPRC(0), 1 }, /* IRQ 0 */ + [33] = { IPRC(1), 1 }, /* IRQ 1 */ + [34] = { IPRC(2), 1 }, /* IRQ 2 */ + [35] = { IPRC(3), 1 }, /* IRQ 3 */ + [36] = { IPRD(0), 1 }, /* IRQ 4 */ + [37] = { IPRD(1), 1 }, /* IRQ 5 */ [48 ... 51] = { IPRE(15-12), 7 }, /* DMA */ [52 ... 55] = { IPRE(11-8), 3 }, /* IRDA */ [56 ... 59] = { IPRE(7-4), 3 }, /* SCIF */ _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Kristoffer E. <kri...@ho...> - 2007-03-26 18:45:55
|
/arch/sh/hp6xx/setup.c: Cleanups and added pata_platform support * Added pata_platform support for CF slot since ide-sh has been removed. * Removed specific hd64461_mv and it will now use the io_generic * Removed obselete comment (concerning the need to move to io_generic) * Added copyright notice signed-off-by: Kristoffer Ericson <Kri...@ho...> >From: Paul Mundt <le...@li...> >To: Kristoffer Ericson <kri...@ho...> >CC: lin...@li... >Subject: Re: HP6xx/sh7709 patches - 1 >Date: Sun, 25 Mar 2007 13:04:49 +0900 > >On Fri, Mar 23, 2007 at 07:40:31PM +0000, Kristoffer Ericson wrote: > > diff --git a/arch/sh/boards/hp6xx/setup.c b/arch/sh/boards/hp6xx/setup.c > > index b5a9664..266c338 100644 > > --- a/arch/sh/boards/hp6xx/setup.c > > +++ b/arch/sh/boards/hp6xx/setup.c > > @@ -15,10 +15,45 @@ > > #include <asm/irq.h> > > #include <asm/hp6xx.h> > > #include <asm/cpu/dac.h> > > +#include <linux/platform_device.h> > > >linux/ includes before asm/ includes.. > > > +static struct resource cf_ide_resources[] = { > > + [0] = { > > + .start = 0xb5000000 + 0x1f0, > > + .end = 0xb5000000 + 0x1f0 + 0x08 - 1, > > + .flags = IORESOURCE_MEM, > > + }, > > + [1] = { > > + .start = 0xb5000000 + 0x1fe, > > + .end = 0xb5000000 + 0x1fe + 1, > > + .flags = IORESOURCE_MEM, > > + }, > > + [2] = { > > + .start = 93, > > + .flags = IORESOURCE_IRQ, > > + }, > > +}; > > + >This has some very strange whitespace, please check for space errors >before making the diff. > >I suspect you also ant to use 0x15000000 here rather than 0xb5, since you >set the resouce type to MEM it will be remapped and you'll get back >0xb5.. anyways. > > > .mv_irq_demux = hd64461_irq_demux, > > + .mv_readw = hd64461_readw, > > + .mv_writew = hd64461_writew, > > }; > >Any reason for keeping these? _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Nobuhiro I. <iwa...@ni...> - 2007-03-26 14:07:21
|
Hi , Paul . On Mon, 26 Mar 2007 19:07:43 +0900 Paul Mundt <pau...@re...> wrote: > > > Applied with a few minor changes. There was a lot of trailing white space > in this as well, which I also fixed up. In the future, please verify that > you aren't adding trailing white space in these patches. > Thank you . I'll watch my step in the future. > I also changed the PCI INT# routing to correspond with a slot-based > lookup table, this is the preferred approach. Please verify that > everything still works (pushed to my 2.6.22 tree). Thank you . I confirmed it. and work especially without trouble. regards, Nobuhiro -- Nobuhiro Iwamatsu E-Mail : he...@t-... GPG ID : 3170EBE9 |
From: Paul M. <pau...@re...> - 2007-03-26 05:33:55
|
On Sun, Mar 25, 2007 at 08:59:31PM +0900, Nobuhiro Iwamatsu wrote: > I wrote code to support L-BOX RE2[0]. > > L-BOX RE2 is a router with SH7751R. > This has CF-size slot , Cardbus, serial, and LAN x2 . > This is one of the very few SH boards that a general person > can obtain now. > > The kernel built into the product of L-BOX is 2.4.28. > I bought this router and to work by latest git kernel, rewrote the code. > Now , CF, serial , and LAN x2 work . > > Please apply this patch . > Applied with a few minor changes. There was a lot of trailing white space in this as well, which I also fixed up. In the future, please verify that you aren't adding trailing white space in these patches. I also changed the PCI INT# routing to correspond with a slot-based lookup table, this is the preferred approach. Please verify that everything still works (pushed to my 2.6.22 tree). |
From: Paul M. <le...@li...> - 2007-03-25 23:24:18
|
On Fri, Mar 23, 2007 at 07:40:31PM +0000, Kristoffer Ericson wrote: > diff --git a/arch/sh/boards/hp6xx/setup.c b/arch/sh/boards/hp6xx/setup.c > index b5a9664..266c338 100644 > --- a/arch/sh/boards/hp6xx/setup.c > +++ b/arch/sh/boards/hp6xx/setup.c > @@ -15,10 +15,45 @@ > #include <asm/irq.h> > #include <asm/hp6xx.h> > #include <asm/cpu/dac.h> > +#include <linux/platform_device.h> > linux/ includes before asm/ includes.. > +static struct resource cf_ide_resources[] = { > + [0] = { > + .start = 0xb5000000 + 0x1f0, > + .end = 0xb5000000 + 0x1f0 + 0x08 - 1, > + .flags = IORESOURCE_MEM, > + }, > + [1] = { > + .start = 0xb5000000 + 0x1fe, > + .end = 0xb5000000 + 0x1fe + 1, > + .flags = IORESOURCE_MEM, > + }, > + [2] = { > + .start = 93, > + .flags = IORESOURCE_IRQ, > + }, > +}; > + This has some very strange whitespace, please check for space errors before making the diff. I suspect you also ant to use 0x15000000 here rather than 0xb5, since you set the resouce type to MEM it will be remapped and you'll get back 0xb5.. anyways. > .mv_irq_demux = hd64461_irq_demux, > + .mv_readw = hd64461_readw, > + .mv_writew = hd64461_writew, > }; Any reason for keeping these? |
From: Nobuhiro I. <iwa...@ni...> - 2007-03-25 11:59:53
|
Hi, all . I wrote code to support L-BOX RE2[0]. L-BOX RE2 is a router with SH7751R. This has CF-size slot , Cardbus, serial, and LAN x2 . This is one of the very few SH boards that a general person can obtain now. The kernel built into the product of L-BOX is 2.4.28. I bought this router and to work by latest git kernel, rewrote the code. Now , CF, serial , and LAN x2 work . Please apply this patch . regards, Nobuhiro [0] : http://www.nttcom.co.jp/l-box/index.cgi (Sorry Japanese only) -- Nobuhiro Iwamatsu E-Mail : iwa...@ni... GPG ID : 3170EBE9 Signed-off-by: Nobuhiro Iwamatsu <iwa...@ni...> diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 9932d1a..eb99d5f 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -243,6 +243,13 @@ config SH_7619_SOLUTION_ENGINE help Select 7619 SolutionEngine if configuring for a Hitachi SH7619 evaluation board. + +config SH_LBOX_RE2 + bool "L-BOX RE2" + select CPU_SUBTYPE_SH7751R + help + Select L-BOX RE2 if configuring for the NTT COMWARE L-BOX RE2. + config SH_UNKNOWN bool "BareCPU" diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 7eef74b..b00ed90 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile @@ -110,6 +110,7 @@ machdir-$(CONFIG_SH_TITAN) := titan machdir-$(CONFIG_SH_SHMIN) := shmin machdir-$(CONFIG_SH_7206_SOLUTION_ENGINE) := se/7206 machdir-$(CONFIG_SH_7619_SOLUTION_ENGINE) := se/7619 +machdir-$(CONFIG_SH_LBOX_RE2) := lboxre2 machdir-$(CONFIG_SH_UNKNOWN) := unknown incdir-y := $(notdir $(machdir-y)) diff --git a/arch/sh/boards/lboxre2/Makefile b/arch/sh/boards/lboxre2/Makefile new file mode 100644 index 0000000..e9ed140 --- /dev/null +++ b/arch/sh/boards/lboxre2/Makefile @@ -0,0 +1,5 @@ +# +# Makefile for the L-BOX RE2 specific parts of the kernel +# Copyright (c) 2007 Nobuhiro Iwamatsu + +obj-y := setup.o irq.o diff --git a/arch/sh/boards/lboxre2/irq.c b/arch/sh/boards/lboxre2/irq.c new file mode 100644 index 0000000..dcf7c31 --- /dev/null +++ b/arch/sh/boards/lboxre2/irq.c @@ -0,0 +1,32 @@ +/* + * linux/arch/sh/boards/lboxre2/irq.c + * + * Copyright (C) 2007 Nobuhiro Iwamatsu + * + * NTT COMWARE L-BOX RE2 Support. + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + */ + +#include <linux/init.h> +#include <linux/interrupt.h> +#include <linux/irq.h> +#include <asm/irq.h> +#include <asm/io.h> +#include <asm/lboxre2.h> + +/* + * Initialize IRQ setting + */ +void __init init_lboxre2_IRQ( void ){ + + make_imask_irq( IRQ_CF1 ); + make_imask_irq( IRQ_CF0 ); + make_imask_irq( IRQ_INTD ); + make_imask_irq( IRQ_ETH1); + make_imask_irq( IRQ_ETH0); + make_imask_irq( IRQ_INTA ); +} diff --git a/arch/sh/boards/lboxre2/setup.c b/arch/sh/boards/lboxre2/setup.c new file mode 100644 index 0000000..036746e --- /dev/null +++ b/arch/sh/boards/lboxre2/setup.c @@ -0,0 +1,84 @@ +/* + * linux/arch/sh/boards/lbox/setup.c + * + * Copyright (C) 2007 Nobuhiro Iwamatsu + * + * NTT COMWARE L-BOX RE2 Support + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + */ + +#include <linux/init.h> +#include <linux/platform_device.h> +#include <linux/pata_platform.h> +#include <asm/machvec.h> +#include <asm/lboxre2.h> +#include <asm/io.h> + +static struct resource cf_ide_resources[] = { + [0] = { + .start = 0x1f0, + .end = 0x1f0 + 8 , + .flags = IORESOURCE_IO, + }, + [1] = { + .start = 0x1f0 + 0x206, + .end = 0x1f0 +8 + 0x206 + 8, + .flags = IORESOURCE_IO, + }, + [2] = { + .start = IRQ_CF0, + .flags = IORESOURCE_IRQ, + }, +}; + +static struct platform_device cf_ide_device = { + .name = "pata_platform", + .id = -1, + .num_resources = ARRAY_SIZE(cf_ide_resources), + .resource = cf_ide_resources, +}; + +static struct platform_device *lboxre2_devices[] __initdata = { + &cf_ide_device, +}; + +static int __init lboxre2_devices_setup(void) +{ + u32 cf0_io_base; /* Boot CF base address */ + pgprot_t prot; + unsigned long paddrbase, psize; + + /* open I/O area window */ + paddrbase = virt_to_phys((void*)CONFIG_CF0_BASE_ADDR); + psize = PAGE_SIZE; + prot = PAGE_KERNEL_PCC( 1 , _PAGE_PCC_IO16); + cf0_io_base = (u32)p3_ioremap(paddrbase, psize, prot.pgprot); + if (!cf0_io_base) { + printk(KERN_ERR "%s : can't open CF I/O window!\n" , __func__ ); + return -ENOMEM; + } + + cf_ide_resources[0].start += cf0_io_base ; + cf_ide_resources[0].end += cf0_io_base ; + cf_ide_resources[1].start += cf0_io_base ; + cf_ide_resources[1].end += cf0_io_base ; + + return platform_add_devices( lboxre2_devices + , ARRAY_SIZE( lboxre2_devices ) ); + +} +device_initcall(lboxre2_devices_setup); + +/* + * The Machine Vector + */ +struct sh_machine_vector mv_lboxre2 __initmv = { + .mv_name = "L-BOX RE2", + .mv_nr_irqs = 72, + .mv_init_irq = init_lboxre2_IRQ, +}; +ALIAS_MV(lboxre2) diff --git a/arch/sh/configs/lboxre2_defconfig b/arch/sh/configs/lboxre2_defconfig new file mode 100644 index 0000000..be86414 --- /dev/null +++ b/arch/sh/configs/lboxre2_defconfig @@ -0,0 +1,1271 @@ +# +# Automatically generated make config: don't edit +# Linux kernel version: 2.6.21-rc4 +# Sat Mar 24 22:04:27 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 is not set +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_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" + +# +# Code maturity level options +# +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=y +# CONFIG_IPC_NS is not set +CONFIG_SYSVIPC_SYSCTL=y +# CONFIG_POSIX_MQUEUE is not set +# CONFIG_BSD_PROCESS_ACCT is not set +# CONFIG_TASKSTATS is not set +# CONFIG_UTS_NS is not set +# CONFIG_AUDIT is not set +# CONFIG_IKCONFIG is not set +CONFIG_SYSFS_DEPRECATED=y +# CONFIG_RELAY is not set +# CONFIG_BLK_DEV_INITRD is not set +CONFIG_CC_OPTIMIZE_FOR_SIZE=y +CONFIG_SYSCTL=y +CONFIG_EMBEDDED=y +CONFIG_UID16=y +# CONFIG_SYSCTL_SYSCALL is not set +CONFIG_KALLSYMS=y +CONFIG_KALLSYMS_EXTRA_PASS=y +CONFIG_HOTPLUG=y +CONFIG_PRINTK=y +CONFIG_BUG=y +CONFIG_ELF_CORE=y +CONFIG_BASE_FULL=y +CONFIG_FUTEX=y +CONFIG_EPOLL=y +CONFIG_SHMEM=y +CONFIG_SLAB=y +CONFIG_VM_EVENT_COUNTERS=y +CONFIG_RT_MUTEXES=y +# CONFIG_TINY_SHMEM is not set +CONFIG_BASE_SMALL=0 +# CONFIG_SLOB is not set + +# +# Loadable module support +# +CONFIG_MODULES=y +CONFIG_MODULE_UNLOAD=y +CONFIG_MODULE_FORCE_UNLOAD=y +# CONFIG_MODVERSIONS is not set +# CONFIG_MODULE_SRCVERSION_ALL is not set +CONFIG_KMOD=y + +# +# Block layer +# +CONFIG_BLOCK=y +# CONFIG_LBD is not set +# CONFIG_BLK_DEV_IO_TRACE is not set +# CONFIG_LSF is not set + +# +# IO Schedulers +# +CONFIG_IOSCHED_NOOP=y +CONFIG_IOSCHED_AS=y +CONFIG_IOSCHED_DEADLINE=y +CONFIG_IOSCHED_CFQ=y +CONFIG_DEFAULT_AS=y +# CONFIG_DEFAULT_DEADLINE is not set +# CONFIG_DEFAULT_CFQ is not set +# CONFIG_DEFAULT_NOOP is not set +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 is not set +# CONFIG_SH_SATURN is not set +# CONFIG_SH_DREAMCAST 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_HIGHLANDER 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_7206_SOLUTION_ENGINE is not set +# CONFIG_SH_7619_SOLUTION_ENGINE is not set +CONFIG_SH_LBOX_RE2=y +# CONFIG_SH_UNKNOWN is not set + +# +# Processor selection +# +CONFIG_CPU_SH4=y + +# +# SH-2 Processor Support +# +# CONFIG_CPU_SUBTYPE_SH7604 is not set +# CONFIG_CPU_SUBTYPE_SH7619 is not set + +# +# SH-2A Processor Support +# +# CONFIG_CPU_SUBTYPE_SH7206 is not set + +# +# SH-3 Processor Support +# +# CONFIG_CPU_SUBTYPE_SH7300 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 is not set +# CONFIG_CPU_SUBTYPE_SH7710 is not set + +# +# SH-4 Processor Support +# +# CONFIG_CPU_SUBTYPE_SH7750 is not set +# CONFIG_CPU_SUBTYPE_SH7091 is not set +# CONFIG_CPU_SUBTYPE_SH7750R is not set +# CONFIG_CPU_SUBTYPE_SH7750S is not set +CONFIG_CPU_SUBTYPE_SH7751=y +CONFIG_CPU_SUBTYPE_SH7751R=y +# 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 +# CONFIG_CPU_SUBTYPE_SH7785 is not set + +# +# SH4AL-DSP Processor Support +# +# CONFIG_CPU_SUBTYPE_SH73180 is not set +# CONFIG_CPU_SUBTYPE_SH7343 is not set +# CONFIG_CPU_SUBTYPE_SH7722 is not set + +# +# Memory management options +# +CONFIG_MMU=y +CONFIG_PAGE_OFFSET=0x80000000 +CONFIG_MEMORY_START=0x0c000000 +CONFIG_MEMORY_SIZE=0x04000000 +CONFIG_VSYSCALL=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_SPLIT_PTLOCK_CPUS=4 +# CONFIG_RESOURCES_64BIT is not set +CONFIG_ZONE_DMA_FLAG=0 + +# +# Cache configuration +# +# CONFIG_SH_DIRECT_MAPPED is not set +# CONFIG_SH_WRITETHROUGH is not set +# CONFIG_SH_OCRAM is not set + +# +# Processor features +# +CONFIG_CPU_LITTLE_ENDIAN=y +# CONFIG_CPU_BIG_ENDIAN is not set +CONFIG_SH_FPU=y +# CONFIG_SH_DSP is not set +# CONFIG_SH_STORE_QUEUES is not set +CONFIG_CPU_HAS_INTEVT=y +CONFIG_CPU_HAS_IPR_IRQ=y +CONFIG_CPU_HAS_SR_RB=y +CONFIG_CPU_HAS_PTEA=y + +# +# Timer and clock configuration +# +CONFIG_SH_TMU=y +CONFIG_SH_TIMER_IRQ=16 +# CONFIG_NO_IDLE_HZ is not set +CONFIG_SH_PCLK_FREQ=40000000 + +# +# CPU Frequency scaling +# +# CONFIG_CPU_FREQ is not set + +# +# DMA support +# +# CONFIG_SH_DMA is not set + +# +# Companion Chips +# +# CONFIG_HD6446X_SERIES is not set + +# +# 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=y +# CONFIG_SMP is not set +CONFIG_PREEMPT_NONE=y +# CONFIG_PREEMPT_VOLUNTARY is not set +# CONFIG_PREEMPT is not set + +# +# Boot options +# +CONFIG_ZERO_PAGE_OFFSET=0x00001000 +CONFIG_BOOT_LINK_OFFSET=0x00800000 +# CONFIG_UBC_WAKEUP is not set +CONFIG_CMDLINE_BOOL=y +CONFIG_CMDLINE="console=ttySC1,115200 root=/dev/sda1" + +# +# Bus options +# +CONFIG_ISA=y +CONFIG_PCI=y +CONFIG_SH_PCIDMA_NONCOHERENT=y +CONFIG_PCI_AUTO=y +CONFIG_PCI_AUTO_UPDATE_RESOURCES=y + +# +# PCCARD (PCMCIA/CardBus) support +# +CONFIG_PCCARD=y +CONFIG_PCMCIA_DEBUG=y +CONFIG_PCMCIA=y +CONFIG_PCMCIA_LOAD_CIS=y +CONFIG_PCMCIA_IOCTL=y +CONFIG_CARDBUS=y + +# +# PC-card bridges +# +CONFIG_YENTA=y +CONFIG_YENTA_O2=y +# CONFIG_YENTA_RICOH is not set +# CONFIG_YENTA_TI is not set +# CONFIG_YENTA_TOSHIBA is not set +# CONFIG_PD6729 is not set +# CONFIG_I82092 is not set +# CONFIG_I82365 is not set +# CONFIG_TCIC is not set +CONFIG_PCMCIA_PROBE=y +CONFIG_PCCARD_NONSTATIC=y + +# +# PCI Hotplug Support +# +# CONFIG_HOTPLUG_PCI is not set + +# +# Executable file formats +# +CONFIG_BINFMT_ELF=y +# CONFIG_BINFMT_FLAT is not set +# CONFIG_BINFMT_MISC is not set + +# +# Power management options (EXPERIMENTAL) +# +# CONFIG_PM is not set + +# +# Networking +# +CONFIG_NET=y + +# +# Networking options +# +# CONFIG_NETDEBUG is not set +CONFIG_PACKET=y +# CONFIG_PACKET_MMAP is not set +CONFIG_UNIX=y +CONFIG_XFRM=y +# CONFIG_XFRM_USER is not set +# CONFIG_XFRM_SUB_POLICY is not set +# CONFIG_XFRM_MIGRATE is not set +# CONFIG_NET_KEY is not set +CONFIG_INET=y +# CONFIG_IP_MULTICAST is not set +CONFIG_IP_ADVANCED_ROUTER=y +CONFIG_ASK_IP_FIB_HASH=y +# CONFIG_IP_FIB_TRIE is not set +CONFIG_IP_FIB_HASH=y +# CONFIG_IP_MULTIPLE_TABLES is not set +# CONFIG_IP_ROUTE_MULTIPATH is not set +# CONFIG_IP_ROUTE_VERBOSE is not set +CONFIG_IP_PNP=y +# CONFIG_IP_PNP_DHCP is not set +# CONFIG_IP_PNP_BOOTP is not set +# CONFIG_IP_PNP_RARP is not set +# CONFIG_NET_IPIP is not set +# CONFIG_NET_IPGRE is not set +# CONFIG_ARPD is not set +# CONFIG_SYN_COOKIES is not set +# CONFIG_INET_AH is not set +# CONFIG_INET_ESP is not set +# 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_DIAG=y +CONFIG_INET_TCP_DIAG=y +# CONFIG_TCP_CONG_ADVANCED is not set +CONFIG_TCP_CONG_CUBIC=y +CONFIG_DEFAULT_TCP_CONG="cubic" +# CONFIG_TCP_MD5SIG is not set + +# +# IP: Virtual Server Configuration +# +# CONFIG_IP_VS is not set +# CONFIG_IPV6 is not set +# CONFIG_INET6_XFRM_TUNNEL is not set +# CONFIG_INET6_TUNNEL is not set +# CONFIG_NETWORK_SECMARK is not set +CONFIG_NETFILTER=y +# CONFIG_NETFILTER_DEBUG is not set + +# +# Core Netfilter Configuration +# +# CONFIG_NETFILTER_NETLINK is not set +# CONFIG_NF_CONNTRACK_ENABLED is not set +# CONFIG_NETFILTER_XTABLES is not set + +# +# IP: Netfilter Configuration +# +# CONFIG_IP_NF_QUEUE is not set +# CONFIG_IP_NF_IPTABLES is not set +# CONFIG_IP_NF_ARPTABLES is not set + +# +# DCCP Configuration (EXPERIMENTAL) +# +# CONFIG_IP_DCCP is not set + +# +# SCTP Configuration (EXPERIMENTAL) +# +# CONFIG_IP_SCTP is not set + +# +# TIPC Configuration (EXPERIMENTAL) +# +# CONFIG_TIPC is not set +# CONFIG_ATM is not set +# CONFIG_BRIDGE is not set +# CONFIG_VLAN_8021Q is not set +# CONFIG_DECNET is not set +# CONFIG_LLC2 is not set +# CONFIG_IPX is not set +# CONFIG_ATALK is not set +# CONFIG_X25 is not set +# CONFIG_LAPB is not set +# CONFIG_ECONET is not set +# CONFIG_WAN_ROUTER is not set + +# +# QoS and/or fair queueing +# +# CONFIG_NET_SCHED is not set + +# +# Network testing +# +# CONFIG_NET_PKTGEN is not set +# CONFIG_HAMRADIO is not set +# CONFIG_IRDA is not set +# CONFIG_BT is not set +# CONFIG_IEEE80211 is not set + +# +# Device Drivers +# + +# +# Generic Driver Options +# +CONFIG_STANDALONE=y +CONFIG_PREVENT_FIRMWARE_BUILD=y +CONFIG_FW_LOADER=y +# CONFIG_SYS_HYPERVISOR is not set + +# +# Connector - unified userspace <-> kernelspace linker +# +# CONFIG_CONNECTOR is not set + +# +# 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 +# CONFIG_PNPACPI is not set + +# +# Block devices +# +# CONFIG_BLK_CPQ_DA is not set +# CONFIG_BLK_CPQ_CISS_DA is not set +# CONFIG_BLK_DEV_DAC960 is not set +# CONFIG_BLK_DEV_UMEM is not set +# CONFIG_BLK_DEV_COW_COMMON is not set +CONFIG_BLK_DEV_LOOP=y +# CONFIG_BLK_DEV_CRYPTOLOOP is not set +# CONFIG_BLK_DEV_NBD is not set +# CONFIG_BLK_DEV_SX8 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_CDROM_PKTCDVD is not set +# CONFIG_ATA_OVER_ETH is not set + +# +# Misc devices +# +# CONFIG_SGI_IOC4 is not set +# CONFIG_TIFM_CORE is not set + +# +# ATA/ATAPI/MFM/RLL support +# +# CONFIG_IDE is not set + +# +# SCSI device support +# +# CONFIG_RAID_ATTRS is not set +CONFIG_SCSI=y +# CONFIG_SCSI_TGT is not set +# CONFIG_SCSI_NETLINK is not set +CONFIG_SCSI_PROC_FS=y + +# +# SCSI support type (disk, tape, CD-ROM) +# +CONFIG_BLK_DEV_SD=y +# 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_ISCSI_ATTRS is not set +# CONFIG_SCSI_SAS_ATTRS is not set +# CONFIG_SCSI_SAS_LIBSAS is not set + +# +# SCSI low-level drivers +# +# CONFIG_ISCSI_TCP is not set +# CONFIG_BLK_DEV_3W_XXXX_RAID is not set +# CONFIG_SCSI_3W_9XXX is not set +# CONFIG_SCSI_ACARD is not set +# CONFIG_SCSI_AHA152X is not set +# CONFIG_SCSI_AACRAID is not set +# CONFIG_SCSI_AIC7XXX is not set +# CONFIG_SCSI_AIC7XXX_OLD is not set +# CONFIG_SCSI_AIC79XX is not set +# CONFIG_SCSI_AIC94XX is not set +# CONFIG_SCSI_DPT_I2O is not set +# CONFIG_SCSI_IN2000 is not set +# CONFIG_SCSI_ARCMSR is not set +# CONFIG_MEGARAID_NEWGEN is not set +# CONFIG_MEGARAID_LEGACY is not set +# CONFIG_MEGARAID_SAS is not set +# CONFIG_SCSI_HPTIOP is not set +# CONFIG_SCSI_DMX3191D 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_IPS is not set +# CONFIG_SCSI_INITIO is not set +# CONFIG_SCSI_INIA100 is not set +# CONFIG_SCSI_NCR53C406A is not set +# CONFIG_SCSI_STEX is not set +# CONFIG_SCSI_SYM53C8XX_2 is not set +# CONFIG_SCSI_IPR is not set +# CONFIG_SCSI_PAS16 is not set +# CONFIG_SCSI_PSI240I is not set +# CONFIG_SCSI_QLOGIC_FAS is not set +# CONFIG_SCSI_QLOGIC_1280 is not set +# CONFIG_SCSI_QLA_FC is not set +# CONFIG_SCSI_QLA_ISCSI is not set +# CONFIG_SCSI_LPFC is not set +# CONFIG_SCSI_SYM53C416 is not set +# CONFIG_SCSI_DC395x is not set +# CONFIG_SCSI_DC390T is not set +# CONFIG_SCSI_T128 is not set +# CONFIG_SCSI_NSP32 is not set +# CONFIG_SCSI_DEBUG is not set +# CONFIG_SCSI_SRP is not set + +# +# PCMCIA SCSI adapter support +# +# CONFIG_PCMCIA_AHA152X is not set +# CONFIG_PCMCIA_FDOMAIN is not set +# CONFIG_PCMCIA_NINJA_SCSI is not set +# CONFIG_PCMCIA_QLOGIC is not set +# CONFIG_PCMCIA_SYM53C500 is not set + +# +# Serial ATA (prod) and Parallel ATA (experimental) drivers +# +CONFIG_ATA=y +# CONFIG_ATA_NONSTANDARD is not set +# CONFIG_SATA_AHCI is not set +# CONFIG_SATA_SVW is not set +# CONFIG_ATA_PIIX is not set +# CONFIG_SATA_MV is not set +# CONFIG_SATA_NV is not set +# CONFIG_PDC_ADMA is not set +# CONFIG_SATA_QSTOR is not set +# CONFIG_SATA_PROMISE is not set +# CONFIG_SATA_SX4 is not set +# CONFIG_SATA_SIL is not set +# CONFIG_SATA_SIL24 is not set +# CONFIG_SATA_SIS is not set +# CONFIG_SATA_ULI is not set +# CONFIG_SATA_VIA is not set +# CONFIG_SATA_VITESSE is not set +# CONFIG_SATA_INIC162X is not set +# CONFIG_PATA_ALI is not set +# CONFIG_PATA_AMD is not set +# CONFIG_PATA_ARTOP is not set +# CONFIG_PATA_ATIIXP is not set +# CONFIG_PATA_CMD64X is not set +# CONFIG_PATA_CS5520 is not set +# CONFIG_PATA_CS5530 is not set +# CONFIG_PATA_CYPRESS is not set +# CONFIG_PATA_EFAR is not set +# CONFIG_ATA_GENERIC is not set +# CONFIG_PATA_HPT366 is not set +# CONFIG_PATA_HPT37X is not set +# CONFIG_PATA_HPT3X2N is not set +# CONFIG_PATA_HPT3X3 is not set +# CONFIG_PATA_IT821X is not set +# CONFIG_PATA_IT8213 is not set +# CONFIG_PATA_JMICRON is not set +# CONFIG_PATA_LEGACY is not set +# CONFIG_PATA_TRIFLEX is not set +# CONFIG_PATA_MARVELL is not set +# CONFIG_PATA_MPIIX is not set +# CONFIG_PATA_OLDPIIX is not set +# CONFIG_PATA_NETCELL is not set +# CONFIG_PATA_NS87410 is not set +# CONFIG_PATA_OPTI is not set +# CONFIG_PATA_OPTIDMA is not set +# CONFIG_PATA_PCMCIA is not set +# CONFIG_PATA_PDC_OLD is not set +# CONFIG_PATA_QDI is not set +# CONFIG_PATA_RADISYS is not set +# CONFIG_PATA_RZ1000 is not set +# CONFIG_PATA_SC1200 is not set +# CONFIG_PATA_SERVERWORKS is not set +# CONFIG_PATA_PDC2027X is not set +# CONFIG_PATA_SIL680 is not set +# CONFIG_PATA_SIS is not set +# CONFIG_PATA_VIA is not set +# CONFIG_PATA_WINBOND is not set +# CONFIG_PATA_WINBOND_VLB is not set +CONFIG_PATA_PLATFORM=y + +# +# Old CD-ROM drivers (not SCSI, not IDE) +# +# CONFIG_CD_NO_IDESCSI is not set + +# +# Multi-device support (RAID and LVM) +# +# CONFIG_MD is not set + +# +# Fusion MPT device support +# +# CONFIG_FUSION is not set +# CONFIG_FUSION_SPI is not set +# CONFIG_FUSION_FC is not set +# CONFIG_FUSION_SAS is not set + +# +# IEEE 1394 (FireWire) support +# +# CONFIG_IEEE1394 is not set + +# +# I2O device support +# +# CONFIG_I2O is not set + +# +# Network device support +# +CONFIG_NETDEVICES=y +# CONFIG_DUMMY is not set +# CONFIG_BONDING is not set +# CONFIG_EQUALIZER is not set +# CONFIG_TUN is not set + +# +# ARCnet devices +# +# CONFIG_ARCNET is not set + +# +# PHY device support +# +# CONFIG_PHYLIB is not set + +# +# Ethernet (10 or 100Mbit) +# +CONFIG_NET_ETHERNET=y +CONFIG_MII=y +# CONFIG_STNIC is not set +# CONFIG_HAPPYMEAL is not set +# CONFIG_SUNGEM is not set +# CONFIG_CASSINI is not set +# CONFIG_NET_VENDOR_3COM is not set +# CONFIG_NET_VENDOR_SMC is not set +# CONFIG_SMC91X is not set +# CONFIG_NET_VENDOR_RACAL is not set + +# +# Tulip family network device support +# +# CONFIG_NET_TULIP is not set +# CONFIG_AT1700 is not set +# CONFIG_DEPCA is not set +# CONFIG_HP100 is not set +# CONFIG_NET_ISA is not set +CONFIG_NET_PCI=y +# CONFIG_PCNET32 is not set +# CONFIG_AMD8111_ETH is not set +# CONFIG_ADAPTEC_STARFIRE is not set +# CONFIG_AC3200 is not set +# CONFIG_APRICOT is not set +# CONFIG_B44 is not set +# CONFIG_FORCEDETH is not set +# CONFIG_CS89x0 is not set +# CONFIG_DGRS is not set +# CONFIG_EEPRO100 is not set +# CONFIG_E100 is not set +# CONFIG_FEALNX is not set +# CONFIG_NATSEMI is not set +CONFIG_NE2K_PCI=y +# CONFIG_8139CP is not set +CONFIG_8139TOO=y +CONFIG_8139TOO_PIO=y +CONFIG_8139TOO_TUNE_TWISTER=y +# CONFIG_8139TOO_8129 is not set +# CONFIG_8139_OLD_RX_RESET is not set +# CONFIG_SIS900 is not set +# CONFIG_EPIC100 is not set +# CONFIG_SUNDANCE is not set +# CONFIG_TLAN is not set +# CONFIG_VIA_RHINE is not set +# CONFIG_SC92031 is not set + +# +# Ethernet (1000 Mbit) +# +# CONFIG_ACENIC is not set +# CONFIG_DL2K is not set +# CONFIG_E1000 is not set +# CONFIG_NS83820 is not set +# CONFIG_HAMACHI is not set +# CONFIG_YELLOWFIN is not set +# CONFIG_R8169 is not set +# CONFIG_SIS190 is not set +# CONFIG_SKGE is not set +# CONFIG_SKY2 is not set +# CONFIG_SK98LIN is not set +# CONFIG_VIA_VELOCITY is not set +# CONFIG_TIGON3 is not set +# CONFIG_BNX2 is not set +# CONFIG_QLA3XXX is not set +# CONFIG_ATL1 is not set + +# +# Ethernet (10000 Mbit) +# +# CONFIG_CHELSIO_T1 is not set +# CONFIG_CHELSIO_T3 is not set +# CONFIG_IXGB is not set +# CONFIG_S2IO is not set +# CONFIG_MYRI10GE is not set +# CONFIG_NETXEN_NIC is not set + +# +# Token Ring devices +# +# CONFIG_TR is not set + +# +# Wireless LAN (non-hamradio) +# +# CONFIG_NET_RADIO is not set + +# +# PCMCIA network device support +# +CONFIG_NET_PCMCIA=y +# CONFIG_PCMCIA_3C589 is not set +# CONFIG_PCMCIA_3C574 is not set +# CONFIG_PCMCIA_FMVJ18X is not set +CONFIG_PCMCIA_PCNET=y +# CONFIG_PCMCIA_NMCLAN is not set +# CONFIG_PCMCIA_SMC91C92 is not set +# CONFIG_PCMCIA_XIRC2PS is not set +# CONFIG_PCMCIA_AXNET is not set + +# +# Wan interfaces +# +# CONFIG_WAN is not set +# CONFIG_FDDI is not set +# CONFIG_HIPPI is not set +# CONFIG_PPP is not set +# CONFIG_SLIP is not set +# CONFIG_NET_FC is not set +# CONFIG_SHAPER is not set +# CONFIG_NETCONSOLE is not set +# CONFIG_NETPOLL is not set +# CONFIG_NET_POLL_CONTROLLER is not set + +# +# ISDN subsystem +# +# CONFIG_ISDN is not set + +# +# Telephony Support +# +# CONFIG_PHONE is not set + +# +# Input device support +# +CONFIG_INPUT=y +# CONFIG_INPUT_FF_MEMLESS is not set + +# +# Userland interfaces +# +CONFIG_INPUT_MOUSEDEV=y +# CONFIG_INPUT_MOUSEDEV_PSAUX is not set +CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 +CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 +# CONFIG_INPUT_JOYDEV is not set +# CONFIG_INPUT_TSDEV is not set +# CONFIG_INPUT_EVDEV is not set +# CONFIG_INPUT_EVBUG is not set + +# +# Input Device Drivers +# +# CONFIG_INPUT_KEYBOARD is not set +# CONFIG_INPUT_MOUSE is not set +# CONFIG_INPUT_JOYSTICK is not set +# CONFIG_INPUT_TOUCHSCREEN is not set +# CONFIG_INPUT_MISC is not set + +# +# Hardware I/O ports +# +# CONFIG_SERIO is not set +# CONFIG_GAMEPORT is not set + +# +# Character devices +# +CONFIG_VT=y +CONFIG_VT_CONSOLE=y +CONFIG_HW_CONSOLE=y +# CONFIG_VT_HW_CONSOLE_BINDING is not set +# CONFIG_SERIAL_NONSTANDARD is not set + +# +# Serial drivers +# +# CONFIG_SERIAL_8250 is not set + +# +# Non-8250 serial port support +# +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_SERIAL_JSM is not set +CONFIG_UNIX98_PTYS=y +CONFIG_LEGACY_PTYS=y +CONFIG_LEGACY_PTY_COUNT=256 + +# +# IPMI +# +# 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 +# CONFIG_APPLICOM is not set +# CONFIG_DRM 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 + +# +# TPM devices +# +# CONFIG_TCG_TPM is not set + +# +# I2C support +# +# CONFIG_I2C is not set + +# +# SPI support +# +# CONFIG_SPI is not set +# CONFIG_SPI_MASTER is not set + +# +# Dallas's 1-wire bus +# +# CONFIG_W1 is not set + +# +# Hardware Monitoring support +# +CONFIG_HWMON=y +# CONFIG_HWMON_VID is not set +# CONFIG_SENSORS_ABITUGURU is not set +# CONFIG_SENSORS_F71805F is not set +# CONFIG_SENSORS_PC87427 is not set +# CONFIG_SENSORS_VT1211 is not set +# CONFIG_HWMON_DEBUG_CHIP is not set + +# +# Multifunction device drivers +# +# CONFIG_MFD_SM501 is not set + +# +# Multimedia devices +# +# CONFIG_VIDEO_DEV is not set + +# +# Digital Video Broadcasting Devices +# +# CONFIG_DVB is not set + +# +# Graphics support +# +# CONFIG_BACKLIGHT_LCD_SUPPORT is not set +# CONFIG_FB is not set + +# +# Console display driver support +# +# CONFIG_MDA_CONSOLE is not set +CONFIG_DUMMY_CONSOLE=y + +# +# Sound +# +# CONFIG_SOUND is not set + +# +# HID Devices +# +CONFIG_HID=y +# CONFIG_HID_DEBUG is not set + +# +# USB support +# +CONFIG_USB_ARCH_HAS_HCD=y +CONFIG_USB_ARCH_HAS_OHCI=y +CONFIG_USB_ARCH_HAS_EHCI=y +# CONFIG_USB 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_MMC is not set + +# +# LED devices +# +# CONFIG_NEW_LEDS is not set + +# +# LED drivers +# + +# +# LED Triggers +# + +# +# InfiniBand support +# +# CONFIG_INFINIBAND is not set + +# +# EDAC - error detection and reporting (RAS) (EXPERIMENTAL) +# + +# +# Real Time Clock +# +CONFIG_RTC_LIB=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_HCTOSYS=y +CONFIG_RTC_HCTOSYS_DEVICE="rtc0" +# CONFIG_RTC_DEBUG is not set + +# +# 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 + +# +# RTC drivers +# +# CONFIG_RTC_DRV_DS1553 is not set +# CONFIG_RTC_DRV_DS1742 is not set +# CONFIG_RTC_DRV_M48T86 is not set +# CONFIG_RTC_DRV_SH is not set +# CONFIG_RTC_DRV_TEST is not set +# CONFIG_RTC_DRV_V3020 is not set + +# +# DMA Engine support +# +# CONFIG_DMA_ENGINE is not set + +# +# DMA Clients +# + +# +# DMA Devices +# + +# +# Auxiliary Display support +# + +# +# Virtualization +# + +# +# File systems +# +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_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 +# CONFIG_XFS_FS is not set +# CONFIG_GFS2_FS is not set +# CONFIG_OCFS2_FS is not set +# CONFIG_MINIX_FS is not set +CONFIG_ROMFS_FS=y +CONFIG_INOTIFY=y +CONFIG_INOTIFY_USER=y +# CONFIG_QUOTA is not set +CONFIG_DNOTIFY=y +# CONFIG_AUTOFS_FS is not set +# CONFIG_AUTOFS4_FS is not set +# CONFIG_FUSE_FS is not set + +# +# CD-ROM/DVD Filesystems +# +# CONFIG_ISO9660_FS is not set +# CONFIG_UDF_FS is not set + +# +# DOS/FAT/NT Filesystems +# +CONFIG_FAT_FS=y +CONFIG_MSDOS_FS=y +CONFIG_VFAT_FS=y +CONFIG_FAT_DEFAULT_CODEPAGE=437 +CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" +# CONFIG_NTFS_FS is not set + +# +# Pseudo filesystems +# +CONFIG_PROC_FS=y +# CONFIG_PROC_KCORE is not set +CONFIG_PROC_SYSCTL=y +CONFIG_SYSFS=y +CONFIG_TMPFS=y +# CONFIG_TMPFS_POSIX_ACL is not set +# CONFIG_HUGETLBFS is not set +# CONFIG_HUGETLB_PAGE is not set +CONFIG_RAMFS=y +# CONFIG_CONFIGFS_FS is not set + +# +# Miscellaneous filesystems +# +# CONFIG_ADFS_FS is not set +# CONFIG_AFFS_FS is not set +# CONFIG_HFS_FS is not set +# CONFIG_HFSPLUS_FS is not set +# CONFIG_BEFS_FS is not set +# CONFIG_BFS_FS is not set +# CONFIG_EFS_FS is not set +# CONFIG_CRAMFS is not set +# CONFIG_VXFS_FS is not set +# CONFIG_HPFS_FS is not set +# CONFIG_QNX4FS_FS is not set +# CONFIG_SYSV_FS is not set +# CONFIG_UFS_FS is not set + +# +# Network File Systems +# +# CONFIG_NFS_FS is not set +# CONFIG_NFSD is not set +# CONFIG_SMB_FS is not set +# CONFIG_CIFS is not set +# CONFIG_NCP_FS is not set +# CONFIG_CODA_FS is not set +# CONFIG_AFS_FS is not set +# CONFIG_9P_FS is not set + +# +# Partition Types +# +# CONFIG_PARTITION_ADVANCED is not set +CONFIG_MSDOS_PARTITION=y + +# +# Native Language Support +# +CONFIG_NLS=y +CONFIG_NLS_DEFAULT="iso8859-1" +CONFIG_NLS_CODEPAGE_437=y +# CONFIG_NLS_CODEPAGE_737 is not set +# CONFIG_NLS_CODEPAGE_775 is not set +# CONFIG_NLS_CODEPAGE_850 is not set +# CONFIG_NLS_CODEPAGE_852 is not set +# CONFIG_NLS_CODEPAGE_855 is not set +# CONFIG_NLS_CODEPAGE_857 is not set +# CONFIG_NLS_CODEPAGE_860 is not set +# CONFIG_NLS_CODEPAGE_861 is not set +# CONFIG_NLS_CODEPAGE_862 is not set +# CONFIG_NLS_CODEPAGE_863 is not set +# CONFIG_NLS_CODEPAGE_864 is not set +# CONFIG_NLS_CODEPAGE_865 is not set +# CONFIG_NLS_CODEPAGE_866 is not set +# CONFIG_NLS_CODEPAGE_869 is not set +# CONFIG_NLS_CODEPAGE_936 is not set +# CONFIG_NLS_CODEPAGE_950 is not set +# CONFIG_NLS_CODEPAGE_932 is not set +# CONFIG_NLS_CODEPAGE_949 is not set +# CONFIG_NLS_CODEPAGE_874 is not set +# CONFIG_NLS_ISO8859_8 is not set +# CONFIG_NLS_CODEPAGE_1250 is not set +# CONFIG_NLS_CODEPAGE_1251 is not set +# CONFIG_NLS_ASCII is not set +# CONFIG_NLS_ISO8859_1 is not set +# CONFIG_NLS_ISO8859_2 is not set +# CONFIG_NLS_ISO8859_3 is not set +# CONFIG_NLS_ISO8859_4 is not set +# CONFIG_NLS_ISO8859_5 is not set +# CONFIG_NLS_ISO8859_6 is not set +# CONFIG_NLS_ISO8859_7 is not set +# CONFIG_NLS_ISO8859_9 is not set +# CONFIG_NLS_ISO8859_13 is not set +# CONFIG_NLS_ISO8859_14 is not set +# CONFIG_NLS_ISO8859_15 is not set +# CONFIG_NLS_KOI8_R is not set +# CONFIG_NLS_KOI8_U is not set +# CONFIG_NLS_UTF8 is not set + +# +# Distributed Lock Manager +# +# CONFIG_DLM is not set + +# +# Profiling support +# +# CONFIG_PROFILING is not set + +# +# 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_SH_STANDARD_BIOS=y +# CONFIG_EARLY_SCIF_CONSOLE is not set +# CONFIG_EARLY_PRINTK 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 + +# +# Library routines +# +CONFIG_BITREVERSE=y +# CONFIG_CRC_CCITT is not set +# CONFIG_CRC16 is not set +CONFIG_CRC32=y +# CONFIG_LIBCRC32C is not set +CONFIG_PLIST=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT=y diff --git a/arch/sh/drivers/pci/Makefile b/arch/sh/drivers/pci/Makefile index 8a7e706..b1391cb 100644 --- a/arch/sh/drivers/pci/Makefile +++ b/arch/sh/drivers/pci/Makefile @@ -18,3 +18,4 @@ obj-$(CONFIG_SH_SH03) += ops-sh03.o fixups-sh03.o obj-$(CONFIG_SH_HIGHLANDER) += ops-r7780rp.o fixups-r7780rp.o obj-$(CONFIG_SH_TITAN) += ops-titan.o obj-$(CONFIG_SH_LANDISK) += ops-landisk.o +obj-$(CONFIG_SH_LBOX_RE2) += ops-lboxre2.o fixups-lboxre2.o diff --git a/arch/sh/drivers/pci/fixups-lboxre2.c b/arch/sh/drivers/pci/fixups-lboxre2.c new file mode 100644 index 0000000..40b19bd --- /dev/null +++ b/arch/sh/drivers/pci/fixups-lboxre2.c @@ -0,0 +1,41 @@ +/* + * arch/sh/drivers/pci/fixups-lboxre2.c + * + * L-BOX RE2 PCI fixups + * + * Copyright (C) 2007 Nobuhiro Iwamatsu + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + */ +#include "pci-sh4.h" + +#define PCIMCR_MRSET_OFF 0xBFFFFFFF +#define PCIMCR_RFSH_OFF 0xFFFFFFFB + +int pci_fixup_pcic(void) +{ + unsigned long bcr1, mcr; + + bcr1 = inl(SH7751_BCR1); + bcr1 |= 0x40080000; /* Enable Bit 19 BREQEN, set PCIC to slave */ + pci_write_reg(bcr1, SH4_PCIBCR1); + + /* Enable all interrupts, so we known what to fix */ + pci_write_reg(0x0000c3ff, SH4_PCIINTM); + pci_write_reg(0x0000380f, SH4_PCIAINTM); + pci_write_reg(0xfb900047, SH7751_PCICONF1); + pci_write_reg(0xab000001, SH7751_PCICONF4); + + mcr = inl(SH7751_MCR); + mcr = (mcr & PCIMCR_MRSET_OFF) & PCIMCR_RFSH_OFF; + pci_write_reg(mcr, SH4_PCIMCR); + + pci_write_reg(0x0c000000, SH7751_PCICONF5); + pci_write_reg(0xd0000000, SH7751_PCICONF6); + pci_write_reg(0x0c000000, SH4_PCILAR0); + pci_write_reg(0x00000000, SH4_PCILAR1); + + return 0; +} diff --git a/arch/sh/drivers/pci/ops-lboxre2.c b/arch/sh/drivers/pci/ops-lboxre2.c new file mode 100644 index 0000000..ba0ef03 --- /dev/null +++ b/arch/sh/drivers/pci/ops-lboxre2.c @@ -0,0 +1,70 @@ +/* + * linux/arch/sh/drivers/pci/ops-lboxre2.c + * + * Copyright (C) 2007 Nobuhiro Iwamatsu + * + * PCI initialization for the NTT COMWARE L-BOX RE2 + */ + +#include <linux/kernel.h> +#include <linux/types.h> +#include <linux/init.h> +#include <linux/pci.h> +#include <linux/io.h> +#include <asm/lboxre2.h> +#include "pci-sh4.h" + +int __init +pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) +{ + switch (slot) { + case 0: return IRQ_ETH0 ; /* eth0 */ + case 1: return IRQ_ETH1 ; /* eth1 */ + case 2: return IRQ_INTA ; /* extend slot 1 */ + case 3: return IRQ_INTD ; /* extend slot 2 */ + default: + printk("PCI: Bad IRQ mapping slot %d\n", slot); + return -1; + } + return -1; +} + +static struct resource sh7751_io_resource = { + .name = "SH7751_IO", + .start = SH7751_PCI_IO_BASE , + .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1, + .flags = IORESOURCE_IO +}; + +static struct resource sh7751_mem_resource = { + .name = "SH7751_mem", + .start = SH7751_PCI_MEMORY_BASE, + .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1, + .flags = IORESOURCE_MEM +}; + +extern struct pci_ops sh7751_pci_ops; + +struct pci_channel board_pci_channels[] = { + { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, + { NULL, NULL, NULL, 0, 0 }, +}; + +EXPORT_SYMBOL(board_pci_channels); + +static struct sh4_pci_address_map sh7751_pci_map = { + .window0 = { + .base = SH7751_CS3_BASE_ADDR, + .size = 0x04000000, + }, + .window1 = { + .base = 0x00000000, /* Unused */ + .size = 0x00000000, /* Unused */ + }, + .flags = SH4_PCIC_NO_RESET, +}; + +int __init pcibios_init_platform(void) +{ + return sh7751_pcic_init(&sh7751_pci_map); +} diff --git a/arch/sh/drivers/pci/pci-sh7751.c b/arch/sh/drivers/pci/pci-sh7751.c index 9ddff76..f3ead58 100644 --- a/arch/sh/drivers/pci/pci-sh7751.c +++ b/arch/sh/drivers/pci/pci-sh7751.c @@ -194,7 +194,7 @@ int __init sh7751_pcic_init(struct sh4_pci_address_map *map) * DMA interrupts... */ -#ifdef CONFIG_SH_RTS7751R2D +#if defined(CONFIG_SH_RTS7751R2D) || defined(CONFIG_SH_LBOX_RE2) pci_fixup_pcic(); #endif diff --git a/include/asm-sh/lboxre2.h b/include/asm-sh/lboxre2.h new file mode 100644 index 0000000..6577566 --- /dev/null +++ b/include/asm-sh/lboxre2.h @@ -0,0 +1,32 @@ +#ifndef __ASM_SH_LBOXRE2_H +#define __ASM_SH_LBOXRE2_H + +/* + * linux/include/asm-sh/lbox.h + * + * Copyright (C) 2007 Nobuhiro Iwamatsu + * + * NTT COMWARE L-BOX RE2 support + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + */ + +#define CONFIG_CF0_BASE_ADDR 0xb4000000 /* Boot only */ +#define CONFIG_CF1_BASE_ADDR 0xb8000000 + +#define IRQ_CF1 9 /* CF1 */ +#define IRQ_CF0 10 /* CF0 */ +#define IRQ_INTD 11 /* INTD */ +#define IRQ_ETH1 12 /* Ether1 */ +#define IRQ_ETH0 13 /* Ether0 */ +#define IRQ_INTA 14 /* INTA */ + +void init_lboxre2_IRQ(void); + +#define __IO_PREFIX lboxre2 +#include <asm/io_generic.h> + +#endif /* __ASM_SH_LBOXRE2_H */ |
From: Kristoffer E. <kri...@ho...> - 2007-03-23 20:31:15
|
* This replaces 'return __irq_demux(irq)' with 'return irq'. The fix doesnt change anything since that is what __irq_demux used to do, but takes away the compile error. signed-off-by: Kristoffer Ericson <Kri...@ho...> _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Kristoffer E. <kri...@ho...> - 2007-03-23 19:40:44
|
Greetings, Here's the first bunch of patches. All against git-current. --------------------------------------------------------------------------------------------------------- sh7709-setup.c * Addition of IPRC(n) and IPRD(n) macros * Addition of IRQ0 -> IRQ5 in the ipr_map signed-off-by: Kristoffer Ericson <Kri...@ho...> hp6xx-setup.c-overhaul.patch * Added needed include linux/platform_device.h * Adds resource cf_ide_resources to enable us to use our compact flash through the generic pata_platform. Also moves the adresses from PIO into MMIO style. * Reduces the use of non-generic functions in machine vector. Which in turn makes io.c more or less obselete. * Removes obselete comment about the mach_vector. see above. signed-off-by: Kristoffer Ericson <Kri...@ho...> _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Paul M. <pau...@re...> - 2007-03-23 03:01:47
|
(Adding the list to CC, as this might be of general interest..) On Fri, Mar 23, 2007 at 11:27:18AM +0900, Nobuhiro Iwamatsu wrote: > Paul Mundt wrote: > > On Fri, Mar 23, 2007 at 10:34:23AM +0900, Nobuhiro Iwamatsu wrote: > >> devm_ioremap() calls ioremap on the inside. > >> When the translated address is specified for offset of the argument with > >> p3_ioremap(), it tries to do ioremap again. > >> > > This is due to the resource type, if you want to inhibit the ioremap(), > > use IORESOURCE_IO. > > > > Here's an example of what I've done for the Algo 7760 board (ignore the > > p3_ioremap() size, I was using this to debug something): > > Thank you very much. > > I thought that you thought that did not use IORESOURCE_IO. > > You want to delete board delicated I/O operations code( boards/xx/io.c), > don't you ? > Correct. I'll elaborate on this, both IORESOURCE_IO and IORESOURCE_MEM are fully supported, though only IORESOURCE_MEM is subjected to regular ioremap() behaviour. For IORESOURCE_IO, we treat these as PIO and don't actually do any direct remapping. Note however that even a P1 address will be ioremap()'ed in to a P2 one, there will just be no page tables. The only reason to use IORESOURCE_MEM is if we _want_ to ioremap(), whether for page tables in the P3 case, or just for the P1->P2 conversion. In this case however, special care has to be taken for the PTE flag in order to do the area assignment properly, so we have to do the remapping ourselves _prior_ to handing it off to the driver. As far as the driver is concerned, it's just a regular PIO address, as there's no remapping that's required. On SH everything is effectively MMIO anyways, so we don't really have to do anything "special" in the I/O routines (ie, posted writes, write barriers, etc.) so the only difference between IORESOURCE_IO and IORESOURCE_MEM is whether it's remapped. In the past we have had this port2addr abuse, which would "trap" writes to bogus addresses (usually x86 legacy ones) and "fix" them up to point to where things actually sat in memory. It's _this_ that we want to be rid of completely. These sorts of things have also been responsible for fixing up access sizes for certain registers bound by a certain bus width, but hiding this in the I/O routines is nonsense. If we can't do an 8-bit read due to a CF slot being wired up for only 16-bit access, then the driver should never be attempting an 8-bit read in the first place. Papering over it in the I/O routines is not only not a solution, but it also introduces a lot of extra overhead that we really don't need. Boards are slowly getting better at this, and drivers are slowly being fixed. The long-term goal is of course to be rid of all of this board-specific I/O crap and rip all of that out of the machvec. The PCC bits are unfortunately something the boards will have to deal with on their own prior to handing off the regions to the drivers. This sucks, but we really don't want to push this logic down to the drivers, since it's only going to be the board designer that knows where PCMCIA/CF have been allocated, and it's only these PTE bits that differ. PTEA has always been a kludge, and at least the later (SH-X2 and up) parts have recycled it for something far more reasonable. Likewise, I'm loathe to add in "special" ioremap() hacks to inhibit page-table mapping for any more of these cases, it's already too much of a nuisance as it is. So, if you can't handle an ioremap(), don't use IORESOURCE_MEM. For the access size problems, we have IORESOURCE_BITS that can be used, which allows for the ISA PnP access size flags to be reused. ie: #define IORESOURCE_MEM_TYPE_MASK (3<<3) #define IORESOURCE_MEM_8BIT (0<<3) #define IORESOURCE_MEM_16BIT (1<<3) #define IORESOURCE_MEM_8AND16BIT (2<<3) #define IORESOURCE_MEM_32BIT (3<<3) This doesn't help for Area 5/6 selection, but we can probably recycle a bit or two for that, as well. There are likely not enough users that care about the PCC selection to make pushing it out of the board-specific code worthwhile, though. |
From: Kristoffer E. <kri...@ho...> - 2007-03-22 22:32:22
|
Greetings, After Pauls suggestion to look for IRQ problems I finally found the error. I had put in the wrong IPRC/IPRD codes. Instead of 0xa400.... I had 0xa000... That caused the strange errors. It boots fine now. Although it works perfectly fine on the hp680/hp690 now, Users with hp620 are having strange issues. Before the move to Pata platform they had "Lost interrupt" errors, now they instead have: <rafa> a kernel panic again. The output about ata is: <rafa> scsi0 : pata_platform <rafa> ata1.00: qc timeout (cmd 0x91) <rafa> ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x4) <Kristoffer> Oki, so it doesnt show any partitions <rafa> again the last 2 messages <rafa> no <rafa> after that. ata1.00: limiting speed to UDMA7:PIO5 <rafa> again the timeout error .. and after that the booting continues. Finally <rafa> no i think :( <rafa> the first message about ata was: <rafa> ata1: PATA max PIO0 cmd 0xb50001f0 ctl 0xb50001fe bmdma 0x00000000 irq 93 <Kristoffer> looks correct <rafa> tree time outs, and a "limiting speed" message <rafa> after that any thing appears about the CF <rafa> onle keyboard, net <rafa> kernel panic with a unknown-block(0,0) <rafa> onle=only Best wishes Kristoffer _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ |
From: Kristoffer E. <kri...@ho...> - 2007-03-21 22:33:28
|
Greetings, I've made io.c more or less obselete. And just using the generic mv_ it works like it did before. No luck booting from CF card though, still getting frozen/timeouts. It feels like its unable to communicate with the CF card aside from obtaining id,size information. The first error states that its unable to detect partitions. Getting this when __irq_demux isnt defined in irq.h arch/sh/cchips/hd6446x/hd64461/built-in.o(.text+0x22c): In function `hd64461_irq_demux': : undefined reference to `__irq_demux' At compile I get this message arch/sh/cchips/hd6446x/hd64461/setup.c: In function `hd64461_irq_demux': arch/sh/cchips/hd6446x/hd64461/setup.c:125: warning: implicit declaration of function `__irq_demux' which in turn comes from this line. return __irq_demux(irq); Replacing with hd64461_irq_demux(irq) works just fine. Best wishes Kristoffer >From: Paul Mundt <le...@li...> >To: Kristoffer Ericson <kri...@ho...> >CC: lin...@li... >Subject: Re: HP6xx kernel panic at bootup >Date: Tue, 13 Mar 2007 08:37:07 +0900 > >On Mon, Mar 12, 2007 at 08:49:00PM +0000, Kristoffer Ericson wrote: > > The only part of the Kernel panic I can see is just the data dump, which > > doesnt help you much. (adresses running from 1c80: -> 1fe0). > > > > I believe its somehow related to the PATA driver, but hard to be sure. > > >Yes, you should be using the MMIO address, the problem is that you're >using the PIO address and it's completely unhandled by your I/O routines. > > > +static struct resource cf_ide_resources[] = { > > + [0] = { > > + .start = 0x1f0, > > + .end = 0x1f0 + 8, > > + .flags = IORESOURCE_IO, > > + }, > > + [1] = { > > + .start = 0x3f6, > > + .end = 0x3f7, > > + .flags = IORESOURCE_IO, > > + }, > >So change these to the MMIO address, and switch to IORESOURCE_MEM. > > > +static int __init hp6xx_devices_setup(void) > > +{ > > + return platform_add_devices(hp6xx_devices,ARRAY_SIZE(hp6xx_devices)); > > +} > > + > > static void __init hp6xx_setup(char **cmdline_p) > > { > > u8 v8; > > u16 v; > > > > + device_initcall(hp6xx_devices_setup); > > + > >Move this after hp6xx_devices_setup(). > > > diff --git a/include/asm-sh/irq.h b/include/asm-sh/irq.h > > index 29d4fb9..eaf77fe 100644 > > --- a/include/asm-sh/irq.h > > +++ b/include/asm-sh/irq.h > > @@ -190,7 +190,7 @@ static inline int generic_irq_demux(int > > > > #define irq_canonicalize(irq) (irq) > > #define irq_demux(irq) sh_mv.mv_irq_demux(irq) > > - > > +#define __irq_demux(irq) (irq) > > #ifdef CONFIG_4KSTACKS > > extern void irq_ctx_init(int cpu); > > extern void irq_ctx_exit(int cpu); > > >What is using this? _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ |
From: Nylund, M. <Mar...@em...> - 2007-03-21 13:46:47
|
The problem doesn't exists anymore with the lates git kernel 2.6.21-rc4-git5. |
From: Nylund, M. <Mar...@em...> - 2007-03-20 07:17:32
|
I'm having problems to start dynamically linked applications in userspace. The bootlog below should give enough information of the system. Here are some symptoms: - The kernel seems to boot just fine (I've also tried 2.6.19). - Trying to start a dynamically linked /sbin/init results an "unaligned userspace access error" (see bootlog in Listing 1) '/sbin/init' is a simple dynamically linked "hello world" program here. =20 - Starting a statically linked /sbin/init works. I know that the linker uses mmap somehow to map the libc into the processes address space and apparently here something goes wrong, but I'm not=20 enough of a memory management hacker to figure out what. Is mm for sh3 somehow broken? Could it be the toolchain which is causing this (taken from www.sh-linux.org rpm repository)? Listing 2 shows another trace message which comes in an enless loop when I try to run my initialisation scripts, (only on 2.6.21-rc4 -never happened on 2.6.19) Thanks for any help, martin ---- Listing 1--------------------------------------------------------------- Linux version 2.6.21-rc4 (hico@emdistvm-xubuntu) (gcc version 3.4.4) #12 Mon Mar 19 16:58:19 CET 2007 On node 0 totalpages: 8192 Normal zone: 64 pages used for memmap Normal zone: 0 pages reserved Normal zone: 8128 pages, LIFO batch:0 Built 1 zonelists. Total pages: 8128 Kernel command line: disptype=3D0 mem=3D32M console=3DttySC0,115200 ip=3D192.168.105.52:192.168.105.50:192.168.105.254:255.255.255.0:abc::off= debug root=3D/dev/nfs ro nfsroot=3D/home/hico/uspc/rootfs,rsize=3D1024,wsize=3D1024 = earlyprintk=3Dserial PID hash table entries: 128 (order: 7, 512 bytes) Interval =3D 83325 = Using tmu for system timer disabling early console 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: 30300k/32768k available (1852k kernel code, 2468k reserved, 81k data, 72k init) Calibrating delay loop... 66.35 BogoMIPS (lpj=3D331776) Mount-cache hash table entries: 512 CPU: SH7727 NET: Registered protocol family 16 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc. JFS: nTxBlock =3D 236, nTxLock =3D 1893 io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered SuperH SCI(F) driver initialized sh-sci: ttySC0 at MMIO 0xfffffe80 (irq =3D 25) is a sci sh-sci: ttySC1 at MMIO 0xa4000150 (irq =3D 59) is a scif RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) cs89x0:cs89x0_probe(0x0) PP_addr at b4000000[a]: 0x3128 cs89x0.c: v2.4.3-pre1 Russell Nelson <ne...@cr...>, Andrew Morton <an...@uo...> eth0: cs8900 rev K found at 0xb4000000 cs89x0: No EEPROM cs89x0 media RJ-45, IRQ 34, programmed I/O, MAC 11:22:33:44:55:66 cs89x0_probe1() successful cs89x0:cs89x0_probe(0x0) cs89x0: request_region(0xb4000003, 0x10) failed cs89x0: no cs8900 or cs8920 detected. Be sure to disable PnP with SETUP physmap platform flash device: 01000000 at a0000000 physmap-flash.0: Found 2 x16 devices at 0x0 in 32-bit bank Intel/Sharp Extended Query Table at 0x0031 Using buffer write method cfi_cmdset_0001: Erase suspend on write enabled erase region 0: offset=3D0x0,size=3D0x40000,blocks=3D64 cmdlinepart partition parsing not available Searching for RedBoot partition table in physmap-flash.0 at offset 0xfc0000 7 RedBoot partitions found on MTD device physmap-flash.0 mice: PS/2 mouse device common for all mice TCP cubic registered NET: Registered protocol family 1 drivers/rtc/hctosys.c: unable to open rtc device (rtc0) eth0: using half-duplex 10Base-T (RJ-45) IP-Config: Complete: device=3Deth0, addr=3D192.168.105.52, mask=3D255.255.255.0, gw=3D192.168.105.254, host=3Dabc, domain=3D, nis-domain=3D(none), bootserver=3D192.168.105.50, rootserver=3D192.168.105.50, = rootpath=3D Looking up port of RPC 100003/2 on 192.168.105.50 Looking up port of RPC 100005/1 on 192.168.105.50 VFS: Mounted root (nfs filesystem) readonly. Freeing unused kernel memory: 72k freed Fixing up unaligned userspace access in "init" pid=3D1 pc=3D0x00000a0e ins=3D0x5f73=20 Fixing up unaligned userspace access in "init" pid=3D1 pc=3D0x00000a10 ins=3D0x6966 ------------------------------------------------------------------------ ----- ---- Listing 2--------------------------------------------------------------- VM: killing process rcS Bad pte =3D ffffffff, process =3D ???, vm_flags =3D 1875, vaddr =3D = 40b000 Stack: (0x8c581dd8 to 0x8c582000) 1dc0: 8c237838 0040b000 1de0: 0040b000 8c237cb8 8e01a02c 003f4000 8c581e5c 8c3ed17c 00000000 ffffffff 1e00: 00000001 00000000 00000001 00518000 8e0d6004 8e0d6004 8e0d6004 00000000 1e20: 00000000 8c3fb544 8c5df9f0 00517fff 8c23c0ce 8c3d4850 00000001 0000000b 1e40: 8c5df9b0 8c3ed17c 00000000 ffffffff 8c581e58 00000000 00000000 8c3fb544 1e60: 8c20d25c 8c580000 8c5a99c0 0000023c 8c5df9b0 8c2119d6 8c5a9bfc 8c3d5630 1e80: 00000000 00000000 8c5a9a3c 8c211fea ffffff0f 8c580000 8c581ee0 8c580000 1ea0: 0000023c 8c580000 0000000b 8c21a70a 0000000b 8c581f60 8c581f9c 8c5a9c18 1ec0: 8c203bf4 7bc5159c 8c581f60 8c5a9c18 8c581fdc 8c581f9c 8c581ff4 00485570 1ee0: 0000000b 00000000 00000000 000000aa 00000000 00000000 00000093 00000001 1f00: 0001ffec 00000000 8c49c000 00000fec 00000010 8e0d8fec 00000010 8c2496d0 1f20: 00000000 8c3f9202 8c2496d0 8c3f9200 fffffff8 8c3f92fc 8c3d5614 8c3f92fc 1f40: 8c3f92fc 8c249870 8c581f9c 7bc515b0 00000000 8c24990e 8c3f9200 8c3f9300 1f60: 00000000 8c2034f0 7bc5159c 7bc51f24 8c49c000 8c20350c 0055ced8 8c20706c 1f80: 7bc5159c 7bc51f24 00485570 ffffff0f 00000001 8c581ff4 8c580000 fffffff2 1fa0: 00000000 00000002 0000000b 7bc519b0 7bc515b0 0055ced8 00000400 7bc519b0 1fc0: 7bc515b0 0055ced8 0055d068 00485420 7bc51f24 7bc5159c 7bc5159c 00485536 1fe0: 00417386 00000001 0055c3e0 00000003 00000000 0000004c 00000160 00000000 Call trace: [<8c3ed17c>] pidhash_init+0x4c/0x100 [<8c237cb8>] unmap_vmas+0x1a8/0x430 [<8c3ed17c>] pidhash_init+0x4c/0x100 [<8c23c0ce>] exit_mmap+0x3e/0xf0 [<8c3ed17c>] pidhash_init+0x4c/0x100 [<8c20d25c>] mmput+0x3c/0xb0 [<8c2119d6>] do_exit+0x1c6/0x730 [<8c211fea>] do_group_exit+0x7a/0x90 [<8c21a70a>] get_signal_to_deliver+0x2da/0x330 [<8c203bf4>] do_notify_resume+0x64/0x5c0 [<8c2496d0>] search_binary_handler+0x40/0x110 [<8c2496d0>] search_binary_handler+0x40/0x110 [<8c249870>] do_execve+0xd0/0x1e0 [<8c24990e>] do_execve+0x16e/0x1e0 [<8c2034f0>] sys_execve+0x30/0x70 [<8c20350c>] sys_execve+0x4c/0x70 [<8c20706c>] restore_all+0x0/0x68 ------------------------------------------------------------------------ ------- |
From: Yoshinori S. <ys...@us...> - 2007-03-20 05:55:06
|
At Mon, 19 Mar 2007 15:53:04 +0100, Fabio Giovagnini wrote: >=20 > Alle 15:00, luned=EC 19 marzo 2007, Paul Mundt ha scritto: > > On Mon, Mar 19, 2007 at 02:32:42PM +0100, Fabio Giovagnini wrote: > > > http://www.linux-sh.org/shwiki/Processors > > > > > > and if I click sh7044 I read that the page is not more available or it > > > need to be written. > > > > Correct, this is just a simple information page, and that's more of a > > placeholder. Feel free to add some notes there if you like, or you an > > remove it if you don't figure it's going to be of any use. > > > > > In the past I tried to make somethink with Paul, but I did not finish= ed > > > the activite bacuase of lack of time. > > > Just a question; was it really avalilable in the past or not? > > > > Most of the work that we did for this before is still hanging around, so > > it should be pretty easy to tie in to the rest of the SH-2 support code > > that's in the tree now. You're still going to need a board with more RAM > > though, so it might not be worth dealing with SH7044. > Considering sh2-7044 very old, I think it is an error for the following=20 > reason: it is 5V supplied, insted of being 3.3V supplied.=20 > We disovered that 3.3 V is not so suitable around each application=20 > environment, so that 5V devices are still ther dignity, even if ther seen= to=20 > be old are birth age. > Among all the sh-2 Renesas' devices 5V devices are not so mach, so 7044 a= nd=20 > its 5V childern I think are still interesting. >=20 > Anyway now I have 1 Mbyte ram Board 7045 based, and not much ram is avail= able=20 > on all the board made by me; I don't know if 1MByte of ram is enough. It is easy to work with 7044/7045. But RAM requires more a lot. =20 > Ciao and best regards. >=20 > P.S. >=20 > What are you working on at this moment? >=20 >=20 >=20 > > > > By this point, SH7044 is quite an old part, so it's likely not worth > > spending too much time on it.. especially since there's far more > > interesting work to be done on SH-2A. >=20 --=20 Yoshinori Sato <ys...@us...> |
From: Kristoffer E. <kri...@ho...> - 2007-03-19 20:01:46
|
Any thoughts paul? I've rewritten the PIO->MMIO stuff which makes io.c more or less obselete, but still get exactly same error at bootup. It fails to detect the partitions on the SDA card (although its detected properly) and gives frozen/timeout errors. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Fabio G. <fab...@au...> - 2007-03-19 14:52:34
|
Alle 15:00, luned=EC 19 marzo 2007, Paul Mundt ha scritto: > On Mon, Mar 19, 2007 at 02:32:42PM +0100, Fabio Giovagnini wrote: > > http://www.linux-sh.org/shwiki/Processors > > > > and if I click sh7044 I read that the page is not more available or it > > need to be written. > > Correct, this is just a simple information page, and that's more of a > placeholder. Feel free to add some notes there if you like, or you an > remove it if you don't figure it's going to be of any use. > > > In the past I tried to make somethink with Paul, but I did not finished > > the activite bacuase of lack of time. > > Just a question; was it really avalilable in the past or not? > > Most of the work that we did for this before is still hanging around, so > it should be pretty easy to tie in to the rest of the SH-2 support code > that's in the tree now. You're still going to need a board with more RAM > though, so it might not be worth dealing with SH7044. Considering sh2-7044 very old, I think it is an error for the following=20 reason: it is 5V supplied, insted of being 3.3V supplied.=20 We disovered that 3.3 V is not so suitable around each application=20 environment, so that 5V devices are still ther dignity, even if ther seen t= o=20 be old are birth age. Among all the sh-2 Renesas' devices 5V devices are not so mach, so 7044 and= =20 its 5V childern I think are still interesting. Anyway now I have 1 Mbyte ram Board 7045 based, and not much ram is availab= le=20 on all the board made by me; I don't know if 1MByte of ram is enough. Ciao and best regards. P.S. What are you working on at this moment? > > By this point, SH7044 is quite an old part, so it's likely not worth > spending too much time on it.. especially since there's far more > interesting work to be done on SH-2A. =2D-=20 =46abio Giovagnini Aurion s.r.l. via degli orti 11, 40050 Funo di Argelato (BO) Tel. +39.335.8350919 =46ax +39.051.8659009 www.aurion-tech.com account telefono VoIP skype (www.skype.com): aurion.giovagnini |
From: Paul M. <le...@li...> - 2007-03-19 14:03:27
|
On Mon, Mar 19, 2007 at 02:32:42PM +0100, Fabio Giovagnini wrote: > http://www.linux-sh.org/shwiki/Processors > > and if I click sh7044 I read that the page is not more available or it > need to be written. Correct, this is just a simple information page, and that's more of a placeholder. Feel free to add some notes there if you like, or you an remove it if you don't figure it's going to be of any use. > In the past I tried to make somethink with Paul, but I did not finished > the activite bacuase of lack of time. > Just a question; was it really avalilable in the past or not? > Most of the work that we did for this before is still hanging around, so it should be pretty easy to tie in to the rest of the SH-2 support code that's in the tree now. You're still going to need a board with more RAM though, so it might not be worth dealing with SH7044. By this point, SH7044 is quite an old part, so it's likely not worth spending too much time on it.. especially since there's far more interesting work to be done on SH-2A. |
From: Fabio G. <fab...@au...> - 2007-03-19 13:32:19
|
Hi all, I'm reading http://www.linux-sh.org/shwiki/Processors and if I click sh7044 I read that the page is not more available or it need to be written. In the past I tried to make somethink with Paul, but I did not finished the activite bacuase of lack of time. Just a question; was it really avalilable in the past or not? Thanks a lot. -- Fabio Giovagnini Aurion s.r.l. via degli orti 11, 40050 Funo di Argelato (BO) Tel. +39.335.8350919 Fax +39.051.8659009 www.aurion-tech.com account telefono VoIP skype (www.skype.com): aurion.giovagnini |
From: Manuel L. <ma...@ro...> - 2007-03-19 11:02:53
|
Hi Paul, On Mon, Mar 19, 2007 at 05:33:30PM +0900, Paul Mundt wrote: > On Mon, Mar 19, 2007 at 09:27:57AM +0100, Manuel Lauss wrote: > > When I build linux with GCC-4.x and enable CONFIG_CC_OPTIMIZE_FOR_SIZE > > linking fails with this error: > > > > LD .tmp_vmlinux1 > > kernel/built-in.o: In function '__cmpxchg_called_with_bad_pointer' > > make[1]: *** [.tmp_vmlinux1] Error 1 > > make: *** [_all] Error 2 > > > > I tracked it to kernel/rtmutex.c, line 88: > > > > #define rt_mutex_cmpxchg(l,c,n) (cmpxchg(&l->owner, c, n) == c) > > > > Apparently the "size" input value passed to cmpxchg is > > neither 4, 2 or 1 (tried a few others too but not sizeof(struct task_struct)). > > Probably a compiler bug? (gcc-4.1.2, Gentoo) > > > Have you tried 8? This was a problem before in another path.. no change. I'll see if I can find out the exact number somehow... > Is CC_OPTIMIZE_FOR_SIZE the only thing you've set? You can try and avoid > the __HAVE_ARCH_CMPXCHG in the gcc4 case if you want to fix it up, but I > haven't hit this directly yet, so I'm hesitant to pull it in general for > something that looks like a single compiler issue. Yes; no funky debug options. Simply removing CC_OPTIMIZE_FOR_SIZE creates a booting kernel. > > Also, these exports need to be removed from sh_ksyms.c, they give > > "undefined reference" errors: > > __sdivsi3_i4i __udiv_qrnnd_16 __udivsi3_i4i > > > Interesting. We'll kill those then. I'd also like to be rid of > __udivdi3_* while we're at it, can you verify whether that causes you > problems or not? I removed all from __udivsi3 to __movstrSI16, no problems with GCC3 and 4. Thanks, -- Manuel Lauss |
From: kogiidena <kog...@eg...> - 2007-03-19 10:29:37
|
> On Mon, Mar 19, 2007 at 08:44:41AM +0900, kogiidena wrote: > > landisk-led is still being verified. > > The deleted version is sent with the next mail. > > The following patches are used in the local. > > > Ok, when you're done with this, please submit it to Richard Purdie > <rp...@rp...> for inclusion, as he maintains the LED subsystem. > > I'll merge the other bits. thanks you very much. kogiidena |
From: Paul M. <le...@li...> - 2007-03-19 08:36:31
|
On Mon, Mar 19, 2007 at 09:27:57AM +0100, Manuel Lauss wrote: > When I build linux with GCC-4.x and enable CONFIG_CC_OPTIMIZE_FOR_SIZE > linking fails with this error: > > LD .tmp_vmlinux1 > kernel/built-in.o: In function '__cmpxchg_called_with_bad_pointer' > make[1]: *** [.tmp_vmlinux1] Error 1 > make: *** [_all] Error 2 > > I tracked it to kernel/rtmutex.c, line 88: > > #define rt_mutex_cmpxchg(l,c,n) (cmpxchg(&l->owner, c, n) == c) > > Apparently the "size" input value passed to cmpxchg is > neither 4, 2 or 1 (tried a few others too but not sizeof(struct task_struct)). > Probably a compiler bug? (gcc-4.1.2, Gentoo) > Have you tried 8? This was a problem before in another path.. Is CC_OPTIMIZE_FOR_SIZE the only thing you've set? You can try and avoid the __HAVE_ARCH_CMPXCHG in the gcc4 case if you want to fix it up, but I haven't hit this directly yet, so I'm hesitant to pull it in general for something that looks like a single compiler issue. You may also want to check with gcc-4.2.x. > Also, these exports need to be removed from sh_ksyms.c, they give > "undefined reference" errors: > __sdivsi3_i4i __udiv_qrnnd_16 __udivsi3_i4i > Interesting. We'll kill those then. I'd also like to be rid of __udivdi3_* while we're at it, can you verify whether that causes you problems or not? |
From: Manuel L. <ma...@ro...> - 2007-03-19 08:28:05
|
Hello, When I build linux with GCC-4.x and enable CONFIG_CC_OPTIMIZE_FOR_SIZE linking fails with this error: LD .tmp_vmlinux1 kernel/built-in.o: In function '__cmpxchg_called_with_bad_pointer' make[1]: *** [.tmp_vmlinux1] Error 1 make: *** [_all] Error 2 I tracked it to kernel/rtmutex.c, line 88: #define rt_mutex_cmpxchg(l,c,n) (cmpxchg(&l->owner, c, n) == c) Apparently the "size" input value passed to cmpxchg is neither 4, 2 or 1 (tried a few others too but not sizeof(struct task_struct)). Probably a compiler bug? (gcc-4.1.2, Gentoo) Also, these exports need to be removed from sh_ksyms.c, they give "undefined reference" errors: __sdivsi3_i4i __udiv_qrnnd_16 __udivsi3_i4i Kernel boots ok otherwise. Thanks, -- Manuel Lauss |
From: Paul M. <le...@li...> - 2007-03-18 10:08:52
|
On Sat, Mar 17, 2007 at 10:23:38AM +0900, kogiidena wrote: > diff -urpN OLD/arch/sh/boards/landisk/setup.c NEW/arch/sh/boards/landisk/setup.c > --- OLD/arch/sh/boards/landisk/setup.c 2007-03-16 09:20:01.000000000 +0900 > +++ NEW/arch/sh/boards/landisk/setup.c 2007-03-17 09:09:29.000000000 +0900 [snip] > +static struct platform_device landisk_led_device = { > + .name = "landisk-led", > + .id = -1 > +}; > + This is unused at the moment, if you want to use the generic heartbeat, you'll have to set the name to "heartbeat". If you have a special driver that you've written, then this should be added in once that driver has been submitted. |
From: Paul M. <le...@li...> - 2007-03-18 10:03:09
|
On Fri, Mar 09, 2007 at 12:03:02PM +0900, Nobuhiro Iwamatsu wrote: > diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig > index 95826b9..cc3c0b2 100644 > --- a/drivers/rtc/Kconfig > +++ b/drivers/rtc/Kconfig > @@ -354,4 +354,10 @@ config RTC_DRV_V3020 > This driver can also be built as a module. If so, the module > will be called rtc-v3020. > > +config RTC_DRV_RS5C313 > + tristate "Ricoh RS5C313" > + depends on RTC_CLASS > + help > + If you say yes here you get support for the Ricoh RS5C313 RTC chips. > + > endmenu This should also depend on SH_LANDISK if it has any hope of compiling.. however.. > +#ifdef CONFIG_SH_LANDISK > +/*****************************************************/ > +/* LANDISK dependence part of RS5C313 */ > +/*****************************************************/ > + [snip] > +#define RS5C313_CEENABLE ctrl_outb(RS5C313_CE_RTCCE, RS5C313_CE); > +#define RS5C313_CEDISABLE ctrl_outb(0x00, RS5C313_CE) > +#define RS5C313_MISCOP ctrl_outb(0x02, 0xB0000008) > + > +static void rs5c313_init_port(void) > +{ > + /* Set SCK as I/O port and Initialize SCSPTR1 data & I/O port. */ > + ctrl_outb(ctrl_inb(SCSMR1) & ~SCSMR1_CA, SCSMR1); > + ctrl_outb(ctrl_inb(SCSCR1) & ~SCSCR1_CKE, SCSCR1); > + > + /* And Initialize SCL for RS5C313 clock */ > + scsptr1_data = ctrl_inb(SCSPTR1) | SCL; /* SCL:H */ > + ctrl_outb(scsptr1_data, SCSPTR1); > + scsptr1_data = ctrl_inb(SCSPTR1) | SCL_OEN; /* SCL output enable */ > + ctrl_outb(scsptr1_data, SCSPTR1); > + RS5C313_CEDISABLE; /* CE:L */ > +} > + This is all I2C cruft, which should be split out in to a separate driver. If any other platforms are going to have a hope of using this driver, it'll be through the generic I2C interfaces (many RTC drivers already do this). Of course the SH_LANDISK dependency can be added, but it's preferable to do this right the first time, before someone ends up inevitably reimplementing the same thing. On Sun, Mar 18, 2007 at 01:38:04AM -0800, Andrew Morton wrote: > drivers/rtc/rtc-rs5c313.c: In function 'rs5c313_read_reg': > drivers/rtc/rtc-rs5c313.c:186: warning: implicit declaration of function 'rs5c313_write_data' > drivers/rtc/rtc-rs5c313.c:187: warning: implicit declaration of function 'rs5c313_read_data' > drivers/rtc/rtc-rs5c313.c: In function 'rs5c313_rtc_read_time': > drivers/rtc/rtc-rs5c313.c:208: error: 'RS5C313_CEENABLE' undeclared (first use in this function) > drivers/rtc/rtc-rs5c313.c:208: error: (Each undeclared identifier is reported only once > drivers/rtc/rtc-rs5c313.c:208: error: for each function it appears in.) > drivers/rtc/rtc-rs5c313.c:217: error: 'RS5C313_CEDISABLE' undeclared (first use in this function) > drivers/rtc/rtc-rs5c313.c: In function 'rs5c313_rtc_set_time': > drivers/rtc/rtc-rs5c313.c:265: error: 'RS5C313_CEENABLE' undeclared (first use in this function) > drivers/rtc/rtc-rs5c313.c:273: error: 'RS5C313_MISCOP' undeclared (first use in this function) > drivers/rtc/rtc-rs5c313.c:274: error: 'RS5C313_CEDISABLE' undeclared (first use in this function) > drivers/rtc/rtc-rs5c313.c: In function 'rs5c313_check_xstp_bit': > drivers/rtc/rtc-rs5c313.c:315: error: 'RS5C313_CEENABLE' undeclared (first use in this function) > drivers/rtc/rtc-rs5c313.c:324: error: 'RS5C313_MISCOP' undeclared (first use in this function) > drivers/rtc/rtc-rs5c313.c:336: error: 'RS5C313_CEDISABLE' undeclared (first use in this function) > drivers/rtc/rtc-rs5c313.c: In function 'rs5c313_rtc_init': > drivers/rtc/rtc-rs5c313.c:390: warning: implicit declaration of function 'rs5c313_init_port' > > I think we're missing a header file? It basically has no hope of compiling for the !SH_LANDISK case at present, so the options are to either munge the dependencies or to rip out the platform-specific cruft from the driver. |