summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2019-07-25cryptocell: add product version awareness supportGilad Ben-Yossef
Add support for multiple Cryptocell revisions which use different APIs. This commit only refactors the existing code in preperation to the addition of another Cryptocell revisions later on. Signed-off-by: Gilad Ben-Yossef <gilad.benyossef@arm.com> Change-Id: I16d80b31afb6edd56dc645fee5ea619cc74f09b6
2019-07-25cryptocell: move Cryptocell specific API into driverGilad Ben-Yossef
Code using Cryptocell specific APIs was used as part of the arm common board ROT support, instead of being abstracted in Cryptocell specific driver code, creating two problems: - Any none arm board that uses Cryptocell wuld need to copy and paste the same code. - Inability to cleanly support multiple versions of Cryptocell API and products. Move over Cryptocell specific API calls into the Cryptocell driver, creating abstraction API where needed. Signed-off-by: Gilad Ben-Yossef <gilad.benyossef@arm.com> Change-Id: I9e03ddce90fcc47cfdc747098bece86dbd11c58e
2019-07-17Merge "console: update skeleton" into integrationSoby Mathew
2019-07-17Merge changes I68941876,Ib7961812,I758661d3,I4f3e3812,I9b26b838, ... into ↵Soby Mathew
integration * changes: rcar_gen3: drivers: ddr-a: Fix E3 DDR init coding style rcar_gen3: drivers: ddr-a: Pass ddrBackup around rcar_gen3: drivers: ddr-a: Inline ddr_init_e3.h rcar_gen3: drivers: ddr-a: Fix V3M DDR init coding style rcar_gen3: drivers: ddr-a: Fix D3 DDR init coding style rcar_gen3: drivers: ddr-a: Replace {Read,Write}Reg_32() with mmio_{read,write}_32() rcar_gen3: drivers: ddr-a: Unify register definitions
2019-07-17Merge "rcar_gen3: drivers: ddr: Replace BITn with BIT(n) macro" into integrationSoby Mathew
2019-07-16console: update skeletonAmbroise Vincent
Update the skeleton implementation of the console interface. The 32 bit version was outdated and has been copied from the 64 bit version. Change-Id: Ib3e4eb09402ffccb1a30c703a53829a7bf064dfe Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
2019-07-16Merge changes from topic "jc/shift-overflow" into integrationSoby Mathew
* changes: Enable -Wshift-overflow=2 to check for undefined shift behavior Update base code to not rely on undefined overflow behaviour Update hisilicon drivers to not rely on undefined overflow behaviour Update synopsys drivers to not rely on undefined overflow behaviour Update imx platform to not rely on undefined overflow behaviour Update mediatek platform to not rely on undefined overflow behaviour Update layerscape platform to not rely on undefined overflow behaviour Update intel platform to not rely on undefined overflow behaviour Update rockchip platform to not rely on undefined overflow behaviour Update renesas platform to not rely on undefined overflow behaviour Update meson platform to not rely on undefined overflow behaviour Update marvell platform to not rely on undefined overflow behaviour
2019-07-15rcar_gen3: drivers: ddr-a: Fix E3 DDR init coding styleMarek Vasut
Coding style cleanup, no functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I689418768e87a8c1b6eeeb9f1a48dfb333908017
2019-07-14rcar_gen3: drivers: ddr-a: Pass ddrBackup aroundMarek Vasut
Pass the ddrBackup variable around instead of making it a global variable. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ib796181247712e464b77f5f8be5f851745727d74 --- NOTE: The camelcase is fixed in later patch.
2019-07-14rcar_gen3: drivers: ddr-a: Inline ddr_init_e3.hMarek Vasut
Partly inline ddr_init_e3.h into ddr_init_e3.c . Drop duplicate INITDRAM_* macros, which are defined in boot_init_dram.h . Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I758661d337a86b6a07f82cd4067fbc149cbaed1e
2019-07-14rcar_gen3: drivers: ddr-a: Fix V3M DDR init coding styleMarek Vasut
Coding style cleanup, no functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I4f3e3812ffaa24fec50857756539b563eff33cdd
2019-07-14rcar_gen3: drivers: ddr-a: Fix D3 DDR init coding styleMarek Vasut
Coding style cleanup, no functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I9b26b838e8c45d9b4f53c67663ec94002dd9edfe
2019-07-14rcar_gen3: drivers: ddr-a: Replace {Read,Write}Reg_32() with ↵Marek Vasut
mmio_{read,write}_32() Replace ad-hoc register accessors with generic ones, remove the ad-hoc implementation. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I21446a00a38c6a39d6a48652c34f59814074e831
2019-07-14rcar_gen3: drivers: ddr-a: Unify register definitionsMarek Vasut
Unify boot_init_dram_regdef_*.h into boot_init_dram_regdef.h and clean up it's coding style a bit. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Iae3375969c05f80209ebf7b1ebc3633a7f6317ff
2019-07-14rcar_gen3: drivers: ddr: Replace BITn with BIT(n) macroMarek Vasut
Remove the ad-hoc BITn macros and replace them with generic BIT(n) macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I5d0b44d6cba5a69895fed505f6ff780d3574907f
2019-07-12rcar_gen3: drivers: rpc: Modify PFC codeToshiyuki Ogasahara
Modify PFC code and rename macro of MFIS according to Errata of Hardware User's Manual Signed-off-by: Toshiyuki Ogasahara <toshiyuki.ogasahara.bo@hitachi.com> Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I0ece522647319286350843bbbe8b8ba8b0ae9bac
2019-07-12rcar_gen3: drivers: rpc: Change RPC PHY calibration settingToshiyuki Ogasahara
Modify RPC code according to Errata of Hardware User's Manual Signed-off-by: Toshiyuki Ogasahara <toshiyuki.ogasahara.bo@hitachi.com> Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I82d0a2136c7f18870842f84c49343977708eef1e
2019-07-12rcar_gen3: drivers: ddr-b: Update DDR setting for H3, M3, M3NChiaki Fujii
[IPL/DDR] - Update H3, M3, M3N DDR setting rev.0.36. Signed-off-by: Chiaki Fujii <chiaki.fujii.wj@renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ia4fc9456876a14a9cf3ced93163477974f6cc8bf
2019-07-12Update synopsys drivers to not rely on undefined overflow behaviourJustin Chadwell
This consists of ensuring that the left operand of each shift is unsigned when the operation might overflow into the sign bit. Change-Id: I54560fe290e7dc52d364d0fe1c81a16f4c8d9a7b Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
2019-07-12rcar_gen3: drivers: ddr-a: Update E3 DDR settingHiroyuki Nakano
[IPL/DDR] - Update E3 DDR setting rev.0.12. Signed-off-by: Hiroyuki Nakano <hiroyuki.nakano.cj@renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ic9fb7ed1cd7588fab169a99c4070a8dfc40038dc
2019-07-11Update renesas platform to not rely on undefined overflow behaviourJustin Chadwell
This consists of ensuring that the left operand of each shift is unsigned when the operation might overflow into the sign bit. Change-Id: I51278beacbe6da79853c3f0f0f94cd806fc9652c Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
2019-07-11Update meson platform to not rely on undefined overflow behaviourJustin Chadwell
This consists of ensuring that the left operand of each shift is unsigned when the operation might overflow into the sign bit. Change-Id: Ib7ec8ed3423e9b9b32be2388520bc27ee28f6370 Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
2019-07-11Update marvell platform to not rely on undefined overflow behaviourJustin Chadwell
This consists of ensuring that the left operand of each shift is unsigned when the operation might overflow into the sign bit. Change-Id: I78f386f5ac171d6e52383a3e42003e6fb3e96b57 Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
2019-07-11driver: synopsys: emmc: Do not change FIFO TH as this breaks some platformsTien Hock, Loh
Designware MMC DMA FIFO threshold shouldn't be changed as it broke Poplar platform's uboot MMC Signed-off-by: Tien Hock, Loh <tien.hock.loh@intel.com> Change-Id: I87ec9d5a78e1bf45119cb73797e402b25a914c13
2019-06-28Merge changes from topic "av/console-port" into integrationPaul Beesley
* changes: qemu: use new console interface in aarch32 warp7: remove old console from makefile Remove MULTI_CONSOLE_API flag and references to it Console: removed legacy console API
2019-06-28Remove MULTI_CONSOLE_API flag and references to itAmbroise Vincent
The new API becomes the default one. Change-Id: Ic1d602da3dff4f4ebbcc158b885295c902a24fec Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
2019-06-26Merge changes from topic "pull-out-drivers" into integrationPaul Beesley
* changes: intel: Add ncore ccu driver intel: Fix watchdog driver structure intel: Fix qspi driver write config intel: Pull out common drivers into platform common
2019-06-26intel: Pull out common drivers into platform commonHadi Asyrafi
Signed-off-by: Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com> Change-Id: Ib79e2c6fe6e66dec5004701133ad6a5f4c78f2fa
2019-06-26Console: removed legacy console APIAmbroise Vincent
This interface has been deprecated in favour of MULTI_CONSOLE_API. Change-Id: I6170c1c8c74a890e5bd6d05396743fe62024a08a Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
2019-06-25rcar_gen3: drivers: pfc: E3: Replace REVERCED with REVERSEDMarek Vasut
Fix a typo, no functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Id6abb4c192729f55b3500505860c7f7718944c62
2019-06-22rcar_gen3: drivers: pfc: Move PFC drivers out of stagingMarek Vasut
Now that PFC drivers are cleaned up , move them out of staging. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ie594b53558c2bfb8e5d88e5b0354752c17a2487e
2019-06-22rcar_gen3: drivers: pfc: Checkpatch cleanupMarek Vasut
Checkpatch cleanups of the PFC common init code macros. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ifa444dd506387dba92b550729e56598198faeb49
2019-06-22rcar_gen3: drivers: pfc: V3M: Fix camel caseMarek Vasut
Replace function name with non-camel-case one. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ie93e7fccdc81a3ffa5c371d49846fcf6c840f145
2019-06-22rcar_gen3: drivers: pfc: V3M: Drop forward declarationsMarek Vasut
There's no point in having forward declaration just before the function itself, drop it. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I302cff2014bb6e513b6fb48fcf6df7ade684039e
2019-06-22rcar_gen3: drivers: pfc: V3M: Switch to BIT() macroMarek Vasut
Utilise existing BIT() macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I0f6c1cadf51cfe49322ec5408e6661287747e0ae
2019-06-22rcar_gen3: drivers: pfc: V3M: Checkpatch cleanupMarek Vasut
Checkpatch cleanups of the PFC init code and remaining SoC specific macros. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I3a9527db01afa909f61efd9556cc291e254a5e33
2019-06-22rcar_gen3: drivers: pfc: V3M: Switch to common register header fileMarek Vasut
Drop local copy of register macros and switch to common header. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I9d14180a7ae63a97d4bd1c87e717db71a852525e
2019-06-22rcar_gen3: drivers: pfc: E3: Drop pfc_reg_write() forward declarationMarek Vasut
There's no point in having forward declaration just before the function itself, drop it. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I3cf5bbc388431144c8bbc53ae9f9338276674eee
2019-06-22rcar_gen3: drivers: pfc: E3: Switch to BIT() macroMarek Vasut
Utilise existing BIT() macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ibf5f242cad70cdd51ca6415b1c7c56b35317ea52
2019-06-22rcar_gen3: drivers: pfc: E3: Checkpatch cleanupMarek Vasut
Checkpatch cleanups of the PFC init code and remaining SoC specific macros. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I6b026f5b333ee8008510604b9f51a0aa8e60b6fc
2019-06-22rcar_gen3: drivers: pfc: E3: Switch to common register header fileMarek Vasut
Drop local copy of register macros and switch to common header. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ic41a5a01e8d803e116bf02d66735ede6f47e343a
2019-06-22rcar_gen3: drivers: pfc: D3: Switch to BIT() macroMarek Vasut
Utilise existing BIT() macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I1ff9fe8fb2f1644e4ee3b877ed5979cdf99d3d85
2019-06-22rcar_gen3: drivers: pfc: D3: Drop unused macrosMarek Vasut
Remove unused and irrelevant macros. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Idcc34db77cb04db885ae5532689c83c0e8ddfd0b
2019-06-22rcar_gen3: drivers: pfc: D3: Checkpatch cleanupMarek Vasut
Checkpatch cleanups of the PFC init code and remaining SoC specific macros. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I5bbb585c3762374bb713d4b9fe25495658d89e65
2019-06-22rcar_gen3: drivers: pfc: D3: Switch to common register header fileMarek Vasut
Drop local copy of register macros and switch to common header. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I26cd58706d7fc9fc92de280bfd77ae162924533d
2019-06-22rcar_gen3: drivers: pfc: M3N: Drop forward declarationsMarek Vasut
There's no point in having forward declaration just before the function itself, drop it. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I374c4e90729cd13aa4c5878bb3d0917071fa19f1
2019-06-22rcar_gen3: drivers: pfc: M3N: Switch to BIT() macroMarek Vasut
Utilise existing BIT() macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I4cd541f6485a454bd32bd34a3c95d50fd183052f
2019-06-22rcar_gen3: drivers: pfc: M3N: Checkpatch cleanupMarek Vasut
Checkpatch cleanups of the PFC init code and remaining SoC specific macros. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Iea1f0625ecc461168342e591e30947b543501bac
2019-06-22rcar_gen3: drivers: pfc: M3N: Switch to common register header fileMarek Vasut
Drop local copy of register macros and switch to common header. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: If39ba51685ef0bb993010658d98be6981253dce0
2019-06-22rcar_gen3: drivers: pfc: M3W: Fix camel caseMarek Vasut
Replace function name with non-camel-case one. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I98317def6640aebe559aa2edc4304029acf80505