aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Merge changes from topic "av/console-port" into integrationPaul Beesley2019-06-2810-317/+2
|\ | | | | | | | | | | | | | | * 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
| * Remove MULTI_CONSOLE_API flag and references to itAmbroise Vincent2019-06-286-50/+0
| | | | | | | | | | | | | | The new API becomes the default one. Change-Id: Ic1d602da3dff4f4ebbcc158b885295c902a24fec Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
| * Console: removed legacy console APIAmbroise Vincent2019-06-266-267/+2
| | | | | | | | | | | | | | This interface has been deprecated in favour of MULTI_CONSOLE_API. Change-Id: I6170c1c8c74a890e5bd6d05396743fe62024a08a Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
* | Merge changes from topic "pull-out-drivers" into integrationPaul Beesley2019-06-261-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | * 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
| * | intel: Pull out common drivers into platform commonHadi Asyrafi2019-06-261-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com> Change-Id: Ib79e2c6fe6e66dec5004701133ad6a5f4c78f2fa
* | | rcar_gen3: drivers: pfc: E3: Replace REVERCED with REVERSEDMarek Vasut2019-06-251-4/+4
| | | | | | | | | | | | | | | | | | | | | Fix a typo, no functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Id6abb4c192729f55b3500505860c7f7718944c62
* | | rcar_gen3: drivers: pfc: Move PFC drivers out of stagingMarek Vasut2019-06-2218-75/+75
| | | | | | | | | | | | | | | | | | | | | 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
* | | rcar_gen3: drivers: pfc: Checkpatch cleanupMarek Vasut2019-06-221-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | rcar_gen3: drivers: pfc: V3M: Fix camel caseMarek Vasut2019-06-221-2/+2
| | | | | | | | | | | | | | | | | | | | | Replace function name with non-camel-case one. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ie93e7fccdc81a3ffa5c371d49846fcf6c840f145
* | | rcar_gen3: drivers: pfc: V3M: Drop forward declarationsMarek Vasut2019-06-221-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | rcar_gen3: drivers: pfc: V3M: Switch to BIT() macroMarek Vasut2019-06-221-419/+419
| | | | | | | | | | | | | | | | | | | | | Utilise existing BIT() macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I0f6c1cadf51cfe49322ec5408e6661287747e0ae
* | | rcar_gen3: drivers: pfc: V3M: Checkpatch cleanupMarek Vasut2019-06-221-440/+439
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | rcar_gen3: drivers: pfc: V3M: Switch to common register header fileMarek Vasut2019-06-221-147/+5
| | | | | | | | | | | | | | | | | | | | | Drop local copy of register macros and switch to common header. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I9d14180a7ae63a97d4bd1c87e717db71a852525e
* | | rcar_gen3: drivers: pfc: E3: Drop pfc_reg_write() forward declarationMarek Vasut2019-06-221-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | rcar_gen3: drivers: pfc: E3: Switch to BIT() macroMarek Vasut2019-06-221-158/+158
| | | | | | | | | | | | | | | | | | | | | Utilise existing BIT() macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ibf5f242cad70cdd51ca6415b1c7c56b35317ea52
* | | rcar_gen3: drivers: pfc: E3: Checkpatch cleanupMarek Vasut2019-06-221-250/+250
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | rcar_gen3: drivers: pfc: E3: Switch to common register header fileMarek Vasut2019-06-221-177/+7
| | | | | | | | | | | | | | | | | | | | | Drop local copy of register macros and switch to common header. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ic41a5a01e8d803e116bf02d66735ede6f47e343a
* | | rcar_gen3: drivers: pfc: D3: Switch to BIT() macroMarek Vasut2019-06-221-186/+186
| | | | | | | | | | | | | | | | | | | | | Utilise existing BIT() macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I1ff9fe8fb2f1644e4ee3b877ed5979cdf99d3d85
* | | rcar_gen3: drivers: pfc: D3: Drop unused macrosMarek Vasut2019-06-221-33/+0
| | | | | | | | | | | | | | | | | | | | | Remove unused and irrelevant macros. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Idcc34db77cb04db885ae5532689c83c0e8ddfd0b
* | | rcar_gen3: drivers: pfc: D3: Checkpatch cleanupMarek Vasut2019-06-221-555/+555
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | rcar_gen3: drivers: pfc: D3: Switch to common register header fileMarek Vasut2019-06-221-223/+2
| | | | | | | | | | | | | | | | | | | | | Drop local copy of register macros and switch to common header. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I26cd58706d7fc9fc92de280bfd77ae162924533d
* | | rcar_gen3: drivers: pfc: M3N: Drop forward declarationsMarek Vasut2019-06-221-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | rcar_gen3: drivers: pfc: M3N: Switch to BIT() macroMarek Vasut2019-06-221-186/+186
| | | | | | | | | | | | | | | | | | | | | Utilise existing BIT() macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I4cd541f6485a454bd32bd34a3c95d50fd183052f
* | | rcar_gen3: drivers: pfc: M3N: Checkpatch cleanupMarek Vasut2019-06-221-555/+555
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | rcar_gen3: drivers: pfc: M3N: Switch to common register header fileMarek Vasut2019-06-221-221/+2
| | | | | | | | | | | | | | | | | | | | | Drop local copy of register macros and switch to common header. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: If39ba51685ef0bb993010658d98be6981253dce0
* | | rcar_gen3: drivers: pfc: M3W: Fix camel caseMarek Vasut2019-06-221-2/+2
| | | | | | | | | | | | | | | | | | | | | Replace function name with non-camel-case one. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I98317def6640aebe559aa2edc4304029acf80505
* | | rcar_gen3: drivers: pfc: M3W: Drop forward declarationsMarek Vasut2019-06-221-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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: I936232205adbfc834fffdfa015ec5c5d4e3480ea
* | | rcar_gen3: drivers: pfc: M3W: Switch to BIT() macroMarek Vasut2019-06-221-187/+187
| | | | | | | | | | | | | | | | | | | | | Utilise existing BIT() macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Idea2afc11fb5dcfc39fb319b703ee8ee9dcc3ea6
* | | rcar_gen3: drivers: pfc: M3W: Checkpatch cleanupMarek Vasut2019-06-221-557/+557
| | | | | | | | | | | | | | | | | | | | | | | | 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: I6d48af4b1d56ef487744f4a58126140bbad28132
* | | rcar_gen3: drivers: pfc: M3W: Switch to common register header fileMarek Vasut2019-06-221-221/+2
| | | | | | | | | | | | | | | | | | | | | Drop local copy of register macros and switch to common header. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I8374340961d5465698183fdbc30143a70ebcbde4
* | | rcar_gen3: drivers: pfc: H3: Drop pfc_reg_write() forward declarationMarek Vasut2019-06-222-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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: I56125389fa6fe3ae169cacdb0e4b60376f0a6489
* | | rcar_gen3: drivers: pfc: H3: Switch to BIT() macroMarek Vasut2019-06-222-371/+372
| | | | | | | | | | | | | | | | | | | | | Utilise existing BIT() macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I339dbd8c8579dffc9bf454d34e3ba9f142a07fa7
* | | rcar_gen3: drivers: pfc: H3: Drop unused macrosMarek Vasut2019-06-201-12/+0
| | | | | | | | | | | | | | | | | | | | | Remove unused and irrelevant macros. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I0f251cd838f1d5879ccfd0738dc8ead355b3b74f
* | | rcar_gen3: drivers: pfc: H3: Checkpatch cleanupMarek Vasut2019-06-202-1095/+1095
| | | | | | | | | | | | | | | | | | | | | | | | 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: I31293e70a362f713261ac588f563c687449c5f6c
* | | rcar_gen3: drivers: pfc: H3: Switch to common register header fileMarek Vasut2019-06-202-444/+4
| | | | | | | | | | | | | | | | | | | | | Drop local copy of register macros and switch to common header. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I85d6855f329771f698d84348ce11ce31548512db
* | | rcar_gen3: drivers: pfc: Introduce common register header fileMarek Vasut2019-06-201-0/+231
| | | | | | | | | | | | | | | | | | | | | | | | Introduce header file which contains the shared registers and bits between the different SoCs. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I5f41d39347b9d57e3efdea24ae61a16d5c7efb80
* | | rcar_gen3: drivers: pfc: D3: Drop unused M3W checkMarek Vasut2019-06-201-23/+1
| |/ |/| | | | | | | | | | | | | Drop check for SoC being M3W ES1.0 , this check is clearly bogus, as this code can never be executed on M3W ES 1.0. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: If6087f1c217393dc65d20f6591eca40188563710
* | Merge changes from topic "yg/clk_syscfg_dt" into integrationJohn Tsichritzis2019-06-193-203/+191
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: fdts: stm32mp1: realign device tree files with internal devs stm32mp1: increase device tree size to 20kB stm32mp1: make dt_get_stdout_node_offset() static stm32mp1: use unsigned values for SDMMC defines stm32mp1: remove useless LIBFDT_SRCS from PLAT_BL_COMMON_SOURCES stm32mp1: update doc for U-Boot compilation stm32mp1: add general SYSCFG management stm32mp1: move stm32_get_gpio_bank_clock() to private file clk: stm32mp1: correctly handle Clock Spreading Generator clk: stm32mp1: use defines for mask values in stm32mp1_clk_sel array clk: stm32mp1: move oscillator functions to generic file arch: add some defines for generic timer registers
| * stm32mp1: add general SYSCFG managementYann Gautier2019-06-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The system configuration controller is mainly used to manage the compensation cell and other IOs and system related settings. The SYSCFG driver is in charge of configuring masters on the interconnect, IO compensation, low voltage boards, or pull-ups for boot pins. All other configurations should be handled in Linux drivers requiring it. Device tree files are also updated to manage vdd-supply regulator. Change-Id: I10fb513761a7d1f2b7afedca9c723ad9d1bccf42 Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com>
| * clk: stm32mp1: correctly handle Clock Spreading GeneratorYann Gautier2019-06-171-1/+8
| | | | | | | | | | | | | | | | | | | | To activate the CSG option, the driver needs to set the bit2 of PLLNCR register = SSCG_CTRL: Spread Spectrum Clock Generator. This bit should not be cleared when starting the PLL. Change-Id: Ie5c720ff03655f27a7e7e9e7ccf8295dd046112f Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com>
| * clk: stm32mp1: use defines for mask values in stm32mp1_clk_sel arrayYann Gautier2019-06-171-31/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework the macro that eases the table definition: the src and msk fields are now using MASK and SHIFT defines of each source register. Some macros had then to be modified: _USART1_SEL, _ASS_SEL and _MSS_SEL to _UART1_SEL, _AXIS_SEL, and _MCUS_SEL to match register fields. Note: the mask for RCC_ASSCKSELR_AXISSRC is changed from 0x3 to 0x7 to reflect the size of the register field, even if there are only 3 possible clock sources. The mask value is also corrected for QSPI and FMC clock selection. Change-Id: I44114e3c1dd37b9fa1be1ba519611abd9a07764c Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
| * clk: stm32mp1: move oscillator functions to generic fileYann Gautier2019-06-173-168/+150
| | | | | | | | | | | | | | | | | | | | | | | | Those functions are generic for parsing nodes from device tree hence could be located in generic source file. The oscillators description structure is also moved to STM32MP1 clock driver, as it is no more used in stm32mp1_clkfunc and cannot be in a generic file. Change-Id: I93ba74f4eea916440fef9b160d306af1b39f17c6 Signed-off-by: Yann Gautier <yann.gautier@st.com>
| * arch: add some defines for generic timer registersYann Gautier2019-06-171-3/+0
| | | | | | | | | | | | | | | | Those defines are used in STM32MP1 clock driver. It is better to put them altogether with already defined registers. Change-Id: I6f8ad8c2477b947af6f76283a4ef5c40212d0027 Signed-off-by: Yann Gautier <yann.gautier@st.com>
* | Merge changes If61ab215,I3e8b0251,I1757eee9,I81b48475,I46b445a7, ... into ↵John Tsichritzis2019-06-1771-3803/+2890
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | integration * changes: rcar_gen3: drivers: qos: Move QoS drivers out of staging rcar_gen3: drivers: qos: V3M: Configure DBSC QoS from a table rcar_gen3: drivers: qos: E3: Configure DBSC QoS from a table rcar_gen3: drivers: qos: D3: Configure DBSC QoS from a table rcar_gen3: drivers: qos: M3N: Configure DBSC QoS from a table rcar_gen3: drivers: qos: M3W: Configure DBSC QoS from a table rcar_gen3: drivers: qos: H3: Configure DBSC QoS from a table rcar_gen3: drivers: qos: Add function to configure DBSC QoS settings from a table rcar_gen3: drivers: qos: Fix checkpatch issues rcar_gen3: drivers: qos: V3M: Drop useless comments rcar_gen3: drivers: qos: V3M: Convert mstat table to uint64_t rcar_gen3: drivers: qos: V3M: Factor out mstat fix into separate file rcar_gen3: drivers: qos: V3M: Use common register definition rcar_gen3: drivers: qos: E3: Drop extra level of nesting rcar_gen3: drivers: qos: E3: Use common register definition rcar_gen3: drivers: qos: D3: Replace ad-hoc register addresses with macros rcar_gen3: drivers: qos: D3: Drop MD pin check rcar_gen3: drivers: qos: D3: Make DBSC settings local to dbsc_setting() rcar_gen3: drivers: qos: D3: Drop useless comments rcar_gen3: drivers: qos: D3: Convert mstat table to uint64_t rcar_gen3: drivers: qos: D3: Factor out mstat fix into separate file rcar_gen3: drivers: qos: D3: Use common register definition rcar_gen3: drivers: qos: M3N: Fix checkpatch issues rcar_gen3: drivers: qos: M3N: Drop MD pin check rcar_gen3: drivers: qos: M3N: Drop useless comments rcar_gen3: drivers: qos: M3N: Drop extra level of nesting rcar_gen3: drivers: qos: M3N: Use common register definition rcar_gen3: drivers: qos: M3W: Fix checkpatch issues rcar_gen3: drivers: qos: M3W: Drop MD pin check rcar_gen3: drivers: qos: M3W: Drop useless comments rcar_gen3: drivers: qos: M3W: Drop extra level of nesting rcar_gen3: drivers: qos: M3W: Convert mstat table to uint64_t rcar_gen3: drivers: qos: M3W: Factor out mstat fix into separate file rcar_gen3: drivers: qos: M3W: Use common register definition rcar_gen3: drivers: qos: H3: Fix checkpatch issues rcar_gen3: drivers: qos: H3: Drop MD pin check rcar_gen3: drivers: qos: H3: Drop useless comments rcar_gen3: drivers: qos: H3: Drop extra level of nesting rcar_gen3: drivers: qos: H3: Convert mstat table to uint64_t rcar_gen3: drivers: qos: H3: Factor out mstat fix into separate file rcar_gen3: drivers: qos: H3: Use common register definition rcar_gen3: console: Convert to multi-console API
| * | rcar_gen3: drivers: qos: Move QoS drivers out of stagingMarek Vasut2019-06-1761-106/+106
| | | | | | | | | | | | | | | | | | | | | Now that QoS drivers are cleaned up , move them out of staging. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: If61ab2157c30b8f5a6b91d2c56ddbb9098ef99e8
| * | rcar_gen3: drivers: qos: V3M: Configure DBSC QoS from a tableMarek Vasut2019-06-171-41/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | Convert the DBSC QoS setting function to a simple table of register-value pairs and pass it to common rcar_qos_dbsc_setting() to write those values to matching registers. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I3e8b0251099b57581ebdcfce5670bff5579dc505
| * | rcar_gen3: drivers: qos: E3: Configure DBSC QoS from a tableMarek Vasut2019-06-171-40/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | Convert the DBSC QoS setting function to a simple table of register-value pairs and pass it to common rcar_qos_dbsc_setting() to write those values to matching registers. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I1757eee9a209c368d0e8fba9809e56b8090ee43f
| * | rcar_gen3: drivers: qos: D3: Configure DBSC QoS from a tableMarek Vasut2019-06-171-40/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | Convert the DBSC QoS setting function to a simple table of register-value pairs and pass it to common rcar_qos_dbsc_setting() to write those values to matching registers. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I81b48475114fc293766a6d7f2b46f8e913a51b06
| * | rcar_gen3: drivers: qos: M3N: Configure DBSC QoS from a tableMarek Vasut2019-06-171-40/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | Convert the DBSC QoS setting function to a simple table of register-value pairs and pass it to common rcar_qos_dbsc_setting() to write those values to matching registers. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: I46b445a77b39412e7a41ae0e0e087a409d0c22e3
| * | rcar_gen3: drivers: qos: M3W: Configure DBSC QoS from a tableMarek Vasut2019-06-173-119/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | Convert the DBSC QoS setting function to a simple table of register-value pairs and pass it to common rcar_qos_dbsc_setting() to write those values to matching registers. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Change-Id: Ie2cbfdacf6d1c7eca4498ab7787b866a83660485