25 Mar, 2014
1 commit
-
Trivial merge conflict, needed to manually remove
local_info as per commit 41364f0f.Conflicts:
board/samsung/common/board.c
18 Mar, 2014
22 commits
-
This function is needed when CONFIG_OF_SPI is defined.
Signed-off-by: Simon Glass
-
It is useful for Cltl-C to be handled by U-Boot as it is on other boards.
But it is also useful to be able to terminate U-Boot with Ctrl-C.Add an option to enable signals while in raw mode, and make this the
default. Add an option to leave the terminal cooked, which is useful for
redirecting output.Signed-off-by: Simon Glass
-
The i2s code is in fact Samsung-specific, but there might be other
implementation. Move this code into its own file. This makes it slightly
more obviously how to adjust the code to support another SoC, when someone
takes this task on.Also drop non-FDT support, since it isn't used on Exynos 5.
Tested-by: Che-Liang Chiou
Signed-off-by: Simon Glass -
Add a simple LCD driver which uses SDL to display the image. We update the
image regularly, while still providing for reasonable performance.Adjust the common lcd code to support sandbox.
For command-line runs we do not want the LCD to be displayed, so add a
--show_lcd option to enable it.Tested-by: Che-Liang Chiou
Signed-off-by: Simon Glass -
Add a sound driver for sandbox, which uses SDL.
Tested-by: Che-Liang Chiou
Signed-off-by: Simon Glass -
The Chrome EC has a feature where you can access its I2C buses through a
pass-through arrangement. Add a command to support this, and export the
function for it also.Reviewed-by: Vadim Bendebury
Signed-off-by: Simon Glass -
Add a simple emulation of the Chrome OS EC for sandbox, so that it can
perform various EC tasks such as keyboard handling.Reviewed-by: Vadim Bendebury
Signed-off-by: Simon Glass -
Due to signed/unsigned comparison, '< sizeof(struct)' does not do the right
thing, since if ec_command() returns a -ve number we will consider this be
success.Adjust all comparisons to avoid this problem.
This error was found with sandbox, which gives a segfault in this case. On
ARM we may instead silently fail.We should also consider turning on -Wsign-compare to catch this sort of thing
in future.Reviewed-by: Andrew Chew
Reviewed-by: Simon Glass
Reviewed-by: Vadim Bendebury
Tested-by: Andrew Chew
Signed-off-by: Simon Glass
Signed-off-by: Jimmy Zhang -
Protocol version 3 will be attempted first; if the EC doesn't support
it, u-boot will fall back to the old protocol version (2).Reviewed-by: Simon Glass
Signed-off-by: Randall Spangler
Signed-off-by: Simon Glass -
Protocol v2 was shipped with snow, link and spring. Protocol v3 is for
pit and is targetted at SPI operation.Signed-off-by: Simon Glass
-
Version 1 protocols (without command version) were already no longer
supported in cros_ec.c. This removes some dead code from the
cros_ec_i2c driver.Version 2 protcols (with command version) are now called
protocol_version=2, instead of cmd_version_is_supported=1.A subsequent change will introduce protocol version 3 for SPI.
Reviewed-by: Simon Glass
Signed-off-by: Randall Spangler
Signed-off-by: Simon Glass -
The EC messages have been expanded and some parts have been renamed.
Signed-off-by: Simon Glass
-
Flash region access is not tied to having commands, so adjust the #ifdef
to reflect this.Signed-off-by: Simon Glass
-
Some systems do not have an EC interrupt. Rather than assuming that the
interrupt is always present, and hanging forever waiting for more input,
handle the missing interrupt. This works by reading key scans only until
we get an identical one. This means the EC keyscan FIFO is empty.Tested-by: Che-Liang Chiou
Signed-off-by: Simon Glass -
There is no need to support old style EC moving forward. Ultimately we
should get rid of the check_version() API. For now just return error
in case the EC does not seem to support the new API.Reviewed-by: Vadim Bendebury
Tested-by: Vadim Bendebury
Signed-off-by: Vadim Bendebury
Signed-off-by: Simon Glass -
In order to talk to the EC properly we need to be able to understand the
layout of its internal flash memory. This permits emulation of the EC
for sandbox, and also software update in a system with a real EC.Signed-off-by: Simon Glass
-
The commit 6af8dc3ebccb3b1e4b2e479315e49545e7f53150 broke support for
S25FL032P and S25FL064P by carelessly removing the code handling special
page size for these two SPI NOR flashes and unifying the code under the
assumption that Extended JEDEC ID of 0x4d00 always implies 512b page size.Add special case handling for these two SPI NOR flashes.
Signed-off-by: Marek Vasut
Reviewed-by: Jagannadha Sutradharudu Teki -
Refactor the code a bit to make it better in readability.
Remove the comments because now the intention of the code is pretty clear.Signed-off-by: Axel Lin
Reviewed-by: Jagannadha Sutradharudu Teki -
Squash the malloc()+memset() combo in favor of calloc().
Signed-off-by: Jagannadha Sutradharudu Teki
Acked-by: Marek Vasut -
Squash the malloc()+memset() combo in favor of calloc().
Signed-off-by: Marek Vasut
Reviewed-by: Jagannadha Sutradharudu Teki -
Add IDs for this new chip.
Signed-off-by: Marek Vasut
Reviewed-by: Jagannadha Sutradharudu Teki -
Both of these chips have 256kB big sectors, thus the _256K suffix,
compared to their _64K counterparts, which have 64kB sectors. Also,
they have four times less sectors than their _64K counterparts.Signed-off-by: Marek Vasut
Tested-by: Jagannadha Sutradharudu Teki
14 Mar, 2014
2 commits
13 Mar, 2014
4 commits
-
Thanks to this multiple call of function dfu_config_entities()
gives continuous dfu alt numbering until call dfu_free_entities().This allows to store dfu entities in multiple variables.
Signed-off-by: Przemyslaw Marczak
Acked-by: Łukasz Majewski
Tested-by: Heiko Schocher
Signed-off-by: Minkyu Kang -
introduce an 'mcs7830' driver for Moschip MCS7830 based (7730/7830/7832)
USB 2.0 Ethernet Devicessee "MCS7830 -- USB 2.0 to 10/100M Fast Ethernet Controller" at
http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=109;74;109the driver was implemented based on the U-Boot Asix driver with
additional information gathered from the Moschip Linux driver,
development was done on "Delock 61147" and "Logilink UA0025C" donglesSigned-off-by: Gerhard Sittig
Acked-by: Marek Vasut -
CPSW ia a gigabit device. Use the PHY_GBIT_FEATURES macro to determine phy
supported features.
Tested on cm_t335.Signed-off-by: Ilya Ledvich
-
The logic determining SPI "write" transfer completion was faulty. At
certain conditions (e.g. slow SPI clock freq) the transfers were
interrupted before completion. Both EOT and TXS flags of channel
status registeer shall be checked to ensure that all data was
transferred. Tested on AM3359 chip.Signed-off-by: Vasili Galka
12 Mar, 2014
3 commits
-
This patch enables support for device tree for sdhci driver.
Non DT case is still supported.Signed-off-by: Piotr Wilczek
Signed-off-by: Kyungmin Park
Signed-off-by: Minkyu Kang -
This patch adds the new exynos_lcd_misc_init() function for optional
lcd specific initialisation.Signed-off-by: Piotr Wilczek
Signed-off-by: Kyungmin Park
Signed-off-by: Minkyu Kang -
This patch enables parsing mipi data from device tree.
Non device tree case is still supported.Signed-off-by: Piotr Wilczek
Signed-off-by: Kyungmin Park
Signed-off-by: Minkyu Kang
11 Mar, 2014
8 commits
-
Many USB host controller drivers contain almost identical copies of the
same virtual root hub descriptors. Put these into a common file to avoid
duplication.Note that there were some very minor differences between the descriptors
in the various files, such as:- USB 1.0 vs. USB 1.1
- Manufacturer/Device ID
- Max packet size
- String contentI assume these aren't relevant.
Cc: Thomas Lange
Cc: Shinya Kuribayashi
Cc: Gary Jennejohn
Cc: Wolfgang Denk
Cc: Eric Millbrandt
Cc: Pierre Aubert
Cc: Stefan Roese
Cc: Daniel Hellstrom
Cc: Denis Peter
Cc: Rodolfo Giometti
Cc: Zhang Wei
Cc: Mateusz Zalega
Cc: Remy Bohmer
Cc: Markus Klotzbuecher
Cc: Minkyu Kang
Cc: Gary Jennejohn
Cc: C Nauman
Cc: David Müller
Cc: Yoshihiro Shimoda
Cc: Nobuhiro Iwamatsu
Cc: Thomas Abraham
Cc: Tom Rini
Cc: Andrew Murray
Cc: Matej Frančeškin
Cc: Cliff Cai
Cc: Bryan Wu
Signed-off-by: Stephen Warren -
These data structures are passed to cache-flushing routines, and hence
must be conform to both the USB the cache-flusing alignment requirements.
That means aligning to USB_DMA_MINALIGN. This is important on systems
where cache lines are >32 bytes.Signed-off-by: Stephen Warren
-
Section 4.10.2 "Advance Queue" of ehci-specification-for-usb.pdf
specifies how an EHCI controller loads a new QTD for processing if the
QH is not already marked as active. It states:=====
If the field Bytes to Transfer is not zero and the T-bit in the Alternate
Next qTD Pointer is set to zero, then the host controller uses the
Alternate Next qTD Pointer. Otherwise, the host controller uses the Next
qTD Pointer. If Next qTD Pointer’s T-bit is set to a one, then the host
controller exits this state and uses the horizontal pointer to the next
schedule data structure.
=====Hence, we must ensure that the alternate next QTD pointer's T-bit
(TERMINATE) is set, so the EHCI controller knows to use the next QTD
pointer.Signed-off-by: Stephen Warren
-
.bmp files contain 32-bit integers aligned at offsets of +2, +6,
et cetera within the bmp_header structure (see include/bmp_layout.h).Support for gzip-compressed .bmp files is present in the cfb_console
display subsystem by uncompressing them prior to use.This patch forces the in-memory header to be aligned properly
for these compressed images by extracting them to a 2-byte
offset in the memory returned by malloc. Since malloc will always
return a 4-byte aligned value, this forces the .bmp header
fields to be naturally aligned on 4-byte addresses.Refer to these files for more details:
doc/README.displaying-bmpsSigned-off-by: Eric Nelson
-
I have observed timeouts on a cubietruck.
The increase to 40ms is completely arbitrary and Works For Me(tm). I
couldn't find a good reference for how long you are supposed to wait,
although googling around it seems like tens of ms rather than single
digits is more common. I don't think there is any harm in waiting a bit
longer.Signed-off-by: Ian Campbell
-
This allow the platform to register the platform ahci device.
Signed-off-by: Ian Campbell