Skip to content

Commit

Permalink
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git…
Browse files Browse the repository at this point in the history
…/benh/powerpc

* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
  powerpc/mm: Fix handling of _PAGE_COHERENT in BAT setup code
  powerpc/pseries: Correct VIO bus accounting problem in CMO env.
  powerpc: More printing warning fixes for the l64 to ll64 conversion
  powerpc: Remove arch/ppc cruft from Kconfig
  powerpc: Printing fix for l64 to ll64 conversion: phyp_dump.c
  powerpc/embedded6xx: Update defconfigs
  powerpc/8xx: Update defconfigs
  powerpc/86xx: Update defconfigs
  powerpc/83xx: Update defconfigs
  powerpc/85xx: Update defconfigs
  powerpc/mpc8313erdb: fix kernel panic because mdio device is not probed
  powerpc/4xx: Update multi-board PowerPC 4xx defconfigs
  powerpc/44x: Update PowerPC 44x defconfigs
  powerpc/40x: Update PowerPC 40x defconfigs
  powerpc/85xx: Fix typo in mpc8572ds dts
  powerpc/44x: Warp patches for the new NDFC driver
  powerpc/4xx: DTS: Add Add'l SDRAM0 Compatible and Interrupt Info
  • Loading branch information
Linus Torvalds committed Jan 28, 2009
2 parents 78a768b + 4c456a6 commit c4568d6
Show file tree
Hide file tree
Showing 87 changed files with 4,353 additions and 1,930 deletions.
4 changes: 0 additions & 4 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -876,10 +876,6 @@ source "drivers/Kconfig"

source "fs/Kconfig"

# XXX source "arch/ppc/8xx_io/Kconfig"

# XXX source "arch/ppc/8260_io/Kconfig"

source "arch/powerpc/sysdev/qe_lib/Kconfig"

source "lib/Kconfig"
Expand Down
43 changes: 0 additions & 43 deletions arch/powerpc/boot/cuboot-warp.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,57 +18,14 @@

static bd_t bd;

static void warp_fixup_one_nor(u32 from, u32 to)
{
void *devp;
char name[50];
u32 v[2];

sprintf(name, "/plb/opb/ebc/nor_flash@0,0/partition@%x", from);

devp = finddevice(name);
if (!devp)
return;

if (getprop(devp, "reg", v, sizeof(v)) == sizeof(v)) {
v[0] = to;
setprop(devp, "reg", v, sizeof(v));

printf("NOR 64M fixup %x -> %x\r\n", from, to);
}
}


static void warp_fixups(void)
{
ibm440ep_fixup_clocks(66000000, 11059200, 50000000);
ibm4xx_sdram_fixup_memsize();
ibm4xx_fixup_ebc_ranges("/plb/opb/ebc");
dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);

/* Fixup for 64M flash on Rev A boards. */
if (bd.bi_flashsize == 0x4000000) {
void *devp;
u32 v[3];

devp = finddevice("/plb/opb/ebc/nor_flash@0,0");
if (!devp)
return;

/* Fixup the size */
if (getprop(devp, "reg", v, sizeof(v)) == sizeof(v)) {
v[2] = bd.bi_flashsize;
setprop(devp, "reg", v, sizeof(v));
}

/* Fixup parition offsets */
warp_fixup_one_nor(0x300000, 0x3f00000);
warp_fixup_one_nor(0x340000, 0x3f40000);
warp_fixup_one_nor(0x380000, 0x3f80000);
}
}


void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
unsigned long r6, unsigned long r7)
{
Expand Down
5 changes: 4 additions & 1 deletion arch/powerpc/boot/dts/haleakala.dts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@
clock-frequency = <0>; /* Filled in by U-Boot */

SDRAM0: memory-controller {
compatible = "ibm,sdram-405exr";
compatible = "ibm,sdram-405exr", "ibm,sdram-4xx-ddr2";
dcr-reg = <0x010 0x002>;
interrupt-parent = <&UIC2>;
interrupts = <0x5 0x4 /* ECC DED Error */
0x6 0x4>; /* ECC SEC Error */
};

MAL0: mcmal {
Expand Down
5 changes: 4 additions & 1 deletion arch/powerpc/boot/dts/kilauea.dts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@
clock-frequency = <0>; /* Filled in by U-Boot */

SDRAM0: memory-controller {
compatible = "ibm,sdram-405ex";
compatible = "ibm,sdram-405ex", "ibm,sdram-4xx-ddr2";
dcr-reg = <0x010 0x002>;
interrupt-parent = <&UIC2>;
interrupts = <0x5 0x4 /* ECC DED Error */
0x6 0x4>; /* ECC SEC Error */
};

MAL0: mcmal {
Expand Down
5 changes: 4 additions & 1 deletion arch/powerpc/boot/dts/makalu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@
clock-frequency = <0>; /* Filled in by U-Boot */

SDRAM0: memory-controller {
compatible = "ibm,sdram-405ex";
compatible = "ibm,sdram-405ex", "ibm,sdram-4xx-ddr2";
dcr-reg = <0x010 0x002>;
interrupt-parent = <&UIC2>;
interrupts = <0x5 0x4 /* ECC DED Error */
0x6 0x4 /* ECC SEC Error */ >;
};

MAL0: mcmal {
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/mpc8313erdb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
cell-index = <0>;
device_type = "network";
model = "eTSEC";
compatible = "gianfar", "simple-bus";
compatible = "gianfar";
reg = <0x24000 0x1000>;
local-mac-address = [ 00 00 00 00 00 00 ];
interrupts = <37 0x8 36 0x8 35 0x8>;
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/mpc8572ds.dts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

ramdisk@0 {
reg = <0x0 0x03000000>;
readl-only;
read-only;
};

diagnostic@3000000 {
Expand Down
42 changes: 41 additions & 1 deletion arch/powerpc/boot/dts/warp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,17 @@
reg = <0x00000002 0x00004000 0x00000A00>;
};

nor_flash@0,0 {
nor@0,0 {
compatible = "amd,s29gl032a", "cfi-flash";
bank-width = <2>;
reg = <0x00000000 0x00000000 0x00400000>;
#address-cells = <1>;
#size-cells = <1>;

partition@0 {
label = "splash";
reg = <0x00000000 0x00020000>;
};
partition@300000 {
label = "fpga";
reg = <0x0300000 0x00040000>;
Expand All @@ -168,6 +173,41 @@
reg = <0x0380000 0x00080000>;
};
};

ndfc@1,0 {
compatible = "ibm,ndfc";
reg = <0x00000001 0x00000000 0x00002000>;
ccr = <0x00001000>;
bank-settings = <0x80002222>;
#address-cells = <1>;
#size-cells = <1>;

nand {
#address-cells = <1>;
#size-cells = <1>;

partition@0 {
label = "kernel";
reg = <0x00000000 0x00200000>;
};
partition@200000 {
label = "root";
reg = <0x00200000 0x03E00000>;
};
partition@40000000 {
label = "persistent";
reg = <0x04000000 0x04000000>;
};
partition@80000000 {
label = "persistent1";
reg = <0x08000000 0x04000000>;
};
partition@C0000000 {
label = "persistent2";
reg = <0x0C000000 0x04000000>;
};
};
};
};

UART0: serial@ef600300 {
Expand Down
Loading

0 comments on commit c4568d6

Please sign in to comment.