30 Nov, 2018
15 commits
-
store fdt header member with name in U-Boot
Environment variable with name .for example to get the total length of the fdt and store
it in filesize, call:fdt header get filesize totalsize
For membernames look into fdt header definition at
scripts/dtc/libfdt/libfdt.hSigned-off-by: Heiko Schocher
Reviewed-by: Simon Glass -
The use of strcpy() to remove characters at the start of a string is safe
in U-Boot, since we know the implementation. But in os.c we are using the
C library's strcpy() function, where this behaviour is not permitted.Update the code to use memmove() instead.
Reported-by: Coverity (CID: 173279)
Signed-off-by: Simon Glass
Reviewed-by: Alexander Graf -
Now that the buffer-overflow bug is fixed, we can enable sound on sandbox.
Drop the code which exits early.Signed-off-by: Simon Glass
-
At present we request a particular frequency but we may not get the exact
same frequency in response. So use the actual frequency for generation of
the square wave. This ensures that the pitch remains accurate on all host
machines.Signed-off-by: Simon Glass
-
At present this value is hard-coded in the function that generates a
square wave. Since sample rates vary between different hardware, it makes
more sense to have this as a parameter.Update the function and its users.
Signed-off-by: Simon Glass
-
This function currently outputs twice as much data as it should and
overwrites its buffer as a result. Fix it.Signed-off-by: Simon Glass
-
Some RTC chips have child drivers, e.g. to provide access to their
non-volatile RAM. Scan for these when binding.Signed-off-by: Simon Glass
-
Update the device tree, sandbox i2c driver and tests to use the new
emulation parent to hold emulators.Signed-off-by: Simon Glass
-
Sandbox i2c works using emulation drivers which are currently children of
the i2c device:rtc_0: rtc@43 {
reg = ;
compatible = "sandbox-rtc";
emul {
compatible = "sandbox,i2c-rtc";
};
};In this case the emulation device is attached to i2c bus on address 0x43
and provides the Real-Time-Clock (RTC) functionality.However this is not ideal, since every device on an I2C bus has a child
device. This is only really the case for sandbox, but we want to avoid
special-case code for sandbox.A better approach seems to be to add a separate node on the bus, an
'emulation parent'. This can be given a bogus address (such as 0xff) and
hides all the emulators away. Then we can use a phandle to point from the
device to the correct emualtor, and only on sandbox. The code to find an
emulator does not interfere with normal i2c operation.Add a new UCLASS_I2C_EMUL_PARENT uclass which allows finding an emulator
given a bus, and finding a bus given an emulator. This will be used in a
follow-on patch.Signed-off-by: Simon Glass
-
This is currently at the top in the space for internal use. But this
uclass is used outside driver model and test code. Move it into the
correct alpha order.Signed-off-by: Simon Glass
-
Add two functions which can find a child device by uclass or by name.
The first is useful with Multi-Function-Devices (MFDs) to find one of a
particular type. The second is useful when only the name is known.Signed-off-by: Simon Glass
-
This function may be useful to code outside of the code driver-model
implementation. Export it and add a test.Signed-off-by: Simon Glass
-
At present tests are quite slow to run, over a minute on my machine. This
presents a considerable barrier to bisecting for failures.The slowest tests are the filesystem ones and the buildman --fetch-arch
test. Add a new 'qcheck' target that skips these tests. This reduces test
time down to about 40 second, still too long, but bearable.Signed-off-by: Simon Glass
-
There is a newline missing from quite a few printf() strings in these pmic
files. Fix them.Signed-off-by: Simon Glass
Reviewed-by: Lukasz Majewski -
It is sometimes useful to see what memory is being allocated early during
boot. Add logging to support this, using a new LOGC_ALLOC category.Signed-off-by: Simon Glass
29 Nov, 2018
19 commits
-
- Add MediaTek support
-
This patch adds an entry for MediaTek.
Signed-off-by: Ryder Lee
Reviewed-by: Simon Glass -
Add a few notes on how to try out the MediaTek support so far.
Signed-off-by: Ryder Lee
Tested-by: Frank Wunderlich
Reviewed-by: Simon Glass -
This patch adds MT7623 host controller driver for accessing SD/MMC.
Cc: Jaehoon Chung
Signed-off-by: Weijie Gao
Signed-off-by: Ryder Lee
Tested-by: Matthias Brugger
Reviewed-by: Simon Glass -
This patch adds a DDR3 driver for MT7629 SoC.
Signed-off-by: Wu Zou
Signed-off-by: Ryder Lee
Reviewed-by: Simon Glass -
Many SoCs from MediaTek have a high-speed uart. This UART is compatible
with the ns16550 in legacy mode. It has extra registers for high-speed
mode which can reach a maximum baudrate at 921600.However this UART will no longer be compatible if it's in high-speed mode.
Some BootROM of MediaTek's SoCs will change the UART into high-speed mode
and the U-Boot must use this driver to initialize the UART.Signed-off-by: Weijie Gao
Tested-by: Ryder Lee
Reviewed-by: Simon Glass -
This adds power domain (scpsys) support for MT7623 SoC.
Signed-off-by: Ryder Lee
Reviewed-by: Simon Glass -
This adds a power domain driver for the Mediatek SCPSYS unit.
The System Control Processor System (SCPSYS) has several power
management related tasks in the system. The tasks include thermal
measurement, dynamic voltage frequency scaling (DVFS), interrupt
filter and lowlevel sleep control. The System Power Manager (SPM)
inside the SCPSYS is for the MTCMOS power domain control.For now this driver only adds power domain support.
Signed-off-by: Ryder Lee
Reviewed-by: Simon Glass -
This patch adds pinctrl support for MT7623 SoC. And most of the
structures are used to hold the hardware configuration for each
pin.Signed-off-by: Ryder Lee
Tested-by: Matthias Brugger
Reviewed-by: Simon Glass -
This patch adds pinctrl support for MT7629 SoC. The IO core found on
the SoC has the registers for pinctrl, pinconf and gpio mixed up in
the same register range. Hence the driver also implements the gpio
functionality through UCLASS_GPIO.This also creates a common file as there might be other chips that use
the same binding and driver, then being a little more abstract could
help in the long run.Signed-off-by: Ryder Lee
Reviewed-by: Simon Glass -
This patch adds a common driver for the Mediatek SoC integrated
watchdog.Signed-off-by: Ryder Lee
Tested-by: Matthias Brugger
Reviewed-by: Simon Glass -
This patch adds clock source and clock event for the timer found
on the Mediatek SoCs.Signed-off-by: Ryder Lee
Tested-by: Matthias Brugger
Reviewed-by: Simon Glass -
This patch adds a driver for MT7623 clock blocks.
Signed-off-by: Ryder Lee
Tested-by: Matthias Brugger
Reviewed-by: Simon Glass -
This patch adds clock modules for MediaTek SoCs:
- Shared part: a common driver which contains the general operations
for plls, muxes, dividers and gates so that we can reuse it in future.- Specific SoC part: the group of structures used to hold the hardware
configuration for each SoC.We take MT7629 as an example to demonstrate how to implement driver if
any other MediaTek chips would like to use it.Signed-off-by: Ryder Lee
Reviewed-by: Simon Glass -
This adds a general board file based on MT7623 SoCs from MediaTek.
As this u-boot is loaded by MTK proprietary preloader, there is no
low level initializtion codes.Signed-off-by: Weijie Gao
Signed-off-by: Ryder Lee
Tested-by: Matthias Brugger
Reviewed-by: Simon Glass -
This adds a general board file based on MT7629 SoCs from MediaTek.
Apart from the generic parts (cpu) we add some low level init codes
and initialize the early clocks.Signed-off-by: Ryder Lee
Signed-off-by: Weijie Gao
Reviewed-by: Simon Glass -
This adds device tree for MT7623 development board - Bananapi R2
Detailed hardware information for BPI-R2 which could be found on
http://wiki.banana-pi.org/Banana_Pi_BPI-R2.Signed-off-by: Ryder Lee
Tested-by: Matthias Brugger
Reviewed-by: Simon Glass -
This patch adds MT7629 device tree and the includes it needs.
Signed-off-by: Ryder Lee
Reviewed-by: Simon Glass -
This patch adds support for MTK boot image generation.
Signed-off-by: Weijie Gao
Signed-off-by: Ryder Lee
Reviewed-by: Simon Glass
28 Nov, 2018
1 commit
-
- Introduce CONFIG_SPL_DM_USB
27 Nov, 2018
5 commits
-
- chiliboard updates
- misc TI platform updates -
DM_SERIAL is selected by TARGET_CHILIBOARD, so there is no reason to
keep code that will not be built. Remove it.Signed-off-by: Marcin Niestroj
Reviewed-by: Tom Rini -
This patch mostly enables DM drivers in board defconfig and all their
dependencies. Additionally we remove ethernet platform data, as all
details are in device-tree now.Signed-off-by: Marcin Niestroj
Reviewed-by: Tom Rini -
Add that node path in u-boot overlay dtsi file for now to keep
am335x-chiliboard.dts in sync with Linux.Signed-off-by: Marcin Niestroj
Reviewed-by: Tom Rini -
Import chiliSOM and chiliboard dts files from Linux v4.19. They will
be used after transition to driver model and device-tree based boot.Signed-off-by: Marcin Niestroj
Reviewed-by: Tom Rini