writing to flash from linux

2007-09-11 Thread Yoni Levin
Hi , I have EN29LV640H flash (http://www.eonsdi.com/pdf/EN29LV640.pdf) On my mpc83xx board. How can I write data to flash from linux.? I guess it done with mtd , there is an example somewhere? Thanks. ___ Linuxppc-embedded mailing list Linuxppc-em

Power Managment (mpc83xx)

2007-08-13 Thread Yoni Levin
I have mpc83xx, and I work with Linux 2.6 I am trying to use power management states. I succeed to get into D1 state (echo standby > /sys/power/state), And to waked up by GPIO. But when I try tried echo mem > /sys/power/state it waked up by reset (that stuck in the middle) Or echo disk > /sys

how the bytes ordered in mpc8313

2007-08-08 Thread Yoni Levin
I have mpc83xx, I saw that I need to use swab32 to any read\write operation from registers, I don't understand why I need it? Do I need it for all registers? Why in the mpc8313 reference in registers description some bits look like 31,30,29,.,3,2,1,0 And some: 0,1,2,3.,30,31 Is it just mistak

RE: GPIO interrupts on mpc8313e

2007-08-02 Thread Yoni Levin
myirq=74 -Original Message- From: Scott Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 6:19 PM To: Yoni Levin Cc: linuxppc-embedded@ozlabs.org Subject: Re: GPIO interrupts on mpc8313e Yoni Levin wrote: > Yes, I removed the flag (0) and nothing change in both cases

RE: GPIO interrupts on mpc8313e

2007-08-02 Thread Yoni Levin
: %d \n",myirq); int ret; ret=- request_irq(74, GPIOinterrupt_handler,0, "GPIO", NULL); printk("ret is : %d \n",ret); } -Original Message- From: Scott Wood [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 01, 2007 9:36 PM To: Yon

GPIO interrupts on mpc8313e

2007-08-01 Thread Yoni Levin
I want to receive interrupt from 1 GPIO port (for example 14) I changed the GPIMR to 0x (so I need to get interrupts from all GPIO ports) And then request the irq by : irq_create_mapping(NULL,74); request_irq(74,handler,IRQF_DISABLED,"GPIO",NULL); the return value is 0 (OK) but I c

RE: interrupts in mpc8313

2007-07-31 Thread Yoni Levin
All I had to do was to add : irq_create_mapping(NULL,71) and yes it not the exact code , I work with 2 computers... thanks. -Original Message- From: Scott Wood [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 31, 2007 4:35 PM To: Yoni Levin Cc: linuxppc-embedded@ozlabs.org Subject: Re

interrupts in mpc8313

2007-07-31 Thread Yoni Levin
Hi, I am working on the MPC8313E board , I work with the DMA that works fine, but I want to get the interrupt when it finish. I am working under linux 2.6.20 I tried to use the function request_irq : Ret=Request_irq(71,interrupt_handler,SA_INTERUPT,"dma_irq",NULL); But I receiv