summaryrefslogtreecommitdiff
path: root/arch/microblaze/kernel/heartbeat.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-09-28 06:04:14 (GMT)
committerMichal Simek <monstr@monstr.eu>2010-10-21 05:51:59 (GMT)
commit02b08045a0306c38131c6d7155c4034a775d40b1 (patch)
treee146f1811ec3c93ff4877a895e42b71a91932d2b /arch/microblaze/kernel/heartbeat.c
parente4f29092272ee91a34d3660c31f15ed103057aa0 (diff)
downloadlinux-02b08045a0306c38131c6d7155c4034a775d40b1.tar.xz
microblaze: Add support for little-endian Microblaze
Microblaze little-endian toolchain exports __MICROBLAZEEL__ which is used in the kernel to identify little/big endian. The most of the changes are in loading values from DTB which is always big endian. Little endian platforms are based on new AXI bus which has impact to early uartlite initialization. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/heartbeat.c')
-rw-r--r--arch/microblaze/kernel/heartbeat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/heartbeat.c b/arch/microblaze/kernel/heartbeat.c
index 5c24eb8..154756f 100644
--- a/arch/microblaze/kernel/heartbeat.c
+++ b/arch/microblaze/kernel/heartbeat.c
@@ -59,7 +59,7 @@ void setup_heartbeat(void)
}
if (gpio) {
- base_addr = *(int *) of_get_property(gpio, "reg", NULL);
+ base_addr = be32_to_cpup(of_get_property(gpio, "reg", NULL));
base_addr = (unsigned long) ioremap(base_addr, PAGE_SIZE);
printk(KERN_NOTICE "Heartbeat GPIO at 0x%x\n", base_addr);