Sascha Hauer
a51d06d679
of: remove unused libfdt
...
Now that we are completely independent of libfdt remove the unused
code.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-03-06 11:41:29 +01:00
Sascha Hauer
9d8e08353c
of: fixup unflattened devicetree
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-03-06 11:41:29 +01:00
Sascha Hauer
b26b7ef0f0
of: Add root node argument to of_find_node_by_path
...
This makes of_find_node_by_path usable with multiple trees.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-03-06 11:41:28 +01:00
Sascha Hauer
8a185a4ff2
of: let of_unflatten_dtb return the unflattened tree
...
In order to be able to handle multiple devicetrees, do not assume
the tree to be unflattened is the barebox internal one. Instead,
just return a pointer to it and assign the barebox internal root_node
external to the unflatten function.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-03-06 11:41:27 +01:00
Jean-Christophe PLAGNIOL-VILLARD
07ca814239
highbank: add of fixup
...
depending on the power domain register we need to disable sata or mmc
and update the cpu informations
take from Calxeda U-Boot git
Register the original dtb to /dev/firmware-dtb and the fixed dtb to /dev/dtb
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-03-03 14:08:44 +01:00
Jean-Christophe PLAGNIOL-VILLARD
d8da8c23e9
highbank: use the provided dtb by the firmware to probe barebox device and mem size
...
the dtb is at 0x1000
if no dtb present use C code device
keep in C the timer/gpio/uart
have a nice tree
barebox 2013.02.0-00294-g6802ddf #124 Wed Feb 13 02:31:01 CST 2013
Board: Calxeda Highbank
memory: ram0: 0xff900000@0x0
highbank: dtb probed memory size
registered netconsole as cs1
malloc space: 0x03500000 -> 0x03efffff (size 10 MiB)
Open /dev/env0 No such file or directory
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
ahci ffe08000.sata: port 0: SATA link ok
ahci ffe08000.sata: port 0: Spinning up device...
ahci ffe08000.sata: port 0: ok.
ahci ffe08000.sata: registered /dev/ata0
eth0: got preset MAC address: 52:54:00:12:34:56
eth1: got preset MAC address: 52:54:00:12:34:57
Hit any key to stop autoboot: 3
[barebox@Calxeda Highbank]:/
# devinfo
devices:
`---- platform
`---- mem0
`---- 0x00000000-0x3fffffff: /dev/ram0
`---- 0x00001000-0x00010fff: /dev/dtb
`---- mem1
`---- 0x00000000-0x000051af: /dev/defaultenv
`---- mem2
`---- 0x00000000-0xfffffffe: /dev/mem
`---- cs1
`---- fff10600.timer
`---- fff10620.watchdog
`---- fff11000.interrupt-controller
`---- l2-cache
`---- ffe08000.sata
`---- 0x00000000-0x3fffffff: /dev/ata0
`---- 0x00100000-0x014fffff: /dev/ata0.0
`---- 0x01500000-0x3fffffff: /dev/ata0.1
`---- ffe0e000.sdhci
`---- fff00000.memory-controller
`---- mem3
`---- fff3c000.sregs
`---- fff3c200.sregs
`---- fff50000.ethernet
`---- eth0
`---- fff51000.ethernet
`---- eth1
`---- amba
`---- sp804
`---- uart-pl011
`---- cs0
`---- fff30000.gpio
`---- fff31000.gpio
`---- fff32000.gpio
`---- fff33000.gpio
`---- fff35000.rtc
`---- fs
`---- ramfs0
`---- devfs0
`---- net
`---- global
drivers:
uart-pl011
sp804
pl061_gpio
ramfs
devfs
tftp
hb-xgmac
ahci
mem
[barebox@Calxeda Highbank]:/
#
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-02-14 13:09:10 +01:00
Jean-Christophe PLAGNIOL-VILLARD
f6b23059c9
arm: add highbank support
...
currently only tested under qemu
qemu-system-arm -M highbank -nographic -m 4089 -kernel build/highbank/arch/arm/pbl/zbarebox -tftp "." -drive id=disk,if=ide,file=disk.img -device ide-drive,drive=disk,bus=ide.0
with:
- timer (AMBA SP804)
- uart (AMBA PL011)
- gpio (AMBA PL061)
- ahci
- net (XGMAC)
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-02-14 13:09:09 +01:00