* RPX Lite programming
@ 2000-08-25 2:50 Dan Winkler
2000-08-25 17:49 ` Matthew Locke
2000-08-26 0:25 ` Dan A. Dickey
0 siblings, 2 replies; 3+ messages in thread
From: Dan Winkler @ 2000-08-25 2:50 UTC (permalink / raw)
To: linuxppc-embedded
Newbie alert!!! I've just started developing on the
RPX lite board from embedded-planet. I am currently
trying to write some i2c code that just reads the
temperature registers from the temperature sensor and
thermal monitor (TCN75). I was wondering where
someone like myself could find some example code to
get me started. I found the i2c driver from the
Motorola site and tried to modify it to acommidate my
needs but the first register I try to access it core
dumps. Here is the only part of the code that get's
executed and the line on which it core dumps. Looking
at the immr in memory, everything seems fine. Any
suggestions? Or better yet does anyone have any code
(very basic) that can get me past this first hurdle.
Thanks...
Dan Winkler
unsigned long GetIMMR(void)
{
return 0xFA200000;
}
...init function
/* MPC8xx internal register map */
EPPC *immr = ( EPPC * )( GetIMMR() & 0xffff0000 );
/* Get pointer to BD area on DPRAM */
RTXBD *rtx = ( RTXBD * ) immr->udata.bd_ucode2;
/*
* Configure Port Pins
*/
/*
* PB27: I2CSDA -- I2C Serial Data In/Out
* PB26: I2CSCL -- I2C Serial
*/
immr->pb.pbpar |= (0x30);
immr->pb.pbdir |= (0x30);
immr->pb.pbodr |= (0x30);
=====
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RPX Lite programming
2000-08-25 2:50 RPX Lite programming Dan Winkler
@ 2000-08-25 17:49 ` Matthew Locke
2000-08-26 0:25 ` Dan A. Dickey
1 sibling, 0 replies; 3+ messages in thread
From: Matthew Locke @ 2000-08-25 17:49 UTC (permalink / raw)
To: Dan Winkler; +Cc: linuxppc-embedded
Dan Winkler wrote:
>
> Newbie alert!!! I've just started developing on the
> RPX lite board from embedded-planet. I am currently
> trying to write some i2c code that just reads the
> temperature registers from the temperature sensor and
> thermal monitor (TCN75). I was wondering where
> someone like myself could find some example code to
> get me started. I found the i2c driver from the
there is already a i2c driver for the 8xx in the kernel. It only has
read capabilities, but it works fine (at least for reading the eeprom).
There are several drivers for the 8xx in the kernel that you can use for
examples. Also EP wrote a different i2c driver with write. the EP i2c
driver has not made it to our ftp site yet, so ask EP tech support for
it.
Matthew Locke
Montavista Software
http://www.mvista.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RPX Lite programming
2000-08-25 2:50 RPX Lite programming Dan Winkler
2000-08-25 17:49 ` Matthew Locke
@ 2000-08-26 0:25 ` Dan A. Dickey
1 sibling, 0 replies; 3+ messages in thread
From: Dan A. Dickey @ 2000-08-26 0:25 UTC (permalink / raw)
To: Dan Winkler; +Cc: linuxppc-embedded
Dan Winkler wrote:
> ... I was wondering where
> someone like myself could find some example code to
> get me started.
I'm not sure how much of it relates to ppc programming,
(probably most of it) - but I'd check (and will be checking
when I get to that point) the LM Sensors stuff, which can
be found at: http://www.netroedge.com/~lm78/
-Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-08-26 0:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-25 2:50 RPX Lite programming Dan Winkler
2000-08-25 17:49 ` Matthew Locke
2000-08-26 0:25 ` Dan A. Dickey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).