problem backporting talitos for MPC8272
Alexandru Ionut Grama
gramaalexandruionut at gmail.com
Wed Jan 5 08:42:49 EST 2011
You're right Scott, there's no section in arch/powerpc/boot/Makefile
involving dts file for mpc8272ads.
Well some time ago I've already write an email explaining that I've try to
port a custom board patch from 2.6.21 to 2.6.35. I can't make the changes
properly in 2.6.35, so that's why I've decided to backport cryptoAPI and
talitos to 2.6.21.
Because it's custom, the CPM_MAP_ADDR it's change from 0xF0000000 to
0xFF000000. ¿Changing this in mpc8272ads.dts
soc8272 at f0000000 {
#address-cells = <1>;
#size-cells = <1>;
#interrupt-cells = <2>;
device_type = "soc";
ranges = <00000000 f0000000 00053000>;
reg = <f0000000 10000>;
cpm at f0000000 {
linux,phandle = <f0000000>;
#address-cells = <1>;
#size-cells = <1>;
#interrupt-cells = <2>;
device_type = "cpm";
model = "CPM2";
ranges = <00000000 00000000 20000>;
reg = <0 20000>;
command-proc = <119c0>;
brg-frequency = <17D7840>;
cpm_clk = <BEBC200>;
to this
soc8272 at ff000000 {
#address-cells = <1>;
#size-cells = <1>;
#interrupt-cells = <2>;
device_type = "soc";
ranges = <00000000 ff000000 00053000>;
reg = <ff000000 10000>;
cpm at ff000000 {
linux,phandle = <ff000000>;
#address-cells = <1>;
#size-cells = <1>;
#interrupt-cells = <2>;
device_type = "cpm";
model = "CPM2";
ranges = <00000000 00000000 20000>;
reg = <0 20000>;
command-proc = <119c0>;
brg-frequency = <17D7840>;
cpm_clk = <BEBC200>;
should solve this issue?
Also there is change in arch/powerpc/platforms/82xx/mpc82xx_ads.c
+ static void __init m82xx_map_io(void) /* gonza */
+ {
+ io_block_mapping(CPM_MAP_ADDR, CPM_MAP_ADDR, ((uint)(4 * 64 * 1024)),
_PAGE_IO);
+ }
+
+
define_machine(mpc82xx_ads)
{
.name = "MPC82xx ADS",
***************
*** 642,645 ****
--- 648,652 ----
.get_irq = cpm2_get_irq,
.calibrate_decr = m82xx_calibrate_decr,
.restart = m82xx_restart,.halt = m82xx_halt,
+ .setup_io_mappings = m82xx_map_io, /* gonza */
};
Redefining the address of CPM in the dts file, the kernel "io_block_map"
properly that address without no more code?
Thank you very much.
Alexandru.
2011/1/3 Scott Wood <scottwood at freescale.com>
> On Wed, 29 Dec 2010 02:10:55 +0100
> Alexandru Ionut Grama <gramaalexandruionut at gmail.com> wrote:
>
> > My final question it's about of-tree. I have the mpc8272ads.dts file with
> a
> > tree that involves talitos, but I've changed the properties acording the
> new
> > version of it on 2.6.35. ¿This file (mpc8272ads.dts) when it's used?I
> think
> > I don't use this file for nothing (it doesn't appears on make V=1)
> because I
> > don't have a normal bootloader and I have to load the kernel like a
> > flat-binary gz, so there's no more step after building System.map.
>
> IIRC, in 2.6.21, it wasn't used on 82xx (I think there was only
> arch/ppc support for 82xx, or at best 82xx arch/powerpc support was
> just getting started). 2.6.21 is very old, and doing new development on
> it is not recommended.
>
> Why not work with the current kernel?
>
> -Scott
>
>
--
*---------------------------------------------------------------
Alexandru Ionut Grama
**email: gramaalexandruionut at gmail.com**
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20110104/bff57b54/attachment-0001.html>
More information about the Linuxppc-dev
mailing list