Thread (33 messages) 33 messages, 3 authors, 2013-08-07

Re: [3/4] powerpc/85xx: Add C293PCIE board support

From: Scott Wood <hidden>
Date: 2013-07-23 16:22:10

On 07/23/2013 02:47:18 AM, Liu Po-B43644 wrote:
quoted
 > +		partition@1900000 {
 > +			/* 7MB for User Area */
 > +			reg =3D <0x01900000 0x00700000>;
 > +			label =3D "NAND User area";
 > +		};

 Above you say there's 4 GiB of NAND, but here you define =20
partitions that
quoted
 only cover 32 MiB.
Can I set one partion include all other space(4GB- 32MB) with label =20
name "Others"?
Are you sure you don't want to leave more room for the RFS?  And what =20
is the difference between "user area" and "others"?
quoted
 > diff --git a/arch/powerpc/platforms/85xx/c293pcie.c
 > b/arch/powerpc/platforms/85xx/c293pcie.c
 > new file mode 100644
 > index 0000000..75dda12
 > --- /dev/null
 > +++ b/arch/powerpc/platforms/85xx/c293pcie.c
 > @@ -0,0 +1,82 @@
 > +/*
 > + * C293PCIE Board Setup
 > + *
 > + * Copyright 2013 Freescale Semiconductor Inc.
 > + *
 > + * This program is free software; you can redistribute  it =20
and/or
quoted
 > +modify it
 > + * under  the terms of  the GNU General  Public License as =20
published
quoted
 > +by the
 > + * Free Software Foundation;  either version 2 of the  License, =20
or
quoted
 > +(at your
 > + * option) any later version.
 > + */
 > +
 > +#include <linux/stddef.h>
 > +#include <linux/kernel.h>
 > +#include <linux/pci.h>
 > +#include <linux/delay.h>
 > +#include <linux/interrupt.h>
 > +#include <linux/of_platform.h>
 > +
 > +#include <asm/time.h>
 > +#include <asm/machdep.h>
 > +#include <asm/pci-bridge.h>
 > +#include <mm/mmu_decl.h>
 > +#include <asm/prom.h>
 > +#include <asm/udbg.h>
 > +#include <asm/mpic.h>
 > +
 > +#include <sysdev/fsl_soc.h>
 > +#include <sysdev/fsl_pci.h>
 > +
 > +#include "mpc85xx.h"

 Are you sure you need all of these?  I don't see any delays, for =20
example.
Thanks, I'll test and remove redundant includes.
Don't base it purely on testing -- you don't want to rely on =20
accidentally picking up a needed include from some other include (which =20
could change down the road).  Base it on whether this file uses =20
something declared by the header in question.

-Scott=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help