diff options
author | Simon Glass <sjg@chromium.org> | 2014-11-24 21:36:34 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-12-11 13:18:41 -0700 |
commit | 115066666c251c2a481eeff7b700da14eba91d10 (patch) | |
tree | ab6e56d442459b3f44f7ecc03c72a306bd2ab3c9 /board/raspberrypi | |
parent | 59c73d7555a88bbe7b42a7153181fe4252e83c24 (diff) | |
download | u-boot-imx-115066666c251c2a481eeff7b700da14eba91d10.zip u-boot-imx-115066666c251c2a481eeff7b700da14eba91d10.tar.gz u-boot-imx-115066666c251c2a481eeff7b700da14eba91d10.tar.bz2 |
dm: rpi: Move serial to driver model
Adjust the configuration to use the driver model version of the pl01x
serial driver. Add the required platform data.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'board/raspberrypi')
-rw-r--r-- | board/raspberrypi/rpi/rpi.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 51a4fa1..7dbd40e 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -24,6 +24,7 @@ #include <asm/arch/mbox.h> #include <asm/arch/sdhci.h> #include <asm/global_data.h> +#include <dm/platform_data/serial_pl01x.h> DECLARE_GLOBAL_DATA_PTR; @@ -36,6 +37,17 @@ U_BOOT_DEVICE(bcm2835_gpios) = { .platdata = &gpio_platdata, }; +static const struct pl01x_serial_platdata serial_platdata = { + .base = 0x20201000, + .type = TYPE_PL011, + .clock = 3000000, +}; + +U_BOOT_DEVICE(bcm2835_serials) = { + .name = "serial_pl01x", + .platdata = &serial_platdata, +}; + struct msg_get_arm_mem { struct bcm2835_mbox_hdr hdr; struct bcm2835_mbox_tag_get_arm_mem get_arm_mem; |