From: David Jander <david.jander@protonic.nl>
To: linuxppc-embedded@ozlabs.org
Subject: [PATCH] Include support for physmap driver in mpc8xx setup...
Date: Thu, 3 Mar 2005 09:38:52 +0100 [thread overview]
Message-ID: <200503030938.52397.david.jander@protonic.nl> (raw)
Hi,
I'd like to hear comments about this.
I am working with a fairly recent denx kernel tree (linuxppc_2_4_devel) and=
=20
have noticed that apparently support for physmap MTD mapping driver is=20
missing. Since physmap.c version 1.29 on, flash start address, size and=20
buswidth have to be setup by the board support package, but mpc8xx uses a=20
centralized .c file (arch/ppc/m8xx_setup.c) and include-files from=20
arch/platforms/*, so there is no way of specifying flash geometry.
I suggest something like this to solve the problem. If there is a better pl=
ace=20
to put this, please let me know.
=2D------------------------ begin patch --------------------------
=2D--=A0arch/ppc/kernel/m8xx_setup.c.orig
+++=A0arch/ppc/kernel/m8xx_setup.c
@@=A0-35,6=A0+35,9=A0@@
=A0#include=A0<linux/ioport.h>
=A0#include=A0<linux/bootmem.h>
=A0#include=A0<linux/seq_file.h>
+#if=A0defined(CONFIG_MTD_PHYSMAP)=A0&&=A0defined(CONFIG_MTD)=20
+#include=A0<linux/mtd/physmap.h>=20
+#endif=20
=A0
=A0#include=A0<asm/mmu.h>
=A0#include=A0<asm/processor.h>
@@=A0-510,4=A0+513,8=A0@@
=A0#if=A0defined(CONFIG_IDE_8xx_PCCARD)=A0||=A0defined(CONFIG_IDE_8xx_DIREC=
T)
=A0=A0=A0=A0 m8xx_ide_init();
=A0#endif
+#if=A0defined(CONFIG_MTD_PHYSMAP)=A0&&=A0defined(CONFIG_MTD)=20
+ /*=A0we=A0use=A0generic=A0physmap=A0mapping=A0driver=A0and=A0we=A0use=A0p=
artitions=A0*/
+ physmap_configure(CONFIG_MTD_PHYSMAP_START,=A0CONFIG_MTD_PHYSMAP_LEN,=A0
CONFIG_MTD_PHYSMAP_BUSWIDTH,=A0NULL);
+#endif=20
=A0}
=2D------------------------- end patch -------------------------------
Greetings,
=2D-=20
David Jander
Protonic Holland.
reply other threads:[~2005-03-03 8:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200503030938.52397.david.jander@protonic.nl \
--to=david.jander@protonic.nl \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox