mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
[POWERPC] bootwrapper: Add PowerQUICC II (82xx with CPM) cuboot support
This allows booting on legacy, non-device-tree aware versions of U-boot. It also fixes up the hardware to match the PCI and chipselect information in the device tree, as u-boot is inconsistent in setting these up correctly (or at all). Signed-off-by: Scott Wood <scottwood@freescale.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
0b195812df
commit
e5d8d54db2
5 changed files with 298 additions and 4 deletions
|
@ -114,7 +114,7 @@ void __dt_fixup_mac_addresses(u32 startindex, ...)
|
|||
|
||||
#define MAX_ADDR_CELLS 4
|
||||
|
||||
static void get_reg_format(void *node, u32 *naddr, u32 *nsize)
|
||||
void dt_get_reg_format(void *node, u32 *naddr, u32 *nsize)
|
||||
{
|
||||
if (getprop(node, "#address-cells", naddr, 4) != 4)
|
||||
*naddr = 2;
|
||||
|
@ -224,7 +224,7 @@ static int dt_xlate(void *node, int res, int reglen, unsigned long *addr,
|
|||
if (!parent)
|
||||
return 0;
|
||||
|
||||
get_reg_format(parent, &naddr, &nsize);
|
||||
dt_get_reg_format(parent, &naddr, &nsize);
|
||||
|
||||
if (nsize > 2)
|
||||
return 0;
|
||||
|
@ -252,7 +252,7 @@ static int dt_xlate(void *node, int res, int reglen, unsigned long *addr,
|
|||
if (!parent)
|
||||
break;
|
||||
|
||||
get_reg_format(parent, &naddr, &nsize);
|
||||
dt_get_reg_format(parent, &naddr, &nsize);
|
||||
|
||||
buflen = getprop(node, "ranges", prop_buf,
|
||||
sizeof(prop_buf));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue