25 Feb, 2020
3 commits
-
This reverts commit 02dc1599ba0b16eb21ba0c206e5b6f38fe7b67a7
Commit 02dc1599ba0b ("configs: enable sata, eSDHC, USB device module in
T2080QDS")has some sata defconfig changes to fit support DM mode, Now the driver
will be reverted, So revert it.Signed-off-by: Peng Ma
Reviewed-by: Stefan Roese
Reviewed-by: Priyanka Jain -
This reverts commit 856b9cdb53f0e6c8d98f81cf71ef363c16b0aa0e.
Commit 856b9cdb53f0 ("powerpc: mpc85xx: delete FSL_SATA for T2080QDS
board.") is to fit support sata DM mode, Now the driver will be reverted,
So revert it.Signed-off-by: Peng Ma
Reviewed-by: Stefan Roese
Reviewed-by: Priyanka Jain -
This reverts commit 1ee494291880fd51ef0c5f7342e072bdb069d7ff.
Commit 1ee494291880 ("ata: fsl_ahci: Add sata DM support for Freescale
powerpc socs") introduced SCSI layer to call AHCI private API in order
to support sata operations, In DM mode, This is not necessary for
non-AHCI sata. So revert it and have already updated the driver itself
to operate sata directly.Signed-off-by: Peng Ma
Reviewed-by: Stefan Roese
Reviewed-by: Priyanka Jain
21 Feb, 2020
1 commit
-
- rk3399: split roc-pc-rk3399 out of evb_rk3399
- sync dts from upstream kernel for rk3399,rk3288,px30
- boot_mode: find the saradc device name
20 Feb, 2020
12 commits
-
- sdhci: code clean-up and fix cache coherency problem
- enable cache snooping on mpc830x
- Fix build error when MMC_WRITE disabled -
This driver currently performs cache operation before the DMA start,
but does nothing after the DMA completion.When reading data by DMA, the cache invalidation is needed also after
finishing the DMA transfer. Otherwise, the CPU might read data from
the cache instead of from the main memory when speculative memory read
or memory prefetch occurs.Instead of calling the cache operation directly, this commit adds
dma_unmap_single(), which performs cache invalidation internally,
but drivers do not need which operation is being run.Signed-off-by: Masahiro Yamada
-
Currently, sdhci_prepare_dma() calls flush_cache() regardless of the
DMA direction.Actually, cache invalidation is enough when reading data from the device.
This is correctly handled by dma_map_single(), which mimics the DMA-API
in Linux kernel. Drivers can be agnostic which cache operation occurs
behind the scene.This commit also sanitizes the difference between the virtual address
and the dma address.Signed-off-by: Masahiro Yamada
-
Copied from Linux kernel.
include/linux/mmc/host.hSigned-off-by: Masahiro Yamada
Reviewed-by: Jaehoon Chung -
host->mmc is already (struct mmc *).
memalign() returns an opaque pointer, so there is no need for casting.
Signed-off-by: Masahiro Yamada
Reviewed-by: Jaehoon Chung -
Use {lower,upper}_32_bits() instead of the combination of cast
and shift.Signed-off-by: Masahiro Yamada
Reviewed-by: Jaehoon Chung -
The same code is run for both SDHCI_QUIRK_32BIT_DMA_ADDR and
define(CONFIG_FIXED_SDHCI_ALIGNED_BUFFER).Unify the code.
Signed-off-by: Masahiro Yamada
Reviewed-by: Jaehoon Chung -
Using the global variable does not look nice.
Add a new field sthci::align_buffer to point to the bounce buffer.
Signed-off-by: Masahiro Yamada
Reviewed-by: Jaehoon Chung -
To avoid "asm/dma-mapping.h: No such file or directory" error,
we need something.Signed-off-by: Masahiro Yamada
-
Put the target entries for rk3399 devices in alphabetical order.
Signed-off-by: Peter Robinson
Reviewed-by: Simon Glass
Reviewed-by: Kever Yang -
There are many boards share the board file and device header file with
rk3399 evb, add target type MACRO so that it is fixed instead of default
to the first target in "RK3399 board select".Signed-off-by: Kever Yang
-
Pull request for UEFI sub-system for efi-2020-04-rc3
* Update the Kconfig description of CONFIG_EFI_RNG_PROTOCOL
* Fix a function comment resolving a warning in 'make htmldocs'
19 Feb, 2020
20 commits
-
The implementation of dma_map_single() and dma_unmap_single() is
exactly the same for all the architectures that support them.Factor them out to , and make all drivers to
include instead of .If we need to differentiate them for some architectures, we can
move the generic definitions to .Add some comments to the helpers. The concept is quite similar to
the DMA-API of Linux kernel. Drivers are agnostic about what is
going on behind the scene. Just call dma_map_single() before the
DMA, and dma_unmap_single() after it.Signed-off-by: Masahiro Yamada
-
dma_unmap_single() takes the dma address, not virtual address.
Signed-off-by: Masahiro Yamada
-
Make dma_map_single() return the dma address, and remove the
pointless volatile.Signed-off-by: Masahiro Yamada
-
The reference manuals for MPC8308 and MPC8309 both say that the
esdhcctl aka DMA Control Register "is implemented as SDHCCR" in the
System configuration registers. Unfortunately, that doesn't mean that
the registers are just mirrors of each other - any write to esdhcctl
is simply ignored. So to actually enable cache snooping, we
unfortunately have to add a little ifdeffery.There is, naturally, no description of the bit fields of esdhcctl in
the MPC8309 manual, but comparing the description of esdhcctl from the
LS1021A reference manual to the description of the sdhccr in MPC8309,
one also finds that the fields are bit-reversed, so the bit to set is
0x02000000 rather than 0x00000040 - this is also what board_mmc_init()
uses in the two gdsys/mpc8308/ boards.Signed-off-by: Rasmus Villemoes
Reviewed-by: Yangbo Lu -
Do not use quotation marks for Kconfig help text.
Replace rng abbreviation by full words.Signed-off-by: Heinrich Schuchardt
-
In the function description use the correct parameter name.
Mention EFI_FDT_USE_INTERNAL.
Signed-off-by: Heinrich Schuchardt
-
s/dtbi/dtb/
Signed-off-by: Jared Baldridge
-
Added support for onboard LED's and push button. When powered board will be
in low power mode(yellow LED), on button press, board enters full power mode
(red LED) and boots u-boot.Signed-off-by: Suniel Mahesh
Reviewed-by: Kever Yang -
roc-pc-rk3399 board has one user button & three user LED's. Currently
we don't have any code support for these devices. Since button and LED's are
specific to roc-pc-rk3399 board, split it into its own board file and add code
support here.Signed-off-by: Suniel Mahesh
Reviewed-by: Kever Yang -
adc_channel_single_shot() requires the full device name e.g.
"saradc@ff100000", which differs between Rockchip SoC's, but they all
share the prefix "saradc"; find the ADC device with this name prefix and
use its full name.Signed-off-by: Hugh Cole-Baker
Reviewed-by: Kever Yang -
Add console settings like stdin, stdout and stderr as
cros-ec-keyb and vidconsole respectively for Vyasa Rk3288
board.This would certainly help to detect the attached video
devices (like HDMI) and print the console message on display.Signed-off-by: Jagan Teki
Reviewed-by: Kever Yang -
Enable HDMI output for Tinker RK3288 board.
Signed-off-by: Jagan Teki
Reviewed-by: Kever Yang -
Sync rk3288-vyasa dts file from Linux.
This sync has changes required to work HDMI output on
Vyasa RK3288 board.This sync excludes the io_domains node since it is not
available in rk3288.dtsi.Changes like vcc50_hdmi, vdd10_lcd and ddc-i2c-bus are
not merged to Linux yet but wil resync later if any
further updates on this.Signed-off-by: Jagan Teki
Reviewed-by: Kever Yang -
Enable pre console buffer for rk3288 platform.
This would help to capture the console messages prior to
the console being initialised. Enabling this would help
to capture all the console messages on video output source
like HDMI. So we can find the full console messages of
U-Boot proper on HDMI display when enabled it for RK3288
platform boards.Buffer address used for pre console is 0x0f000000 which is
ram base plus 240MiB. right now the Allwinner SoC is using
similar computation.Signed-off-by: Jagan Teki
Reviewed-by: Kever Yang -
There have been multiple peripherals added to the main px30 dtsi
in the Linux kernel since its addition to u-boot. So to make it easier
to sync board devicetrees, update the core dtsi from Linux.Signed-off-by: Heiko Stuebner
Reviewed-by: Kever Yang -
Move the U-Boot specific bits to a -u-boot.dtsi include so all the
u-boot.dtsi hierarchy is included.Signed-off-by: Peter Robinson
Reviewed-by: Kever Yang -
There's some bits in the U-Boot rk3399.dtsi that aren't yet in the
upstream Linux dtsi but are needed for early boot. This moves them
to the u-boot.dtsi to make it easier to sync the rest of rk3399.dtsi
with upstream.Signed-off-by: Peter Robinson
Reviewed-by: Kever Yang -
The upstream linux kernel for the Rockchip 3399 SoC use usbdrd3 naming so move
the two remaining devices over to that for their device trees to make it
easier to sync with upstream DTs.Signed-off-by: Peter Robinson
Reviewed-by: Kever Yang -
The core Rockchip spl code contains a default board_fit_config_name_match
implementation doing nothing. Individual boards may want to handle this
differently, so add a __weak atribute to make it possible to override
this function in other places.Signed-off-by: Heiko Stuebner
Reviewed-by: Kever Yang -
The script iterates over the given devicetrees and creates both
fdt_x node as well as a conf-node for each passed dt.But there is a slight bug in that it always references fdt_1 in each
conf node instead of the matching fdt_x as expected.So fix that by referencing the number of the current dt similar to
how the fdt_x nodes gets created.Signed-off-by: Heiko Stuebner
Reviewed-by: Kever Yang
18 Feb, 2020
2 commits
-
i2c bugfixes for 2020.04
- i2c: designware_i2c: Correct the selection of speed mode
Fixes: d96440d1e3 ("i2c: designware_i2c: Add support for fast-plus speed") -
Unfortunately a recent change adjusted the order of the checks here such
that 400MHz now shows up as fast-plus speed (1Mbps). Fix it.Signed-off-by: Simon Glass
Fixes: d96440d1e3 ("i2c: designware_i2c: Add support for fast-plus speed")
17 Feb, 2020
2 commits
-
These functions are defined before the callers.
Signed-off-by: Masahiro Yamada
Reviewed-by: Peng Fan -
Since commit 01298da31d92 ("mmc: Change mode when switching to a boot
partition"), errors in mmc_select_mode_and_width() are ignored.
The return value should be checked.Fixes: 01298da31d92 ("mmc: Change mode when switching to a boot partition")
Signed-off-by: Masahiro Yamada
Reviewed-by: Jaehoon Chung