I would suggest you take a close look at your databus and make sure you're talking to the bits on the bus you think you are. I recently had a board on which the wrong 16 bits of the databus were interfaced to a part. I had to redefine inb and outb to bit twiddle properly to get the right stuff in and out, otherwise I was seeing my bus pullups instead of the data I was interested in.
Also pay close attention to any byteswapping your memory controller may be doing for you. ie: big endian / little endian. Perhaps you need to reconfig your CS for the right bus width of the part? good luck! -Adam ------------- [EMAIL PROTECTED] -----Original Message----- From: Agecodagis F. Moreau [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 5:27 AM To: aaalinux Subject: inb problems hi every/arm/body! I'm busy with a, i think, ground zero hardware problem. Trying to modify i82365.c source to get positive probe result from my so marvelous new self designed Pcmcia card :=) plugged on a CDB89712 board, kernel 2.4.6 My card is responding a 0x200003E0. I performed an ioremap(...) in initialisation routines. It works fine. BUT...... Trying to read and write the PCMCIA chip using the ioremaped address gives the following result: The hardware CS2 and on my board generated /IOR and /IOW move correctly. So ioremap works fine. Writing 0x3A at physical adress 0x200003e0 is ok. Reading 0x32 at physical adress 0x200003e1 is ok. (I cleaned my old oscilloscope to check each bit one by one....) All timings seems also ok. So, on the hardware side, all is ok! But the inb(port+1); doesn't return me the correct value (0x32). More: I tried a mad loop only making reads on bus after having removed le plugged card and changed by hand some bits on the data bus cause no other access on the data bus was taking place. Never any change has been seen in returned result! Hardware signals are one more time ok but...... Somebody has any idea? Why outb works and inb doesn't? _______________________________________________ http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm http://www.arm.linux.org.uk/armlinux/mailinglists.php Please visit the above addresses for information on this list. _______________________________________________ http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm http://www.arm.linux.org.uk/armlinux/mailinglists.php Please visit the above addresses for information on this list.
