How to make a memory region to be cache disabled ? Cpu is mpc82XX or mpc83XX.

2012-03-13 Thread hellohello
How to make a memory region to be cache disabled in linux? I'm porting mpc83XX from vxworks to linux. Now meet a question: Cpu use a memory region (GPCM mode of bus) to access peripherals, we need this memory to be cache disabled. Linux Kernel is 2.6.25. Thanks very much for any hint!

JFFS2 question : Mounting /dev/mtdblock1 failed , NOR flash

2010-08-16 Thread hellohello
I have one NOR flash, sector size is 128k. I want to make jffs2 filesystem on it to store data. I have used flash_eraseall -j to format it as jffs2. But I meet the problem when mount the /dev/mtdblock1. Thanks for any pointers or ideas. -sh-2.05b# mount -t jffs2 /dev/mtdblock1 /mnt/jffs

Re: CPM UART on MPC8270

2010-06-09 Thread hellohello
Although I haven't used scc port as uart, I think your smc1 part in your dts file maybe is wrong. ser...@11a82 { ... reg = 0x11a80 0x20 0x87fc 2; should be: reg = 0x11a80 0x20 XXX 40; XXX is the value which is set at 0x87fc in your bootloader. I just got this mistake a few days ago.

Re: Problem of PowerPc 82xx when using smc

2010-05-22 Thread hellohello
as which are done in u-boot, except to set SMC1_BASE again. So if SMC1_BASE is transferred to kernel by dts correctly, SMC1 should work well. The problem must be my dts file ,not the code. - Original Message - From: hellohello hellohello...@163.com To: Scott Wood scottw...@freescale.com Cc

Re: Problem of PowerPc 82xx when using smc

2010-05-21 Thread hellohello
. My kernel is 2.6.25, this SMC1_BASE value can be transferred to kernel by dts tree, but I have not find the code to set it to 0x87FC offset of the DPRAM. Or there is another way to solve it ? - Original Message - From: Scott Wood scottw...@freescale.com To: hellohello hellohello

Re: Problem of PowerPc 82xx when using smc

2010-05-21 Thread hellohello
, boys and girls as well - Original Message - From: Gary Thomas g...@mlbassoc.com To: hellohello hellohello...@163.com Cc: Scott Wood scottw...@freescale.com; linuxppc-dev@lists.ozlabs.org Sent: Friday, May 21, 2010 7:20 PM Subject: Re: Problem of PowerPc 82xx when using smc

Problem of PowerPc 82xx when using smc

2010-05-20 Thread hellohello
I find a problem in drivers/serial/cpm_uart/cpm_uart_cpm2.c: int cpm_uart_allocbuf(struct uart_cpm_port *pinfo, unsigned int is_con) { ... ... pinfo-tx_bd_base = pinfo-rx_bd_base + pinfo-rx_nrfifos; /*The above line should be :*/ pinfo-tx_bd_base = pinfo-rx_bd_base + sizeof(cbd_t) *

Re: Problem of PowerPc 82xx when using smc

2010-05-20 Thread hellohello
cpm_uart_cpm2.c nor cpm_uart_core.c. Should I add these code to cpm_uart_core.c? --dp_mem = cpm_dpram_addr(0x87fc); --out_be16(dp_mem, SMC1_BASE); - Original Message - From: Scott Wood scottw...@freescale.com To: hellohello hellohello...@163.com Cc: linuxppc-dev@lists.ozlabs.org Sent