[PATCH] Add AMCC Arches defconfig file

2008-07-15 Thread fkan
From: Victor Gallardo <[EMAIL PROTECTED]>

ppc4xx: Add AMCC Arches defconfig file

Signed-off-by: Victor Gallardo <[EMAIL PROTECTED]>
---
 arch/powerpc/configs/44x/arches_defconfig |  737 +
 1 files changed, 737 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/configs/44x/arches_defconfig

diff --git a/arch/powerpc/configs/44x/arches_defconfig 
b/arch/powerpc/configs/44x/arches_defconfig
new file mode 100644
index 000..55396c9
--- /dev/null
+++ b/arch/powerpc/configs/44x/arches_defconfig
@@ -0,0 +1,737 @@
+#
+# Automatically generated make config: don't edit
+# Linux kernel version: 2.6.26-rc5
+# Mon Jun 30 15:41:11 2008
+#
+# CONFIG_PPC64 is not set
+
+#
+# Processor support
+#
+# CONFIG_6xx is not set
+# CONFIG_PPC_85xx is not set
+# CONFIG_PPC_8xx is not set
+# CONFIG_40x is not set
+CONFIG_44x=y
+# CONFIG_E200 is not set
+CONFIG_4xx=y
+CONFIG_BOOKE=y
+CONFIG_PTE_64BIT=y
+CONFIG_PHYS_64BIT=y
+# CONFIG_PPC_MM_SLICES is not set
+CONFIG_NOT_COHERENT_CACHE=y
+CONFIG_PPC32=y
+CONFIG_WORD_SIZE=32
+CONFIG_PPC_MERGE=y
+CONFIG_MMU=y
+CONFIG_GENERIC_CMOS_UPDATE=y
+CONFIG_GENERIC_TIME=y
+CONFIG_GENERIC_TIME_VSYSCALL=y
+CONFIG_GENERIC_CLOCKEVENTS=y
+CONFIG_GENERIC_HARDIRQS=y
+# CONFIG_HAVE_SETUP_PER_CPU_AREA is not set
+CONFIG_IRQ_PER_CPU=y
+CONFIG_STACKTRACE_SUPPORT=y
+CONFIG_LOCKDEP_SUPPORT=y
+CONFIG_RWSEM_XCHGADD_ALGORITHM=y
+CONFIG_ARCH_HAS_ILOG2_U32=y
+CONFIG_GENERIC_HWEIGHT=y
+CONFIG_GENERIC_CALIBRATE_DELAY=y
+CONFIG_GENERIC_FIND_NEXT_BIT=y
+# CONFIG_ARCH_NO_VIRT_TO_BUS is not set
+CONFIG_PPC=y
+CONFIG_EARLY_PRINTK=y
+CONFIG_GENERIC_NVRAM=y
+CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
+CONFIG_ARCH_MAY_HAVE_PC_FDC=y
+CONFIG_PPC_OF=y
+CONFIG_OF=y
+CONFIG_PPC_UDBG_16550=y
+# CONFIG_GENERIC_TBSYNC is not set
+CONFIG_AUDIT_ARCH=y
+CONFIG_GENERIC_BUG=y
+# CONFIG_DEFAULT_UIMAGE is not set
+CONFIG_PPC_DCR_NATIVE=y
+# CONFIG_PPC_DCR_MMIO is not set
+CONFIG_PPC_DCR=y
+CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
+
+#
+# General setup
+#
+CONFIG_EXPERIMENTAL=y
+CONFIG_BROKEN_ON_SMP=y
+CONFIG_INIT_ENV_ARG_LIMIT=32
+CONFIG_LOCALVERSION=""
+CONFIG_LOCALVERSION_AUTO=y
+CONFIG_SWAP=y
+CONFIG_SYSVIPC=y
+CONFIG_SYSVIPC_SYSCTL=y
+CONFIG_POSIX_MQUEUE=y
+# CONFIG_BSD_PROCESS_ACCT is not set
+# CONFIG_TASKSTATS is not set
+# CONFIG_AUDIT is not set
+# CONFIG_IKCONFIG is not set
+CONFIG_LOG_BUF_SHIFT=14
+# CONFIG_CGROUPS is not set
+# CONFIG_GROUP_SCHED is not set
+CONFIG_SYSFS_DEPRECATED=y
+CONFIG_SYSFS_DEPRECATED_V2=y
+# CONFIG_RELAY is not set
+# CONFIG_NAMESPACES is not set
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_INITRAMFS_SOURCE=""
+# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
+CONFIG_SYSCTL=y
+CONFIG_EMBEDDED=y
+CONFIG_SYSCTL_SYSCALL=y
+CONFIG_SYSCTL_SYSCALL_CHECK=y
+CONFIG_KALLSYMS=y
+# CONFIG_KALLSYMS_ALL is not set
+# CONFIG_KALLSYMS_EXTRA_PASS is not set
+CONFIG_HOTPLUG=y
+CONFIG_PRINTK=y
+CONFIG_BUG=y
+CONFIG_ELF_CORE=y
+CONFIG_COMPAT_BRK=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_VM_EVENT_COUNTERS=y
+CONFIG_SLUB_DEBUG=y
+# CONFIG_SLAB is not set
+CONFIG_SLUB=y
+# CONFIG_SLOB is not set
+# CONFIG_PROFILING is not set
+# CONFIG_MARKERS is not set
+CONFIG_HAVE_OPROFILE=y
+# CONFIG_KPROBES is not set
+CONFIG_HAVE_KPROBES=y
+CONFIG_HAVE_KRETPROBES=y
+# CONFIG_HAVE_DMA_ATTRS is not set
+CONFIG_PROC_PAGE_MONITOR=y
+CONFIG_SLABINFO=y
+CONFIG_RT_MUTEXES=y
+# CONFIG_TINY_SHMEM is not set
+CONFIG_BASE_SMALL=0
+CONFIG_MODULES=y
+# CONFIG_MODULE_FORCE_LOAD is not set
+CONFIG_MODULE_UNLOAD=y
+# CONFIG_MODULE_FORCE_UNLOAD is not set
+# CONFIG_MODVERSIONS is not set
+# CONFIG_MODULE_SRCVERSION_ALL is not set
+CONFIG_KMOD=y
+CONFIG_BLOCK=y
+CONFIG_LBD=y
+# CONFIG_BLK_DEV_IO_TRACE is not set
+# CONFIG_LSF is not set
+# CONFIG_BLK_DEV_BSG 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"
+CONFIG_CLASSIC_RCU=y
+CONFIG_PPC4xx_PCI_EXPRESS=y
+
+#
+# Platform support
+#
+# CONFIG_PPC_MPC512x is not set
+# CONFIG_PPC_MPC5121 is not set
+# CONFIG_PPC_CELL is not set
+# CONFIG_PPC_CELL_NATIVE is not set
+# CONFIG_PQ2ADS is not set
+# CONFIG_BAMBOO is not set
+# CONFIG_EBONY is not set
+# CONFIG_SEQUOIA is not set
+# CONFIG_TAISHAN is not set
+# CONFIG_KATMAI is not set
+# CONFIG_RAINIER is not set
+# CONFIG_WARP is not set
+# CONFIG_CANYONLANDS is not set
+CONFIG_ARCHES=y
+# CONFIG_YOSEMITE is not set
+CONFIG_460GT=y
+# CONFIG_IPIC is not set
+# CONFIG_MPIC is not set
+# CONFIG_MPIC_WEIRD is not set
+# CONFIG_PPC_I8259 is not set
+# CONFIG_PPC_RTAS is not set
+# CONFIG_MMIO_NVRAM is not set
+# CONFIG_PPC_MPC106 is not set
+# CONFIG_PPC_970_NAP is not set
+# CONFIG_PPC_INDIRECT_IO is not set
+# CONFIG_GENERIC_IOMAP is not set
+# CONFIG_CPU_FREQ is not s

[PATCH] Add AMCC Arches DTS

2008-07-15 Thread fkan
From: Victor Gallardo <[EMAIL PROTECTED]>

ppc4xx: Add AMCC Arches DTS

Signed-off-by: Victor Gallardo <[EMAIL PROTECTED]>
---
 arch/powerpc/boot/dts/arches.dts |  522 ++
 1 files changed, 522 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/arches.dts

diff --git a/arch/powerpc/boot/dts/arches.dts b/arch/powerpc/boot/dts/arches.dts
new file mode 100644
index 000..459cec2
--- /dev/null
+++ b/arch/powerpc/boot/dts/arches.dts
@@ -0,0 +1,522 @@
+/*
+ * Device Tree Source for AMCC Arches (dual 460GT board)
+ *
+ * (C) Copyright 2008
+ * Victor Gallardo, Applied Micro Circuits Corp., [EMAIL PROTECTED]
+ * Adam Graham, Applied Micro Circuits Corp., [EMAIL PROTECTED]
+ *
+ * Based on the glacier.dts file
+ * Stefan Roese <[EMAIL PROTECTED]>
+ * Copyright 2008 DENX Software Engineering
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+/ {
+   #address-cells = <2>;
+   #size-cells = <1>;
+   model = "amcc,arches";
+   compatible = "amcc,arches";
+   dcr-parent = <&/cpus/[EMAIL PROTECTED]>;
+
+   aliases {
+   ethernet0 = &EMAC0;
+   ethernet1 = &EMAC1;
+   serial0 = &UART0;
+   serial1 = &UART1;
+   };
+
+   cpus {
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   [EMAIL PROTECTED] {
+   device_type = "cpu";
+   model = "PowerPC,460GT";
+   reg = <0>;
+   clock-frequency = <0>; /* Filled in by U-Boot */
+   timebase-frequency = <0>; /* Filled in by U-Boot */
+   i-cache-line-size = <20>;
+   d-cache-line-size = <20>;
+   i-cache-size = <8000>;
+   d-cache-size = <8000>;
+   dcr-controller;
+   dcr-access-method = "native";
+   };
+   };
+
+   memory {
+   device_type = "memory";
+   reg = <0 0 0>; /* Filled in by U-Boot */
+   };
+
+   UIC0: interrupt-controller0 {
+   compatible = "ibm,uic-460gt","ibm,uic";
+   interrupt-controller;
+   cell-index = <0>;
+   dcr-reg = <0c0 009>;
+   #address-cells = <0>;
+   #size-cells = <0>;
+   #interrupt-cells = <2>;
+   };
+
+   UIC1: interrupt-controller1 {
+   compatible = "ibm,uic-460gt","ibm,uic";
+   interrupt-controller;
+   cell-index = <1>;
+   dcr-reg = <0d0 009>;
+   #address-cells = <0>;
+   #size-cells = <0>;
+   #interrupt-cells = <2>;
+   interrupts = <1e 4 1f 4>; /* cascade */
+   interrupt-parent = <&UIC0>;
+   };
+
+   UIC2: interrupt-controller2 {
+   compatible = "ibm,uic-460gt","ibm,uic";
+   interrupt-controller;
+   cell-index = <2>;
+   dcr-reg = <0e0 009>;
+   #address-cells = <0>;
+   #size-cells = <0>;
+   #interrupt-cells = <2>;
+   interrupts = ; /* cascade */
+   interrupt-parent = <&UIC0>;
+   };
+
+   UIC3: interrupt-controller3 {
+   compatible = "ibm,uic-460gt","ibm,uic";
+   interrupt-controller;
+   cell-index = <3>;
+   dcr-reg = <0f0 009>;
+   #address-cells = <0>;
+   #size-cells = <0>;
+   #interrupt-cells = <2>;
+   interrupts = <10 4 11 4>; /* cascade */
+   interrupt-parent = <&UIC0>;
+   };
+
+   SDR0: sdr {
+   compatible = "ibm,sdr-460gt";
+   dcr-reg = <00e 002>;
+   };
+
+   CPR0: cpr {
+   compatible = "ibm,cpr-460gt";
+   dcr-reg = <00c 002>;
+   };
+
+   plb {
+   compatible = "ibm,plb-460gt", "ibm,plb4";
+   #address-cells = <2>;
+   #size-cells = <1>;
+   ranges;
+   clock-frequency = <0>; /* Filled in by U-Boot */
+
+   SDRAM0: sdram {
+

[PATCH] Add AMCC Arches 460GT eval board support to platforms/44x

2008-07-15 Thread fkan
From: Victor Gallardo <[EMAIL PROTECTED]>

ppc4xx: Add AMCC Arches 460GT eval board support 

Signed-off-by: Victor Gallardo <[EMAIL PROTECTED]>
---
 arch/powerpc/platforms/44x/Kconfig  |   18 
 arch/powerpc/platforms/44x/Makefile |1 +
 arch/powerpc/platforms/44x/arches.c |   76 +++
 3 files changed, 95 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/platforms/44x/arches.c

diff --git a/arch/powerpc/platforms/44x/Kconfig 
b/arch/powerpc/platforms/44x/Kconfig
index 6abe913..95d1217 100644
--- a/arch/powerpc/platforms/44x/Kconfig
+++ b/arch/powerpc/platforms/44x/Kconfig
@@ -77,6 +77,16 @@ config CANYONLANDS
help
  This option enables support for the AMCC PPC460EX evaluation board.
 
+config ARCHES
+   bool "Arches"
+   depends on 44x
+   default n
+   select 460GT
+   select PCI
+   select PPC4xx_PCI_EXPRESS
+   help
+ This option enables support for the AMCC PPC460GT Arches board.
+
 config YOSEMITE
bool "Yosemite"
depends on 44x
@@ -149,6 +159,14 @@ config 460EX
select IBM_NEW_EMAC_ZMII
select IBM_NEW_EMAC_TAH
 
+config 460GT
+   bool
+   select PPC_FPU
+   select IBM_NEW_EMAC_EMAC4
+   select IBM_NEW_EMAC_RGMII
+   select IBM_NEW_EMAC_ZMII
+   select IBM_NEW_EMAC_TAH
+
 # 44x errata/workaround config symbols, selected by the CPU models above
 config IBM440EP_ERR42
bool
diff --git a/arch/powerpc/platforms/44x/Makefile 
b/arch/powerpc/platforms/44x/Makefile
index 774165f..86a4823 100644
--- a/arch/powerpc/platforms/44x/Makefile
+++ b/arch/powerpc/platforms/44x/Makefile
@@ -9,3 +9,4 @@ obj-$(CONFIG_RAINIER)   += rainier.o
 obj-$(CONFIG_WARP) += warp.o
 obj-$(CONFIG_WARP) += warp-nand.o
 obj-$(CONFIG_CANYONLANDS) += canyonlands.o
+obj-$(CONFIG_ARCHES)   += arches.o
diff --git a/arch/powerpc/platforms/44x/arches.c 
b/arch/powerpc/platforms/44x/arches.c
new file mode 100644
index 000..6d6aa66
--- /dev/null
+++ b/arch/powerpc/platforms/44x/arches.c
@@ -0,0 +1,76 @@
+/*
+ * Arches board specific routines
+ *
+ * (C) Copyright 2008
+ * Victor Gallardo, Applied Micro Circuits Corp., [EMAIL PROTECTED]
+ * Adam Graham, Applied Micro Circuits Corp., [EMAIL PROTECTED]
+ *
+ * Based on the Canyonlands code by
+ * Stefan Roese <[EMAIL PROTECTED]>
+ * Copyright 2008 DENX Software Engineering
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+static __initdata struct of_device_id arches_of_bus[] = {
+   { .compatible = "ibm,plb4", },
+   { .compatible = "ibm,opb", },
+   { .compatible = "ibm,ebc", },
+   {},
+};
+
+static int __init arches_device_probe(void)
+{
+   of_platform_bus_probe(NULL, arches_of_bus, NULL);
+
+   return 0;
+}
+machine_device_initcall(arches, arches_device_probe);
+
+static int __init arches_probe(void)
+{
+   unsigned long root = of_get_flat_dt_root();
+
+   if (!of_flat_dt_is_compatible(root, "amcc,arches"))
+   return 0;
+
+   ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC;
+
+   return 1;
+}
+
+define_machine(arches) {
+   .name   = "Arches",
+   .probe  = arches_probe,
+   .progress   = udbg_progress,
+   .init_IRQ   = uic_init_tree,
+   .get_irq= uic_get_irq,
+   .restart= ppc4xx_reset_system,
+   .calibrate_decr = generic_calibrate_decr,
+};
-- 
1.5.5

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: Failure of request_irq() for MPC8313 using arch=powerpc

2008-07-15 Thread Duy-Ky Nguyen
Hi Dave,

I've just tried it and it failed.

Before I had tried using the function
int virq = of_irq_to_resource(GPIO_IRQ, 0, NULL);
and it failed the same way

I call request_irq() in the operation init and open, it behaves the same

I greatky appreciate your help, Dave.

Best Regards,

Duy-Ky

//
// Start of capture

Unable to handle kernel paging request for data at address 0x005e
Faulting instruction address: 0xc000d1e8
Oops: Kernel access of bad area, sig: 11 [#1]

Modules linked in: ppc_drv
NIP: C000D1E8 LR: C000D274 CTR: C0006088
REGS: c7883d20 TRAP: 0300   Not tainted  (2.6.20)
MSR: 9032   CR: 22000448  XER: 
DAR: 005E, DSISR: 2000
TASK = c053a810[767] 'rrgg' THREAD: c7882000
GPR00: C000D274 C7883DD0 C053A810 004A C0282BA8 C7883E08 C7FD9440 C0273EEC
GPR08:   0100 C0006088 22000448 10018D00 07FFD000 28000422
GPR16: 1009 100B 100B7328    100C8968 100C89A8
GPR24: 100BDFE8   C7FD9440 FFEA C7883E08 C0282BA8 004A
Call Trace:
[C7883DD0] [C7FD5EE8]  (unreliable)
[C7883DF0] [C000D274]
[C7883E00] [C0009FC8]
[C7883E30] [C000609C]
[C7883E60] [C9072030]
[C7883E70] [C0063E5C]
[C7883EA0] [C005FFAC]
[C7883EC0] [C0060244]
[C7883F20] [C00602B8]
[C7883F40] [C000F540]
--- Exception: c01Instruction dump:
409effc8 80030024 900b0020 4e800020 7d800026 9421ffe0 7c0802a6 bfa10014
7c9e2378 7cbd2b78 91810010 90010024 <83e30014> 2f9f 419e0028 2e05
 Segmentation fault

// End of Capture

  - Original Message - 
  From: Liu Dave 
  To: Duy-Ky Nguyen ; linuxppc-embedded@ozlabs.org 
  Sent: Tuesday, July 15, 2008 7:09 PM
  Subject: RE: Failure of request_irq() for MPC8313 using arch=powerpc


  Hi Nguyen,

  If current PowerPC linux is using the virq to request_irq,
  you need do the irq_of_parse_and_map(np, 0) to get the virq.

  like.
  virq = irq_of_parse_and_map(np, 0)
  request_irq(virq,...);

  Hope it can help you.
  Thanks,
  Dave


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duy-Ky Nguyen
Sent: 2008年7月16日 8:59 AM
To: linuxppc-embedded@ozlabs.org
Subject: Failure of request_irq() for MPC8313 using arch=powerpc


Hello,

I had no problem in using request_irq() for MPC8272 with arch=ppc from 
Montavista Linux

But I have failure for MPC8313 with arch=powerpc from FreeScale LTIB Linux 
with error code -38

I found its header file mpc83xx.h under include/asm-ppc, while it's 
supposed to be under include/asm-powerpc.

I did try to copy the header file to directory asm-powerpc

From MPC8313 datasheet, I have 

GPIO_IRQ = 74

and I use

DEVICE_NAME = "ppc"
IRQ_FLAG = IRQF_SHARED// use new flag
here my function call

request_irq (GPIO_IRQ,
  ppc_ISR,  
  IRQ_FLAG,
  DEVICE_NAME,   
  NULL);   

I'd appreciate any help on this problem.

Best Regards,

Duy-Kyng

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

RE: Failure of request_irq() for MPC8313 using arch=powerpc

2008-07-15 Thread Liu Dave
Hi Nguyen,
 
If current PowerPC linux is using the virq to request_irq,
you need do the irq_of_parse_and_map(np, 0) to get the virq.
 
like.
virq = irq_of_parse_and_map(np, 0)
request_irq(virq,...);
 
Hope it can help you.
Thanks,
Dave



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duy-Ky 
Nguyen
Sent: 2008?7?16? 8:59 AM
To: linuxppc-embedded@ozlabs.org
Subject: Failure of request_irq() for MPC8313 using arch=powerpc


Hello,
 
I had no problem in using request_irq() for MPC8272 with arch=ppc from 
Montavista Linux
 
But I have failure for MPC8313 with arch=powerpc from FreeScale LTIB 
Linux with error code -38
 
I found its header file mpc83xx.h under include/asm-ppc, while it's 
supposed to be under include/asm-powerpc.
 
I did try to copy the header file to directory asm-powerpc
 
From MPC8313 datasheet, I have 
 
GPIO_IRQ = 74
 
and I use
 
DEVICE_NAME = "ppc"
IRQ_FLAG = IRQF_SHARED// use new flag
here my function call
 
request_irq (GPIO_IRQ,
  ppc_ISR,  
  IRQ_FLAG,
  DEVICE_NAME,   
  NULL);   

I'd appreciate any help on this problem.
 
Best Regards,
 
Duy-Kyng
 
 

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Failure of request_irq() for MPC8313 using arch=powerpc

2008-07-15 Thread Duy-Ky Nguyen
Hello,

I had no problem in using request_irq() for MPC8272 with arch=ppc from 
Montavista Linux

But I have failure for MPC8313 with arch=powerpc from FreeScale LTIB Linux with 
error code -38

I found its header file mpc83xx.h under include/asm-ppc, while it's supposed to 
be under include/asm-powerpc.

I did try to copy the header file to directory asm-powerpc

>From MPC8313 datasheet, I have 

GPIO_IRQ = 74

and I use

DEVICE_NAME = "ppc"
IRQ_FLAG = IRQF_SHARED// use new flag
here my function call

request_irq (GPIO_IRQ,
  ppc_ISR,  
  IRQ_FLAG,
  DEVICE_NAME,   
  NULL);   

I'd appreciate any help on this problem.

Best Regards,

Duy-Kyng

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Re: MPC8313 ERDB has proper interrupt mapping for TSEC?

2008-07-15 Thread Kumar Gala


On Jul 14, 2008, at 7:14 AM, selvamuthukumar v wrote:


From, arch/powerpc/boot/dts/mpc8313erdb.dts,

212 enet0: [EMAIL PROTECTED] {
  .
  .
219 interrupts = <37 0x8 36 0x8 35 0x8>;
  .
  .
222 };
223
224 enet1: [EMAIL PROTECTED] {
  .
  .
231 interrupts = <34 0x8 33 0x8 32 0x8>;
  .
234 };
235

But as per 8313 Reference manual interrups 32, 33, 34 are for
[EMAIL PROTECTED] and 35, 36, 37 are for [EMAIL PROTECTED] Any idea why 
interrupt
numbers are swapped for enet0 and enet1?


I believe different revisions of the part had different mappings.

- k
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: Videomode 800x480

2008-07-15 Thread Anatolij Gustschin
Hello,

Alex_SYS wrote:
> Hello, I have the problem that I need a Framebuffer resolution 800x480!
> Since now I have filled the fb_info, var and fix Structs!
> But there was the problem with the resolution!
> I have found out that the problem is the videomode!
> In modedb there is unfortunately no 800x480 Videomode, and I have tried my
> own 800x480 Struct, but the Kernel does`t want my settings (I tried to
> change an 800x600 to 800x480 only by changing yres to 480).
> Can someone tell me please a working fb_videomode struct for 800x480?

Values for 800x480 fb_videomode depend on the TFT-panel that
you are using. Without the spec of this panel it is hard to guess.
It is also hard to guess the value for .pixclock as we do not know
if internal or external clock is used as the source for display
reference clock. What is the value of GDC DCM0 register (at
offset 0x1fd or 0x1fd0100 from the GDC base)?

Try something like this:
.xres = 800
.yres = 480
.pixclock = 4
.left_margin = 86
.right_margin = 42
.upper_margin = 33
.lower_margin = 10
.hsync_len = 128
.vsync_len = 2

> The syncs are setted up by U-Boot .

then you probably should retrieve proper values for fb_videomode
from display controller registers set up by U-Boot. If you do not
have the spec for your panel, it is the way to go. Consult the
GDC manual (Display control registers section) and
Documentation/fb/framebuffer.txt in the linux source tree.

Best regards,
Anatolij
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Videomode 800x480

2008-07-15 Thread Alex_SYS

Hello, I have the problem that I need a Framebuffer resolution 800x480!
Since now I have filled the fb_info, var and fix Structs!
But there was the problem with the resolution!
I have found out that the problem is the videomode!
In modedb there is unfortunately no 800x480 Videomode, and I have tried my
own 800x480 Struct, but the Kernel does`t want my settings (I tried to
change an 800x600 to 800x480 only by changing yres to 480).
Can someone tell me please a working fb_videomode struct for 800x480?
The syncs are setted up by U-Boot .

Thank you very much
-- 
View this message in context: 
http://www.nabble.com/Videomode-800x480-tp18470632p18470632.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Please Help me for generating the download.bit image

2008-07-15 Thread Naresh Bhat
Hi All,

While generating the "linux_system.bit" for my ML403 board I am getting this
error

/bin/sh: line 1:  6954 Aborted bitgen -w -f bitgen.ut
system_linux
make: *** [implementation/system_linux.bit] Error 134

Done!

can anybody tell why I am getting this error? Please help me on this
issue-:(

-- 

Naresh Bhat
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded