Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130362
b: refs/heads/master
c: e275e02
h: refs/heads/master
v: v3
  • Loading branch information
Sean MacLennan authored and Josh Boyer committed Jan 20, 2009
1 parent 35b7fa3 commit e39cffa
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 181 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94ce1c585ed51dd9e72e812117e11f3f236a5399
refs/heads/master: e275e023aa69bdc6a2f43b86ca3aa93a22e47837
43 changes: 0 additions & 43 deletions trunk/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
42 changes: 41 additions & 1 deletion trunk/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
1 change: 0 additions & 1 deletion trunk/arch/powerpc/platforms/44x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ obj-$(CONFIG_PPC44x_SIMPLE) += ppc44x_simple.o
obj-$(CONFIG_EBONY) += ebony.o
obj-$(CONFIG_SAM440EP) += sam440ep.o
obj-$(CONFIG_WARP) += warp.o
obj-$(CONFIG_WARP) += warp-nand.o
obj-$(CONFIG_XILINX_VIRTEX_5_FXT) += virtex.o
135 changes: 0 additions & 135 deletions trunk/arch/powerpc/platforms/44x/warp-nand.c

This file was deleted.

0 comments on commit e39cffa

Please sign in to comment.