rcar_gen3: E3 target: fix compilation issuesTarget builds but has not been tested.Signed-off-by: ldts <jorge.ramirez.ortiz@gmail.com>
rcar_gen3: drivers: watchdogSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: serial controller interfaceSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: spi multio bus controllerSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: rom apiSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: power controllerSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: consoleSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: io [emmc/mem]Signed-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: i2c dvfsSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: emmcSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: dmaSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: micro delay generatorSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: cpldSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: board identificationSigned-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: avs [adaptive voltage scaling]Signed-off-by: ldts <jramirez@baylibre.com>
rcar_gen3: drivers: authenticationSigned-off-by: ldts <jramirez@baylibre.com>
rcar-gen3: initial commit for the rcar-gen3 boardsReference code:==============rar_gen3: IPL and Secure Monitor Rev1.0.22https://github.com/renesas-rcar/arm-trusted-firmware [rcar_gen3]Author
rcar-gen3: initial commit for the rcar-gen3 boardsReference code:==============rar_gen3: IPL and Secure Monitor Rev1.0.22https://github.com/renesas-rcar/arm-trusted-firmware [rcar_gen3]Author: Takuya Sakata <takuya.sakata.wz@bp.renesas.com>Date: Thu Aug 30 21:26:41 2018 +0900 Update IPL and Secure Monitor Rev1.0.22General Information:===================This port has been tested on the Salvator-X Soc_id r8a7795 revisionES1.1 (uses an SPD).Build Tested:-------------ATFW_OPT="LSI=H3 RCAR_DRAM_SPLIT=1 RCAR_LOSSY_ENABLE=1"MBEDTLS_DIR=$mbedtls$ make clean bl2 bl31 rcar PLAT=rcar ${ATFW_OPT} SPD=opteedOther dependencies:------------------* mbed_tls: git@github.com:ARMmbed/mbedtls.git [devel] Merge: 68dbc94 f34a4c1 Author: Simon Butcher <simon.butcher@arm.com> Date: Thu Aug 30 00:57:28 2018 +0100* optee_os: https://github.com/BayLibre/optee_os Until it gets merged into OP-TEE, the port requires Renesas' Trusted Environment with a modification to support power management. Author: Jorge Ramirez-Ortiz <jramirez@baylibre.com> Date: Thu Aug 30 16:49:49 2018 +0200 plat-rcar: cpu-suspend: handle the power level Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>* u-boot: The port has beent tested using mainline uboot. Author: Fabio Estevam <festevam@gmail.com> Date: Tue Sep 4 10:23:12 2018 -0300*linux: The port has beent tested using mainline kernel. Author: Linus Torvalds <torvalds@linux-foundation.org> Date: Sun Sep 16 11:52:37 2018 -0700 Linux 4.19-rc4Overview---------BOOTROM starts the cpu at EL3; In this port BL2 will therefore be enteredat this exception level (the Renesas' ATF reference tree [1] resets intoEL1 before entering BL2 - see its bl2.ld.S)BL2 initializes DDR (and i2c to talk to the PMIC on some platforms)before determining the boot reason (cold or warm).During suspend all CPUs are switched off and the DDR is put inbackup mode (some kind of self-refresh mode). This means that BL2 isalways entered in a cold boot scenario.Once BL2 boots, it determines the boot reason, writes it to sharedmemory (BOOT_KIND_BASE) together with the BL31 parameters(PARAMS_BASE) and jumps to BL31.To all effects, BL31 is as if it is being entered in reset mode sinceit still needs to initialize the rest of the cores; this is the reasonbehind using direct shared memory access to BOOT_KIND_BASE andPARAMS_BASE instead of using registers to get to those locations (seeel3_common_macros.S and bl31_entrypoint.S for the RESET_TO_BL31 usecase).Depending on the boot reason BL31 initializes the rest of the cores:in case of suspend, it uses a MBOX memory region to recover theprogram counters.[1] https://github.com/renesas-rcar/arm-trusted-firmwareTests-----* cpuidle ------- enable kernel's cpuidle arm_idle driver and boot* system suspend -------------- $ cat suspend.sh #!/bin/bash i2cset -f -y 7 0x30 0x20 0x0F read -p "Switch off SW23 and press return " foo echo mem > /sys/power/state* cpu hotplug: ------------ $ cat offline.sh #!/bin/bash nbr=$1 echo 0 > /sys/devices/system/cpu/cpu$nbr/online printf "ONLINE: " && cat /sys/devices/system/cpu/online printf "OFFLINE: " && cat /sys/devices/system/cpu/offline $ cat online.sh #!/bin/bash nbr=$1 echo 1 > /sys/devices/system/cpu/cpu$nbr/online printf "ONLINE: " && cat /sys/devices/system/cpu/online printf "OFFLINE: " && cat /sys/devices/system/cpu/offlineSigned-off-by: ldts <jramirez@baylibre.com>
show more ...
1234