]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/demo/demo-simple.c
sandbox: Add 64-bit sandbox
[people/ms/u-boot.git] / drivers / demo / demo-simple.c
index 2bcb7dfb479c4c123b3e2b875e4df4c680906290..d05b1dfd8712023f6bfc60a9cc741ca6145b49ea 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <dm-demo.h>
+#include <mapmem.h>
 #include <asm/io.h>
 
 static int simple_hello(struct udevice *dev, int ch)
 {
        const struct dm_demo_pdata *pdata = dev_get_platdata(dev);
 
-       printf("Hello from %08x: %s %d\n", map_to_sysmem(dev), pdata->colour,
+       printf("Hello from %08x: %s %d\n", (uint)map_to_sysmem(dev), pdata->colour,
               pdata->sides);
 
        return 0;