diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-02-20 17:41:11 +0000 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-02-23 15:58:35 +0000 |
commit | d8e4d45658415ad2c734e14582f633c3df2b495b (patch) | |
tree | 4896a4a0b8c04fc5a78a31b17ac8fab5c9071e66 /Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c | |
parent | 6aa7daf85f46fab7fef1a27aafe9c98f1125a587 (diff) | |
download | edk2-platforms-d8e4d45658415ad2c734e14582f633c3df2b495b.tar.xz |
Platform/Socionext/DeveloperBox: add 96Boards mezzanine support
Wire up the various drivers for the 96Boards LS connector and the
optional Secure96 mezzanine board.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c')
-rw-r--r-- | Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c b/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c index aab830dc3a..8787aa6288 100644 --- a/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c +++ b/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c @@ -313,6 +313,15 @@ PlatformDxeEntryPoint ( &Handle);
ASSERT_EFI_ERROR (Status);
+ //
+ // Install the g96BoardsI2c0MasterGuid GUID onto the same handle,
+ // identifying I2C #1 on our SoC as I2C #0 on the 96boards low speed connector
+ //
+ Status = gBS->InstallProtocolInterface (&Handle,
+ &g96BoardsI2c0MasterGuid,
+ EFI_NATIVE_INTERFACE, NULL);
+ ASSERT_EFI_ERROR (Status);
+
SmmuEnableCoherentDma ();
SetMmioTimerFrequency ();
|