LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Where to define IO ports
@ 2006-03-14  4:40 Edward Jubenville
  0 siblings, 0 replies; 4+ messages in thread
From: Edward Jubenville @ 2006-03-14  4:40 UTC (permalink / raw)
  To: linuxppc-embedded

We are building a board similar to the Freescale Lite5200 (IceCube) board,
using ELDK 3.0 with Linux 2.4.25.

We have added a peripheral to the LocalPlus bus, and I'm trying to figure
out how to modify the kernel startup code to define a memory address range
and generate the proper chip select signal.

Can someone point me to where that sort of thing is done in the kernel
source?

Ed

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Where to define IO ports
@ 2006-03-14  6:01 iseno
  2006-03-14 18:16 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: iseno @ 2006-03-14  6:01 UTC (permalink / raw)
  To: edjubenville, linuxppc-embedded

Hi Ed,

I think you should change the "u-boot".
 - include/configs/IceCube.h
 - board/icecube/icecube.h

1st, put a constant like (CFG_CS1_START, CFG_CS1_STOP, CFG_CS1_CFG) to
IceCube.h.
And then, write some code to configure registers like (MPC5XXX_CS0_START,
MPC5XXX_CS0_STOP, MPC5XXX_CS0_CFG).

After that, you will be able to use ioremap() in your driver.

>We have added a peripheral to the LocalPlus bus, and I'm trying to figure
Is this address kernel space?
If this is so, you have to change "TEXT_BASE" in u-boot's Makefile and etc.

    Akihiro Iseno

=================================
 Akihiro Iseno <iseno@tomen-ele.co.jp>
    TOMEN Electronics Corp.
      System Engineering Dept. II
=================================

-----Original Message-----
From: Edward Jubenville [mailto:edjubenville@adelphia.net] 
Sent: Tuesday, March 14, 2006 1:41 PM
To: linuxppc-embedded@ozlabs.org
Subject: Where to define IO ports

We are building a board similar to the Freescale Lite5200 (IceCube) board,
using ELDK 3.0 with Linux 2.4.25.

We have added a peripheral to the LocalPlus bus, and I'm trying to figure
out how to modify the kernel startup code to define a memory address range
and generate the proper chip select signal.

Can someone point me to where that sort of thing is done in the kernel
source?

Ed

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Where to define IO ports
  2006-03-14  6:01 Where to define IO ports iseno
@ 2006-03-14 18:16 ` Wolfgang Denk
  2006-03-14 19:29   ` Edward Jubenville
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2006-03-14 18:16 UTC (permalink / raw)
  To: iseno; +Cc: linuxppc-embedded

In message <D7E527950707D611B2A20003474C612A0BD92821@tmemail0.tomen-ele.co.jp> you wrote:
> 
> I think you should change the "u-boot".

NO. Linux stuff should be donme in Linux.

>  - include/configs/IceCube.h
>  - board/icecube/icecube.h
> 
> 1st, put a constant like (CFG_CS1_START, CFG_CS1_STOP, CFG_CS1_CFG) to
> IceCube.h.

NO again. If you port to your own board, you should create  your  own
board  configuration  instead  of  messing  with  an existing one for
another board.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Brontosaurus Principle: Organizations  can  grow  faster  than  their
brains  can manage them in relation to their environment and to their
own physiology: when this occurs, they are an endangered species.
                                                - Thomas K. Connellan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Where to define IO ports
  2006-03-14 18:16 ` Wolfgang Denk
@ 2006-03-14 19:29   ` Edward Jubenville
  0 siblings, 0 replies; 4+ messages in thread
From: Edward Jubenville @ 2006-03-14 19:29 UTC (permalink / raw)
  To: linuxppc-embedded

Wolfgang Denk had replied:

>> I think you should change the "u-boot".
>
>NO. Linux stuff should be done in Linux.
>
>>  - include/configs/IceCube.h
>>  - board/icecube/icecube.h
>> 
>> 1st, put a constant like (CFG_CS1_START, CFG_CS1_STOP, CFG_CS1_CFG) to
>> IceCube.h.
>
>NO again. If you port to your own board, you should create  your  own
>board  configuration  instead  of  messing  with  an existing one for
>another board.

Is there a HOWTO on the subject of "creating my own board configuration"?

Do I put hooks in "make menuconfig" to enable/disable my customizations? 

I'm new to the process of building kernels, and I have been using an
off-the-shelf development board that had a supported configuration, so
my only customizations have been turning on/off preconfigured options. 
Any guidance, or the name of a more appropriate list in which to
post the question would be appreciated.

Thanks,

Ed

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-14 19:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-14  6:01 Where to define IO ports iseno
2006-03-14 18:16 ` Wolfgang Denk
2006-03-14 19:29   ` Edward Jubenville
  -- strict thread matches above, loose matches on Subject: below --
2006-03-14  4:40 Edward Jubenville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox