04 Jun, 2019
1 commit
-
Porting the sc_seco_gen_key_blob to sci_api.c which is used to
generate key blobSigned-off-by: Ye Li
Reviewed-by: Peng Fan
24 May, 2019
14 commits
-
When power on some sources in Video system, current timeout 10ms is
too short and returns before SCU response. So increase the timeout
to 1s.Signed-off-by: Ye Li
-
On mx7ulp B0, beside bank 0 and 1, the fuse bank 9, 10, 28 are changed to
Redundancy mode not ECC, so they can support to program different bits of
a word in multiple times.Signed-off-by: Ye Li
(cherry picked from commit af901cae281a617063559f60761ad4e912fccd5f)
(cherry picked from commit fe82358d1b881acb7a89d2e17036acf78d49e931) -
Add a common iMX MU driver in misc uclass to communicate with M4.
The MU message format is defined to use 4 words as below, the driver
will use all 4 TR/RR in MU to pass one message|WORD 0 | WORD 1 | WORD 2 | WORD 3 |
|SEQ | TYPE | PAYLOAD ADDRESS | PAYLOAD LENGTH |- SEQ:
A sequence id starts from 0 and increases for each request message- TYPE:
0x1: Request. Message sent from AP will set to this value.
0x2: Response. Message responded from M4 set to this value.
0x3: MU A side is ready.
0x4: MU B side is ready.- PAYLOAD ADDRESS:
A pointer to the memory address where the uplayer message is stored- PAYLOAD LENGTH:
The uplayer message lengthSigned-off-by: Ye Li
(cherry picked from commit aba0e51cc397e1d98be950f9c15619de06ebf782) -
Update SCFW API to get resource owner and check whether a partition
is started.Signed-off-by: Ye Li
-
On iMX8MQ Rev B1, reading from fuse box is not allowed. The
OCOTP_READ_FUSE_DATA register is tied to magic number 0xff0055aa
for chip rev. So u-boot has to disable the fuse sense function for it.Signed-off-by: Ye Li
Tested-by: Anson Huang
(cherry picked from commit da95f60611e8859eba3e7ccb715fdce4d6376774)
(cherry picked from commit 4a8a24ae8b77e394911fd83374ef9c0a89cb9688) -
Add relevants SCFW APIs used in imx8 partition implementation
Signed-off-by: Ye Li
-
Add relevants SCFW APIs used in AHAB implementation
Signed-off-by: Ye Li
-
Since clk and pinctrl will be get (probe) during each device probe,
we don't need to probe them in scu driver. Only need to bind the sub-nodes
(clk and iomuxc) of MU node with their drivers.After this change, we can adapt scu driver to all imx8 platforms like
8QM, 8QXP. And don't need to care the compatible strings of clk and iomuxc.Signed-off-by: Ye Li
-
Update SCFW API to add new APIs and definitions.
Signed-off-by: Ye Li
-
Signed-off-by: Ye Li
-
Signed-off-by: Ye Li
-
Since we have many software running on QM/QXP, it is better to print their
commit ids in u-boot to know their versions.This patch enables the CONFIG_ARCH_MISC_INIT. In arch_misc_init to gets the
commit ids for SCFW and ATF via their APIs and get the commit for imx-mkimage
at the end of u-boot.bin loading address.Once the commit ids are acquired, show them in console like:
BuildInfo:
- SCFW e2e62ca4, SECO-FW c121d4a4, IMX-MKIMAGE fe2ff1e9, ATF 8673a8e
- U-Boot 2018.03-imx_v2018.03+g557a2e5and set them to environment variables like:
commit_atf=8673a8e
commit_mkimage=fe2ff1e9
commit_scfw=e2e62ca4
commit_secofw=c121d4a4If old software are running which does not support provide commit it, the patch
use 0 instead.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit 5b443e3e26178e6df7cf76d98724a45871fcfaf1) -
1. Implement bootaux for the M4 boot on i.MX8QM and QXP. Users need to download
M4 image to any DDR address first. Then use the
"bootaux [M4 core id]" to boot CM4_0
or CM4_1, the default core id is 0 for CM4_0.Since current M4 only supports running in TCM. The bootaux will copy
the M4 image from DDR to its TCML.2. Implment bootaux for HIFI on QXP
command: bootaux 0x81000000 1Signed-off-by: Peng Fan
Signed-off-by: Ye Li
(cherry picked from commit 778606204b84ce6646fe58d752e2abda67600cf2) -
We setup SMMU in arch_preboot_os to avoid breaking u-boot driver.
Add a kconfig entry CONFIG_IMX_SMMU to enable it.
So far, the USDHC0-USDHC1 and FEC0-FEC1 are added into sid.Signed-off-by: Peng Fan
Signed-off-by: Ye Li
(cherry picked from commit 7da6345919ee59a26cf65b4bc29072eea2fc0909)
14 Feb, 2019
1 commit
-
All platforms are converted to DM_I2C that's why there is no reason to
keep this code here.Signed-off-by: Michal Simek
Reviewed-by: Heiko Schocher
10 Feb, 2019
1 commit
-
Allow misc devices to have children, so that we can use this uclass for
cases where a child device (e.g. I2S) needs to access a misc driver for
transferring data.Signed-off-by: Simon Glass
30 Jan, 2019
1 commit
-
For 2019.04
29 Jan, 2019
1 commit
-
SPL runs in EL3 mode, except MU0_A, others are not powered on,
and could not be used. However normal U-Boot use MU1_A, so we
could not reuse the one in dts. And we could not replace the one
in dts with MU0_A, because MU0_A is reserved in secure world.Signed-off-by: Peng Fan
26 Jan, 2019
1 commit
-
Linux kernel binding is using atmel,24c08 compatible string. On the
other hand there is atmel,24c08a which is not listed in the kernel.
Add compatible string without "a" suffix to be compatible with Linux
kernel binding.These eeproms are available on several ZynqMP development boards.
Signed-off-by: Michal Simek
19 Jan, 2019
1 commit
-
Add TFA boot flow for more boards
Add TFA boot defconfig for ls1088a and ls2088a.
Add dts fixup for PCIe endpoint and root complex.
18 Jan, 2019
1 commit
-
Restore the legacy flow along with TFABOOT flow for
IFC configuration.Signed-off-by: Pankit Garg
Signed-off-by: Rajesh Bhagat
Reviewed-by: York Sun
16 Jan, 2019
1 commit
-
Switching private data manual allocation to driver model auto allocation
so users no longer need to deallocate themself because this would be
deallocated by driver model when the device is no longer required.Signed-off-by: Tien Fong Chee
Reviewed-by: Simon Glass
10 Jan, 2019
2 commits
-
priv data has not been allocated when doing bind, so it is
wrong to use dev_get_priv in bind call back.Let's switch to use platdata in the driver to fix the issue.
Signed-off-by: Peng Fan
Reviewed-by: Simon Glass -
When boot_dev is true, fill boot device. However the original logic is when
boot_dev is false, fill boot device, this will trigger data abort.Also fix sc_misc_get_control when using pointer val.
Signed-off-by: Peng Fan
01 Jan, 2019
2 commits
-
imx for 2019.01
- introduce support for i.MX8M
- fix size limit for Vhybrid / pico boards
- several board fixes
- w1 driver for MX2x / MX5x -
Rename mx8m,MX8M to imx8m,IMX8M
Signed-off-by: Peng Fan
Signed-off-by: Jon Nettleton
19 Dec, 2018
1 commit
-
Add driver for the efuse block in the JZ47xx SOC.
Cc: Daniel Schwierzeck
Signed-off-by: Paul Burton
Signed-off-by: Marek Vasut
Signed-off-by: Ezequiel Garcia
Reviewed-by: Marek Vasut
11 Dec, 2018
1 commit
-
Add TFA boot flow for some Layerscape platforms
Add support for lx2160a SoC[trini: Add a bunch of missing MAINTAINERS entries]
Signed-off-by: Tom Rini
07 Dec, 2018
1 commit
-
IFC driver changes to implement the chipselect mappings at run time.
Defines init_early_memctl_regs and init_final_memctl_regs with
chipselect dynamic mapping for nor and nand boot.Signed-off-by: Pankit Garg
Signed-off-by: Rajesh Bhagat
[YS: fix checkpatch issues]
Reviewed-by: York Sun
05 Dec, 2018
2 commits
-
At present there are no users of the 64-byte v2 context. The v1 context is
only 16 bytes long and currently an error is raised if too much data is
returned from the EC.Update the code to limit the size to 16 bytes.
Signed-off-by: Simon Glass
-
Correct a warning that occurs on sandbox. Also fix the comment style in
cros_ec_set_lid_shutdown_mask().Signed-off-by: Simon Glass
21 Nov, 2018
6 commits
-
At present these functions return 0 on success. For some devices we want
to know how many bytes were transferred. It seems useful to adjust the API
to be more like the POSIX read() and write() functions.Update these two methods, a test and all users.
Signed-off-by: Simon Glass
Reviewed-by: Patrick Delaunay -
This adds new commands to the EC related to setting and clearing events
as well as controlling power-related settings.Signed-off-by: Simon Glass
-
The LPC driver expects its buffer to be word-aligned. Add the required
flag to the uclass driver to ensure this.Signed-off-by: Simon Glass
-
This value is required for flashing to work correctly. Add a check for
it.Signed-off-by: Simon Glass
-
Add some more logging to provide more information on failures.
Signed-off-by: Simon Glass
-
There is no advantage to using a u8 for function parameters. It forces
the compiler to mask values and can increase code size. Also the command
enum has been extended to 16 bits. Update the functions to use uint
instead.Signed-off-by: Simon Glass
17 Nov, 2018
2 commits
-
Fix compiler warning
drivers/misc/fs_loader.c:193:9: warning: format ‘%d’ expects
argument of type ‘int’, but argument 5 has type ‘size_t
{aka long unsigned int}’ [-Wformat=]Signed-off-by: Keerthy
Reviewed-by: Simon Glass -
Instead of two staged ofnode_to_offset followed by
device_get_global_by_of_offset approach, direcly use the
device_get_global_by_ofnode to fetch the device.Signed-off-by: Keerthy
Reviewed-by: Simon Glass