| ca031dff | 28-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: drivers: pwrc: Switch to common delay implementation
Replace the ad-hoc implementation of delay in PWRC driver with common R-Car delay code.
Signed-off-by: Marek Vasut <marek.vasut+renes
rcar_gen3: drivers: pwrc: Switch to common delay implementation
Replace the ad-hoc implementation of delay in PWRC driver with common R-Car delay code.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| c97c5b5e | 26-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: drivers: delay: Rewrite from assembler to C
Rewrite the delay code from assembler to C.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> |
| 47141b73 | 28-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Add generic timer init
Add code to determine the platform timer frequency and configure the generic timer accordingly early in BL2.
Signed-off-by: Marek Vasut <marek.vasut+renesas@
rcar_gen3: plat: Add generic timer init
Add code to determine the platform timer frequency and configure the generic timer accordingly early in BL2.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| bd57db53 | 28-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: drivers: cpld: Move rcar_cpld_reset_cpu() into header
Move the rcar_cpld_reset_cpu() function into header file and zap the externs.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.
rcar_gen3: drivers: cpld: Move rcar_cpld_reset_cpu() into header
Move the rcar_cpld_reset_cpu() function into header file and zap the externs.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| c6ae55cc | 28-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Dump EL3 interrupt error registers
Since the interrupts are handled in EL3, dump the EL3 error registers in case an error happens.
Signed-off-by: Marek Vasut <marek.vasut+renesas@g
rcar_gen3: plat: Dump EL3 interrupt error registers
Since the interrupts are handled in EL3, dump the EL3 error registers in case an error happens.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| d48536e2 | 31-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Enable programmable CPU reset address
The reset address is programmable on the R-Car Gen3, enable it.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> |
| 32385427 | 31-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Disable IPMMU PV0 cache on E3
Disable the IPMMU PV0 cache on E3 rev. 1.x .
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> |
| 71430ed4 | 28-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Add E3 rev. 1.1 support
Add support for R-Car E3 silicon rev. 1.1
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> |
| 0468aa39 | 28-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Add missing platform auto-detection name
Add missing TARGET_NAME for the case where RCAR_LSI is set to AUTO, which is platform auto-detection.
Signed-off-by: Marek Vasut <marek.vas
rcar_gen3: plat: Add missing platform auto-detection name
Add missing TARGET_NAME for the case where RCAR_LSI is set to AUTO, which is platform auto-detection.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| b51a773e | 31-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Clean up rcar_pwrc_code_copy_to_system_ram()
Call the function only from architecture setup and at the end of suspend cycle instead of calling it all over the place.
Signed-off-by:
rcar_gen3: plat: Clean up rcar_pwrc_code_copy_to_system_ram()
Call the function only from architecture setup and at the end of suspend cycle instead of calling it all over the place.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| bc5fabd8 | 26-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Fix BL2 size check
Rename BL2_LIMIT to BL2_IMAGE_LIMIT and BL2_SYSRAM_LIMIT to BL2_LIMIT to correctly set BL2_LIMIT value. Set correct DEVICE_SRAM_BASE to match the hardware. Use BL
rcar_gen3: plat: Fix BL2 size check
Rename BL2_LIMIT to BL2_IMAGE_LIMIT and BL2_SYSRAM_LIMIT to BL2_LIMIT to correctly set BL2_LIMIT value. Set correct DEVICE_SRAM_BASE to match the hardware. Use BL2_END in rcar_configure_mmu_el3() to mark the cacheable BL2 area.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| fc181c3b | 30-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Staticize memory maps
Staticize the platform memory map tables as they are only used within the platform_common.c file.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> |
| db9a1555 | 26-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Function cleanup
Replace foo_t with struct foo.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> |
| 53ff5c79 | 30-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Fix cache line size
The CPU has cache line size of 64 Bytes, fix the cache line size.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> |
| 8a2f1eee | 28-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Disable SVE
Apply 3872fc2d1fc5 ("Do not enable SVE on pre-v8.2 platforms") to R-Car Gen3 too.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> |
| 539caac9 | 31-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Add missing dependency to rcar_srecord
Add missing dependency on the bl2.elf and bl31.elf into the rcar_srecord target, which uses those ELF files to generate the SRECs.
Signed-off
rcar_gen3: plat: Add missing dependency to rcar_srecord
Add missing dependency on the bl2.elf and bl31.elf into the rcar_srecord target, which uses those ELF files to generate the SRECs.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| e0dd5bb8 | 08-Jan-2019 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
rcar_gen3: plat: Rename H3 label
Rename the H3 label to avoid confusing clang, which generates an error if the label is just H3. Rename it to RCARH3.
Signed-off-by: Marek Vasut <marek.vasut+renesas
rcar_gen3: plat: Rename H3 label
Rename the H3 label to avoid confusing clang, which generates an error if the label is just H3. Rename it to RCARH3.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| 09d40e0e | 14-Dec-2018 |
Antonio Nino Diaz <antonio.ninodiaz@arm.com> |
Sanitise includes across codebase
Enforce full include path for includes. Deprecate old paths.
The following folders inside include/lib have been left unchanged:
- include/lib/cpus/${ARCH} - inclu
Sanitise includes across codebase
Enforce full include path for includes. Deprecate old paths.
The following folders inside include/lib have been left unchanged:
- include/lib/cpus/${ARCH} - include/lib/el3_runtime/${ARCH}
The reason for this change is that having a global namespace for includes isn't a good idea. It defeats one of the advantages of having folders and it introduces problems that are sometimes subtle (because you may not know the header you are actually including if there are two of them).
For example, this patch had to be created because two headers were called the same way: e0ea0928d5b7 ("Fix gpio includes of mt8173 platform to avoid collision."). More recently, this patch has had similar problems: 46f9b2c3a282 ("drivers: add tzc380 support").
This problem was introduced in commit 4ecca33988b9 ("Move include and source files to logical locations"). At that time, there weren't too many headers so it wasn't a real issue. However, time has shown that this creates problems.
Platforms that want to preserve the way they include headers may add the removed paths to PLAT_INCLUDES, but this is discouraged.
Change-Id: I39dc53ed98f9e297a5966e723d1936d6ccf2fc8f Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
show more ...
|
| 06ce6912 | 13-Dec-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
plat: rcar: Move FDT from x3 to x1
As suggested, pass the FDT to BL 33 via x1 instead of x3 , to be consistent with the other platforms.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> |
| a6de3db7 | 11-Oct-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
plat: rcar: Generate FCNL reserved memory node
Generate a /reserved-memory node for FCNL in the DT passed to subsequent stages, so they will know how the FCNL is configured.
Signed-off-by: Marek Va
plat: rcar: Generate FCNL reserved memory node
Generate a /reserved-memory node for FCNL in the DT passed to subsequent stages, so they will know how the FCNL is configured.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| ac49c5fb | 11-Oct-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
plat: rcar: Generate platform compatible string
Generate /compatible string for the platform, so that the subsequent stages know which platform they are running on. This could be useful when ie. bui
plat: rcar: Generate platform compatible string
Generate /compatible string for the platform, so that the subsequent stages know which platform they are running on. This could be useful when ie. building U-Boot that contains DTs for multiple platforms and can thus decide on which platform it is running. This would ultimately allow single bootloader binary for all Gen3 platforms.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| 1d85c4bd | 02-Oct-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
plat: rcar: Pass DTB with DRAM layout from BL2 to next stages
Pass DTB containing DRAM layout from BL2 to BL33 via register x3, so that the BL33 can simply consume it and get accurate DRAM layout in
plat: rcar: Pass DTB with DRAM layout from BL2 to next stages
Pass DTB containing DRAM layout from BL2 to BL33 via register x3, so that the BL33 can simply consume it and get accurate DRAM layout info. BL33 is in most usecases U-Boot.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| 85185151 | 02-Oct-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
plat: rcar: Use array in the DRAM size reporting
Use array of start-size tuples for the DRAM banks and call single function which iterates over this array to report the DRAM info. This is in prepara
plat: rcar: Use array in the DRAM size reporting
Use array of start-size tuples for the DRAM banks and call single function which iterates over this array to report the DRAM info. This is in preparation for expanding this to generate FDT for the next stage.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| 10b7a4ae | 02-Oct-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
plat: rcar: Print DRAM configuration after init
Print the DRAM configuration only after the DRAM was initialized. This will be useful when deduplicating code populating FDT passed to U-Boot, since i
plat: rcar: Print DRAM configuration after init
Print the DRAM configuration only after the DRAM was initialized. This will be useful when deduplicating code populating FDT passed to U-Boot, since it will contain the same macros as bl2_advertise_dram_size().
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
show more ...
|
| e1eddfea | 02-Oct-2018 |
Marek Vasut <marek.vasut+renesas@gmail.com> |
plat: rcar: Fill in memory information for M3W, M3N
Make the DRAM configuration debug print consistent for all supported SoCs.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> |