Hello Simon,
Am 20.04.2015 20:37, schrieb Simon Glass:
Rename this function so that it is clear that it is provided by the RTC.
Also return an error when it cannot function as expected. This is unlikely
to occur since it works for dates since 1752 and many RTCs do not support
such old dates. Sti
Hi Simon,
On Wed, Mar 25, 2015 at 1:23 PM, Simon Glass wrote:
> This adds a simple test for probing and a functional test using the flash
> stick emulator, which tests a large chunk of the USB stack.
>
> Signed-off-by: Simon Glass
I'm seeing a seg fault when running the dm tests and bisected it
Changes in v7:
- rebased over master
- fixed issue that prevented secure boot with all cores
=> replace ap_pm_init with psci_board_init hook
- enable CONFIG_ARMV7_BOOT_SEC_DEFAULT for tegra to avoid problems with
default config of current Linux
- add cleanup patch for CONFIG_ARMV7_NONSEC/
Tegra boards will have to initialize power management for the PSCI
support this way.
Signed-off-by: Jan Kiszka
---
arch/arm/cpu/armv7/virt-v7.c | 6 ++
arch/arm/include/asm/psci.h | 1 +
2 files changed, 7 insertions(+)
diff --git a/arch/arm/cpu/armv7/virt-v7.c b/arch/arm/cpu/armv7/virt-v7
CONFIG_ARMV7_VIRT depends on CONFIG_ARMV7_NONSEC, thus doesn't need to
be taken into account additionally. CONFIG_ARMV7_PSCI is only set on
boards that support CONFIG_ARMV7_NONSEC, and it only works on those.
CC: Tang Yuantian
CC: York Sun
CC: Steve Rae
CC: Andre Przywara
Signed-off-by: Jan Ki
From: Ian Campbell
The secure world code is relocated to the MB just below the top of 4G, we
reserve it in the FDT (by setting CONFIG_ARMV7_SECURE_RESERVE_SIZE) but it is
not protected in h/w. See next patch.
Signed-off-by: Ian Campbell
Signed-off-by: Jan Kiszka
Reviewed-by: Tom Rini
Reviewed
Use a per-CPU variable for saving the target PC during CPU_ON
operations. This allows us to run this service independently on targets
that have more than 2 cores and also core-local power control.
CC: Marc Zyngier
Signed-off-by: Jan Kiszka
Reviewed-by: Tom Rini
Reviewed-by: Thierry Reding
Test
From: Ian Campbell
These registers can be used to prevent non-secure world from accessing a
megabyte aligned region of RAM, use them to protect the u-boot secure monitor
code.
At first I tried to do this from s_init(), however this inexplicably causes
u-boot's networking (e.g. DHCP) to fail, whi
From: Thierry Reding
Make sure to enable the SMMU when booting the kernel in non-secure mode.
This is necessary because some of the SMMU registers are restricted to
TrustZone-secured requestors, hence the kernel wouldn't be able to turn
the SMMU on. At the same time, enable translation for all me
Upstream Linux is broken with default configs when PSCI, thus non-secure
mode is enabled. So the user should explicitly enable this mode, e.g.
when she disabled CONFIG_CPU_IDLE in Linux (in which case it's safe to
use). We can revert this workaround once Linux got fixed.
Signed-off-by: Jan Kiszka
We only set CNTFRQ in arch_timer_init for the boot CPU. But this has to
happen for all cores.
Fixing this resolves problems of KVM with emulating the generic
timer/counter.
Signed-off-by: Jan Kiszka
Reviewed-by: Tom Rini
Reviewed-by: Thierry Reding
Tested-by: Thierry Reding
Tested-by: Ian Cam
Will be required for obtaining the ID of the current CPU in shared PSCI
functions. The default implementation requires a dense ID space and only
supports a single cluster. Therefore, the functions can be overloaded in
cases where these assumptions do not hold.
CC: Marc Zyngier
Signed-off-by: Jan
This is based on Thierry Reding's work and uses Ian Campell's
preparatory patches. It comes with full support for CPU_ON/OFF PSCI
services. The algorithm used in this version for turning CPUs on and
off was proposed by Peter De Schrijver and Thierry Reding in
http://thread.gmane.org/gmane.comp.boot
_sunxi_cpu_entry can be converted completely into a reusable
psci_cpu_entry. Tegra124 will use it as well.
As with psci_disable_smp, also the enabling is designed to be overloaded
in cased SMP is not controlled via ACTLR.
CC: Marc Zyngier
Signed-off-by: Jan Kiszka
Reviewed-by: Tom Rini
Reviewe
Move parts of sunxi's psci_cpu_off into psci_cpu_off_common, namely
cache disabling and flushing, clrex and the disabling of SMP for the
dying CPU. These steps are apparently generic for ARMv7 and will be
reused for Tegra124 support.
As the way of disabled SMP is not architectural, though commonly
This is already invoked a few cycles later in monitor mode by
_secure_monitor (_sunxi_cpu_entry calls _do_nonsec_entry which triggers
_secure_monitor via smc #0). Drop it here, it serves no purpose.
CC: Marc Zyngier
Signed-off-by: Jan Kiszka
Reviewed-by: Tom Rini
Reviewed-by: Thierry Reding
Te
From: Ian Campbell
I will need mc_security_cfg0/1 in a future patch and I added the rest while
debugging, so thought I might as well commit them.
Signed-off-by: Ian Campbell
Signed-off-by: Jan Kiszka
Reviewed-by: Tom Rini
Reviewed-by: Thierry Reding
Tested-by: Thierry Reding
Tested-by: Ian
Will be used for unpowergating CPUs.
Signed-off-by: Jan Kiszka
Reviewed-by: Tom Rini
Reviewed-by: Thierry Reding
Tested-by: Thierry Reding
Tested-by: Ian Campbell
---
arch/arm/include/asm/arch-tegra/powergate.h | 1 +
arch/arm/mach-tegra/powergate.c | 2 +-
2 files changed, 2 ins
This algorithm will be useful on Tegra as well, plus we will need it for
making _psci_target_pc per-CPU.
CC: Marc Zyngier
Signed-off-by: Jan Kiszka
Reviewed-by: Tom Rini
Reviewed-by: Thierry Reding
Tested-by: Thierry Reding
Tested-by: Ian Campbell
---
arch/arm/cpu/armv7/psci.S | 14 ++
In this case the secure code lives in RAM, and hence the memory node in
the device tree needs to be adjusted. This avoids that the OS will map
and possibly access the reservation.
Add support for setting CONFIG_ARMV7_SECURE_RESERVE_SIZE to carve out
such a region. We only support cutting off memor
Hello Simon,
Am 20.04.2015 20:37, schrieb Simon Glass:
Most callers unpack the structure and pass each member. It seems better to
pass the whole structure instead, as with the C library. Also add an rtc_
prefix.
Signed-off-by: Simon Glass
---
drivers/rtc/at91sam9_rtt.c | 3 +--
drivers/rt
Hello Simon,
Am 20.04.2015 20:37, schrieb Simon Glass:
Change this function name to something more descriptive. Also return a
failure code if it cannot calculate a correct value.
Signed-off-by: Simon Glass
---
common/cmd_date.c| 2 +-
drivers/rtc/date.c | 9 +++--
drivers/rtc/
Not like other x86 chipset, there is no EEPROM for the ethernet
controller on the Intel Quark SoC to retreive the mac address
after power up. With pre-defined mac addresses, U-Boot boots up
and will not show "Error: dwmac.90006000 address not set" message.
Signed-off-by: Bin Meng
---
include/co
Hello Simon,
Am 20.04.2015 20:37, schrieb Simon Glass:
Add driver model versions of the legacy functions to read and write a
single byte register. These are a useful shortcut in many cases.
Signed-off-by: Simon Glass
---
drivers/i2c/i2c-uclass.c | 19 +++
include/i2c.h
Hello Simon,
Am 20.04.2015 20:37, schrieb Simon Glass:
Print a debug() message with the I2C speed is exceeded.
Signed-off-by: Simon Glass
---
drivers/i2c/sandbox_i2c.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c
These is a growing trend to license DT files dual GPL and X11
especially in the Linux community. It allows easier reuse of
device trees for other software projects.
This commit prepares for doing so in U-Boot too, since DT files are
often copied from the kernel to U-Boot.
Signed-off-by: Masahiro
Hi Sjoerd,
On Mon, Apr 13, 2015 at 3:54 PM, Sjoerd Simons
wrote:
> Make the sandbox setup more generic/examplary by including
> config_distro_defaults.h and config_distro_bootcmd.h.
>
> Among other things this makes it easy to test whether images will boot
> though with the standard distro bootcm
2015-04-21 12:47 GMT+09:00 Simon Glass :
> Hi Masahiro,
>
> On 20 April 2015 at 21:42, Masahiro Yamada
> wrote:
>> Hi Simon,
>>
>>
>>
>> 2015-04-16 10:14 GMT+09:00 Simon Glass :
>>> Unfortunately memset() is not always available, so provide a substitute when
>>> needed.
>>>
>>> Signed-off-by: Simo
From: Wang Dongsheng
Base on CPLD changes, so DIU switch channel also need to fix.
Signed-off-by: Wang Dongsheng
---
This patch depends on T1042D4RDB platform code patches.
Priyanka Jain has send T1042D4RDB patches to upstrem, but I cannot
found them in U-boot patchworks. So just comments in th
Hi All,
I want to test Ethernet loop back mode on the Xilinx Zc702 evaluation mode from
u-boot.
I search the u-boot for setting the control register to loopback mode but could
not find one.
Please let me know if any of you have tested the same and any pointers to do
the same. Thanks in advance.
Create a default e820 table with 3 entries which is enough to boot
a Linux kernel.
Signed-off-by: Bin Meng
---
arch/x86/lib/zimage.c | 29 ++---
1 file changed, 22 insertions(+), 7 deletions(-)
diff --git a/arch/x86/lib/zimage.c b/arch/x86/lib/zimage.c
index 566b048..c3
CONFIG_SOCFPGA is only referenced by arch/arm/dts/Makefile.
Replace it with CONFIG_ARCH_SOCFPGA.
Signed-off-by: Masahiro Yamada
---
arch/arm/dts/Makefile| 2 +-
include/configs/socfpga_common.h | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/arm/dts/Makefi
There are lots of unused codes defined in e820.h, clean it up.
Signed-off-by: Bin Meng
---
arch/x86/include/asm/e820.h | 133 +---
1 file changed, 2 insertions(+), 131 deletions(-)
diff --git a/arch/x86/include/asm/e820.h b/arch/x86/include/asm/e820.h
in
Masahiro Yamada (6):
ARM: socfpga: do not add board directory to header search path
ARM: socfpga: remove redundant config.mk
ARM: socfpga: move board select into mach-socfpga/Kconfig
ARM: socfpga: move SoC sources to mach-socfpga
ARM: socfpga: move SoC headers to mach-socfpga/include/m
Currently, CONFIG_SPL_LIBGENERIC_SUPPORT must be defined
to build under lib/ directory for SPL.
This directory contains very basic functions such as memcpy, memset
in lib/string.c, so it should be very useful for all the boards.
Because SPL always enables compiler's garbage collection, this chang
From: Wang Dongsheng
T1042D4RDB CPLD SFPCSR register defined has changed to 0:1 QE_MUX.
There have two bits to control DVI, DFP, PROFIBUS, TMD MUX select.
So we need to update a macro define value to switch to DIU channel.
Signed-off-by: Wang Dongsheng
---
This patch depends on T1042D4RDB plat
On Thu, Apr 16, 2015 at 3:36 PM, Nikolay Dimitrov wrote:
> This is proposal for clamping the MMDC/DDR3 clocks to the maximum supported
> frequencies as per imx6 SOC models, and for dynamically calculating valid
> clock value based on mem_speed.
>
> Currently the code uses impossible values for mem
Hi all,
Sorry, please ignore this patch. The description of my patch is incorrect.
I will change patchworks status.
Sorry again.
Regards,
-Dongsheng
> -Original Message-
> From: Dongsheng Wang [mailto:dongsheng.w...@freescale.com]
> Sent: Tuesday, April 21, 2015 12:09 PM
> To: Sun York
On Thu, Apr 9, 2015 at 10:56 AM, Simon Glass wrote:
> Hi Tim,
>
> On 8 April 2015 at 12:45, Tim Harvey wrote:
>>
>> Add 'fdt_fixup_display' function to fixup device-tree native-mode property
>> of display-timings node to select timings for a specific display.
>> This is useful if a device-tree ha
Hi Michal,
2015-03-16 16:43 GMT+09:00 Masahiro Yamada :
>
>
>
> Masahiro Yamada (4):
> ARM: zynq: pass "-mfpu=neon" only to lowlevel_init.S
> ARM: zynq: move SoC sources to mach-zynq
> ARM: zynq: move SoC headers to mach-zynq/include/mach
> ARM: zynq: rename CONFIG_ZYNQ to CONFIG_ARCH_ZYN
Hi Masahiro,
On 20 April 2015 at 21:42, Masahiro Yamada
wrote:
> Hi Simon,
>
>
>
> 2015-04-16 10:14 GMT+09:00 Simon Glass :
>> Unfortunately memset() is not always available, so provide a substitute when
>> needed.
>>
>> Signed-off-by: Simon Glass
>> ---
>>
>> common/init/global_data.c | 8
Hi Simon,
2015-04-16 10:14 GMT+09:00 Simon Glass :
> Unfortunately memset() is not always available, so provide a substitute when
> needed.
>
> Signed-off-by: Simon Glass
> ---
>
> common/init/global_data.c | 8
> 1 file changed, 8 insertions(+)
>
> diff --git a/common/init/global_dat
Switch to CONFIG_ARCH_INTEGRATOR defined by Kconfig.
Signed-off-by: Masahiro Yamada
Cc: Linus Walleij
---
arch/arm/cpu/arm946es/cpu.c | 4 ++--
include/configs/integrator-common.h | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/arch/arm/cpu/arm946es/cpu.c b/arch/
Select integrator boards by the combination of platform select (AP/CP)
and core module select (CM720T, CM920T, ...).
This allows us to remove CONFIG_SYS_EXTRA_OPTIONS and make Kconfig
much cleaner.
Signed-off-by: Masahiro Yamada
Cc: Linus Walleij
---
arch/arm/mach-integrator/Kconfig|
The board/SoC select menu in arch/arm/Kconfig is still cluttered.
Add ARCH_INTEGRATOR into arch/arm/Kconfig and move the board select
under arch/arm/mach-integrator.
Signed-off-by: Masahiro Yamada
Cc: Linus Walleij
---
arch/arm/Kconfig| 38 ++--
arch/arm/mach-i
This macro is not referenced at all.
Signed-off-by: Masahiro Yamada
Cc: Linus Walleij
---
include/configs/integratorcp.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/configs/integratorcp.h b/include/configs/integratorcp.h
index 7c1ef24..7518b60 100644
--- a/include/configs/integr
arch/arm/cpu/arm720t/start.S includes ,
but the hardware.h headers of ARM720T boards are all empty.
Signed-off-by: Masahiro Yamada
Cc: Linus Walleij
Cc: Stephen Warren
Cc: Tom Warren
---
arch/arm/cpu/arm720t/start.S | 1 -
arch/arm/include/asm/arch-arm720t/hardware.h | 17
Masahiro Yamada (5):
ARM: ARM720t: remove empty asm/arch/hardware.h
ARM: integrator: move board select into mach-integrator/Kconfig
ARM: integrator: split board select into AP/CP select and CM select
ARM: integrator: abolish CONFIG_INTEGRATOR
ARM: integrator: remove CONFIG_ARCH_CINTEGR
Signed-off-by: Masahiro Yamada
---
doc/git-mailrc | 1 +
1 file changed, 1 insertion(+)
diff --git a/doc/git-mailrc b/doc/git-mailrc
index 5f8438e..218349b 100644
--- a/doc/git-mailrc
+++ b/doc/git-mailrc
@@ -64,6 +64,7 @@ alias rmobileuboot, iwamatsu
alias s3csamsung
alia
Our recent trend is to collect SoC files into arch/arm/mach-(SOC).
Signed-off-by: Masahiro Yamada
---
arch/arm/Makefile| 1 +
arch/arm/cpu/armv7/Makefile | 1 -
arch/arm/{cpu/armv7/socfpga => mach-socfpga}/Make
The compiler option "-Iboard/$(VENDOR)/$(BOARD)" just exists here
for iocsr_config.c to be able to include iocsr_config.h.
Use "..." instead of <...> to include a header in the same directory.
Signed-off-by: Masahiro Yamada
---
arch/arm/cpu/armv7/socfpga/config.mk | 3 ---
board/altera/socfpga
Move headers to mach-socfpga as well.
Signed-off-by: Masahiro Yamada
---
.../asm/arch-socfpga => mach-socfpga/include/mach}/clock_manager.h| 0
arch/arm/{include/asm/arch-socfpga => mach-socfpga/include/mach}/dwmmc.h | 0
.../asm/arch-socfpga => mach-socfpga/include/mach}/fpga_manager.
Switch to a more standard way of board select; put the SoC select
into arch/arm/Kconfig and move the board select menu under
arch/arm/mach-socfpga/Kconfig.
Also, consolidate SYS_BOARD, SYS_VENDOR, SYS_SOC, SYS_CONFIG_NAME.
Signed-off-by: Masahiro Yamada
---
arch/arm/Kconfig |
Because all the SOCFPGA boards define CONFIG_SPL_FRAMEWORK
(see include/configs/socfpga_common.h), u-boot.img is automatically
added to the target image list by the top Makefile.
Signed-off-by: Masahiro Yamada
---
arch/arm/cpu/armv7/socfpga/config.mk | 8
1 file changed, 8 deletions(-)
On Wed, 2015-04-08 at 16:44 +0200, Stefan Agner wrote:
> + case ALT_BUF_ONFI:
> + /* Reverse byte since the controller uses big endianness */
> + c = nfc->column % 4;
> + c = nfc->column - c + (3 - c);
These two lines can be simplified to "c = nfc->column ^
The following changes since commit 1733259d25015c28c47990ec11af99b3f62f811c:
Merge branch 'master' of git://git.denx.de/u-boot-video (2015-04-20
09:13:52 -0400)
are available in the git repository at:
git://git.denx.de/u-boot-net.git master
for you to fetch changes up to 523bb66f5a8e2cee22
Hi Bin Meng,
On Tue, Apr 14, 2015 at 9:02 PM, Bin Meng wrote:
> The name "pch_gbe.%x" exceeds the limit of the name in the
> 'struct eth_device'. Rename it as just "pch_gbe".
>
> Signed-off-by: Bin Meng
Applied to u-boot-net/next, thanks!
-Joe
___
U-
On Mon 2015-04-20 23:32:33, Marek Vasut wrote:
> On Monday, April 20, 2015 at 10:27:02 PM, Pavel Machek wrote:
> > On Mon 2015-04-20 21:23:23, Marek Vasut wrote:
> > > On Monday, April 20, 2015 at 02:30:48 PM, Pavel Machek wrote:
> > > > Setting configuration options in header file leads to incosis
On Monday, April 20, 2015 at 10:27:02 PM, Pavel Machek wrote:
> On Mon 2015-04-20 21:23:23, Marek Vasut wrote:
> > On Monday, April 20, 2015 at 02:30:48 PM, Pavel Machek wrote:
> > > Setting configuration options in header file leads to incosistency
> > > between .config user sees, and .config he h
On 20 April 2015 at 05:32, Przemyslaw Marczak wrote:
>
> Uclass API provides a few functions for get/find the device.
> To provide a complete function set of uclass-internal functions,
> for use by the drivers, the function uclass_get_device_tail()
> should be non-static.
>
> Signed-off-by: Przemy
On 20 April 2015 at 05:32, Przemyslaw Marczak wrote:
> The functions:
> - uclass_find_device_by_name()
> - uclass_get_device_by_name()
> searches the required device for the exactly given name.
> This patch, presice this fact for both function's comments.
>
> Signed-off-by: Przemyslaw Marczak
> C
On 20 April 2015 at 05:32, Przemyslaw Marczak wrote:
> This commit introduces simple tests for functions:
> - uclass_find_device_by_name()
> - uclass_get_device_by_name()
>
> Tests added by this commit:
> - Test: dm_test_uclass_devices_find_by_name: for uclass id: UCLASS_TEST_FDT
> * get uclass's
Tom,
The following changes since commit b8d7652c81689a69bc6eaa206cf875bbe632831c:
Merge branch 'buildman' of git://git.denx.de/u-boot-x86 (2015-04-18 19:24:13
-0400)
are available in the git repository at:
git://git.denx.de/u-boot-mpc85xx.git master
for you to fetch changes up to 221fbd22
On 04/15/2015 02:13 PM, Scott Wood wrote:
> U-Boot on this board grew a long time ago past the 384 KiB that
> it reserves for the U-Boot image, before the environment. Thus,
> saveenv overwrites the U-Boot image and bricks the board.
>
> I tried to find out when U-Boot grew beyond this point, b
On 04/07/2015 08:12 PM, Shengzhou Liu wrote:
> CONFIG_PHY_AQ1202 is no longer needed, use CONFIG_PHY_AQUANTIA.
>
> Signed-off-by: Shengzhou Liu
> ---
Applied to mpc85xx master, awaiting upstream.
York
___
U-Boot mailing list
U-Boot@lists.denx.de
htt
On 04/07/2015 06:20 PM, Scott Wood wrote:
> U-Boot does not have system calls (the services it exposes to
> standalone commands use a different mechanism), so the syscall handler
> is dead code. It's also broken code, as it assumes it is located at
> 0xc00 -- while even before the patch to stop
On 04/07/2015 06:20 PM, Scott Wood wrote:
> Booke does not require exception vectors to be located at address zero.
> U-Boot was doing so anyway, simply because that's how it had been done
> on other PPC. The downside of this is that once the OS is loaded to
> address zero, the exception vectors
On 03/27/2015 12:53 AM, Shengzhou Liu wrote:
> Support SODIMM D3XP12081XL10AA 1866MT/s on T2080RDB.
> Enable CONFIG_CMD_MEMTEST as well.
>
> Signed-off-by: Shengzhou Liu
> ---
> v2: refined commit description.
Applied to mpc85xx master, awaiting upstream.
York
On 03/24/2015 12:10 AM, Chunhe Lan wrote:
> Now cortina driver uses macro CONFIG_SYS_CORTINA_FW_IN_NOR
> to define that firmware of cortina driver is stored in the
> nor flash.
>
> Signed-off-by: Chunhe Lan
> ---
Applied to mpc85xx master, awaiting upstream.
York
_
On 03/09/2015 11:21 PM, ying.zh...@freescale.com wrote:
> From: Ying Zhang
>
> The fuse status register provides the values from on-chip
> voltage ID efuses programmed at the factory.
> These values define the voltage requirements for
> the chip. u-boot reads FUSESR and translates the values
>
On 03/09/2015 02:12 AM, Shengzhou Liu wrote:
> T2080 rev1.1 also needs erratum a007186.
>
> Signed-off-by: Shengzhou Liu
> ---
Applied to mpc85xx master, awaiting upstream.
York
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailm
On 03/06/2015 05:10 PM, Alexander Graf wrote:
> QEMU 2.3 changes the address layout of the CCSR map in the PV ppce500 machine
> to reside in higher address space.
>
> Unfortunately, this exposed a glitch in u-boot for ppce500: While providing
> a function to dynamically evaluate the CCSR region'
On 02/13/2015 10:57 AM, Curt Brune wrote:
> According to the MPC8555/MPC8541 reference manual the SS_EN (source
> synchronous enable) bit in the DDR_SDRAM_CLK_CNLT register must be set
> during initialization.
>
> From section 9.4.1.8 of that manual:
>
>Source synchronous enable. This bit fi
On Mon 2015-04-20 21:23:23, Marek Vasut wrote:
> On Monday, April 20, 2015 at 02:30:48 PM, Pavel Machek wrote:
> > Setting configuration options in header file leads to incosistency
> > between .config user sees, and .config he has. What is worse, a lot of
> > compile warnings is presented for any
From: Ulises Cardenas
It is necessary to modify the configuration file for the target
board. It wasn't well documented that to enable any of the secure
boot modes, it is required to add CONFIG_SECURE_BOOT to the board
configuration file.
Also, fixed a typo in the encrypted boot section.
Signed-
On 04/02/2015 02:18 PM, Tom Rini wrote:
On Thu, Apr 02, 2015 at 10:19:11AM -0600, Ulises Cardenas wrote:
Hi,
The aforementioned commit e04916a721a2069fc770412c57974d02e153ad18, causes MX6
boards to break
Configuring CONFIG_SECURE_BOOT makes the u-boot build fail for any MX6 board.
This was r
On Monday, April 20, 2015 at 02:30:48 PM, Pavel Machek wrote:
> Setting configuration options in header file leads to incosistency
> between .config user sees, and .config he has. What is worse, a lot of
> compile warnings is presented for any such config option user sets in
> .config.
Can you ple
Hi,
On 20-04-15 17:39, Simon Glass wrote:
Hi Hans,
On 20 April 2015 at 03:13, Hans de Goede wrote:
After syncing the sunxi dts files with the upstream kernel dm/fdt sunxi
builds would no longer boot.
The problem is that stdout-path is now set like this in the upstream dts
files: stdout-path
When driver model is used for I2C, the real-time clock functionality does
not work (e.g. the 'date' command gives build errors when CONFIG_DM_I2C is
defined). It is possible to work around this by using driver model I2C
functions. But what is really needed is an RTC uclass.
This series:
- renames
Move the definition of struct rtc_time into a separate file so that sandbox
can include it without requiring common.h and the like.
Signed-off-by: Simon Glass
---
include/rtc.h | 26 +-
include/rtc_def.h | 36
2 files changed, 37
Adjust this command so that it supports using driver model for I2C, i.e.
CONFIG_DM_I2C. This will permit it to be used in sandbox also.
Signed-off-by: Simon Glass
---
common/cmd_date.c | 53 +++--
1 file changed, 39 insertions(+), 14 deletions(-)
We don't need to use u8, and if we avoid it, it isn't so much of a problem
that rtc.h includes this header. With this change we can include rtc.h from
sandbox files.
Signed-off-by: Simon Glass
---
include/bcd.h | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/include/
Add a driver which communicates with the sandbox I2C emulation RTC device
and permits it to be used in U-Boot. This driver is very simple - it just
reads and writes selected I2C registers in the device.
Signed-off-by: Simon Glass
---
drivers/rtc/Makefile | 3 ++
drivers/rtc/sandbox_rtc.c
Hi Simon,
On Mon, Apr 20, 2015 at 1:37 PM, Simon Glass wrote:
> When setting the date, support driver model RTC also.
>
> Signed-off-by: Simon Glass
Acked-by: Joe Hershberger
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/l
Rename this function so that it is clear that it is provided by the RTC.
Also return an error when it cannot function as expected. This is unlikely
to occur since it works for dates since 1752 and many RTCs do not support
such old dates. Still it is better to be accurate.
Signed-off-by: Simon Glas
Add some simple tests to verify that the RTC uclass works correctly in
U-Boot.
Signed-off-by: Simon Glass
---
test/dm/Makefile | 1 +
test/dm/rtc.c| 175 +++
test/dm/test.dts | 18 ++
3 files changed, 194 insertions(+)
create mode
Add an emulated RTC device for sandbox, so that the 'date' command can be
used.
Signed-off-by: Simon Glass
---
arch/sandbox/dts/sandbox.dts | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts
index efa2097.
Add a function to read the system time into U-Boot.
Signed-off-by: Simon Glass
---
arch/sandbox/cpu/os.c | 18 ++
include/os.h | 11 +++
2 files changed, 29 insertions(+)
diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
index 4d5f805..e6dd17e 100644
-
Add a uclass for real-time clocks which support getting the current time,
setting it and resetting the chip to a known-working state. Some RTCs have
additional registers which can be used to store settings, so also provide
an interface to these.
Signed-off-by: Simon Glass
---
drivers/rtc/Kconfi
Add a sandbox I2C emulation device which emulates a real-time clock. The
clock works off an offset from the current system time, and supports setting
and getting the clock, as well as access to byte-width regisers in the RTC.
It does not support changing the system time.
This device can be used fo
At present this driver has a few test features. They are needed for running
the driver model unit tests but are confusing and unnecessary if using
sandbox at the command line. Add a flag to enable the test mode, and don't
enable it by default.
Signed-off-by: Simon Glass
---
arch/sandbox/include
Sort these aliases to avoid confusion as to what is present.
Signed-off-by: Simon Glass
---
test/dm/test.dts | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/dm/test.dts b/test/dm/test.dts
index d0c40be..dd6d0ac 100644
--- a/test/dm/test.dts
+++ b/test/dm/test.dt
Most callers unpack the structure and pass each member. It seems better to
pass the whole structure instead, as with the C library. Also add an rtc_
prefix.
Signed-off-by: Simon Glass
---
drivers/rtc/at91sam9_rtt.c | 3 +--
drivers/rtc/bfin_rtc.c | 3 +--
drivers/rtc/date.c | 23 +
This comment should refer to SPI, not serial.
Signed-off-by: Simon Glass
---
include/spi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/spi.h b/include/spi.h
index c58e453..aa0598b 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -612,7 +612,7 @@ int sandbox_spi_
Add driver model versions of the legacy functions to read and write a
single byte register. These are a useful shortcut in many cases.
Signed-off-by: Simon Glass
---
drivers/i2c/i2c-uclass.c | 19 +++
include/i2c.h| 21 +
2 files changed, 40 inser
Change this function name to something more descriptive. Also return a
failure code if it cannot calculate a correct value.
Signed-off-by: Simon Glass
---
common/cmd_date.c| 2 +-
drivers/rtc/date.c | 9 +++--
drivers/rtc/ds1306.c | 2 +-
include/rtc.h| 12 +++-
4 f
Enable real-time-clock support in sandbox.
Signed-off-by: Simon Glass
---
configs/sandbox_defconfig | 1 +
drivers/rtc/Makefile | 2 --
include/configs/sandbox.h | 1 +
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
inde
When setting the date, support driver model RTC also.
Signed-off-by: Simon Glass
---
net/sntp.c | 12
1 file changed, 12 insertions(+)
diff --git a/net/sntp.c b/net/sntp.c
index d7b9e55..9c8ee34 100644
--- a/net/sntp.c
+++ b/net/sntp.c
@@ -7,6 +7,7 @@
#include
#include
+#inc
Adjust the printf() string to avoid a warning on sandbox.
Signed-off-by: Simon Glass
---
common/fdt_support.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 8266bca..6211a82 100644
--- a/common/fdt_support.c
+++ b/common/fdt
Print a debug() message with the I2C speed is exceeded.
Signed-off-by: Simon Glass
---
drivers/i2c/sandbox_i2c.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c.c
index d6adc0f..621caec 100644
--- a/drivers/i2c/sandbox_i
1 - 100 of 163 matches
Mail list logo