Re: [U-Boot] [PATCH 06/11] imx: imx-common: introduce boot auxiliary core

2016-01-17 Thread Peng Fan
Hi Stefan, Sorry for this late reply. On Wed, Jan 13, 2016 at 12:45:05PM -0800, Stefan Agner wrote: >Hi, > >I would like to keep the discussion going and shed some light on the >image format introduced here, see below... > >On 2016-01-07 00:38, Peng Fan wrote: >> Hi Stefan, >> On Wed, Jan 06,

Re: [U-Boot] [PATCH 4/5] i2c: omap24xx: Fix high speed trimming calculation

2016-01-17 Thread Heiko Schocher
Hello Christophe, Am 17.01.2016 um 12:09 schrieb Christophe Ricard: Work based on i2c-omap.c from linux kernel. fsscll/fssclh and hsscll/hssclh was always negative in high speed. i2c high speed frequency start after 400Khz. Signed-off-by: Christophe Ricard ---

[U-Boot] [PATCH v3] Enable snooping on transactions from CAAM block

2016-01-17 Thread Aneesh Bansal
To enable snooping on CAAM transactions following programming is done 1. Enable core snooping (CCI interface, Core is Slave5 on CCI) This setting is also required for making the system coherent 2. CAAM IP lies behind SMMU3 in the system. Configure SMMU3 to do the following: a) Program SCR to

Re: [U-Boot] [PATCH v2 4/6] clk: change the type of return value to long

2016-01-17 Thread Simon Glass
Hi Masahiro, On 12 January 2016 at 21:16, Masahiro Yamada wrote: > The comments in include/clk.h state "or -ve error code" for these > functions, and actually the functions return negative error code > here and there. Returning unsigned value is not suitable. > >

Re: [U-Boot] [PATCH v4 02/19] dm: timer: uclass: add timer init in uclass driver to add timer device

2016-01-17 Thread Simon Glass
Hi Mugunthan, On 16 January 2016 at 09:51, Mugunthan V N wrote: > On Saturday 16 January 2016 10:11 PM, Simon Glass wrote: >> Hi Mugunthan, >> >> On 16 January 2016 at 09:08, Mugunthan V N wrote: >>> On Saturday 16 January 2016 09:33 PM, Mugunthan V N

Re: [U-Boot] [PATCH v2] patman: Add --thread option

2016-01-17 Thread Simon Glass
On 14 January 2016 at 16:12, Simon Glass wrote: > On 14 January 2016 at 12:37, Mateusz Kulikowski > wrote: >> Add option to create threaded series of patches. >> With it, it will be possible to create patch threads like this: >> [PATCH 0/10] Add

Re: [U-Boot] [PATCH v7 4/7] mips: ath79: add serial driver for ar933x SOC

2016-01-17 Thread Simon Glass
On 16 January 2016 at 11:13, Wills Wang wrote: > Reviewed-by: Thomas Chou > > Signed-off-by: Wills Wang > --- > > Changes in v7: > - remove map_physmem for debug port > > Changes in v6: > - Remove wait loop in putc and getc > - Use

Re: [U-Boot] [PATCH v2 5/6] clk: add API to enable clock

2016-01-17 Thread Simon Glass
On 12 January 2016 at 21:16, Masahiro Yamada wrote: > The most basic thing for clock is to enable it, but it is missing > in this uclass. > > Signed-off-by: Masahiro Yamada > Acked-by: Simon Glass > --- > > Changes

Re: [U-Boot] [PATCH 5/5] i2c: omap24xx: Convert fully to DM_I2C

2016-01-17 Thread Heiko Schocher
Hello Christophe, Am 17.01.2016 um 12:09 schrieb Christophe Ricard: For several reasons: - code clarity - DM trends in u-boot ... It is better to make omap24xx_i2c driver 100% DM_I2C based. Signed-off-by: Christophe Ricard --- drivers/i2c/omap24xx_i2c.c | 447

Re: [U-Boot] [PATCH 2/2] Remove the cmd_ prefix from command files

2016-01-17 Thread Stefan Roese
Hi Simon, On 18.01.2016 04:53, Simon Glass wrote: Now that they are in their own directory, we can remove this prefix. This makes it easier to find a file since the prefix does not get in the way. Signed-off-by: Simon Glass Acked-by: Stefan Roese Thanks,

Re: [U-Boot] [PATCH 1/2] Move all command code into its own directory

2016-01-17 Thread Stefan Roese
Hi Simon, On 18.01.2016 04:53, Simon Glass wrote: There are a lot of unrelated files in common, including all of the commands. Moving them into their own directory makes them easier to find and is more logical. Some commands include non-command code, such as cmd_scsi.c. This should be sorted

Re: [U-Boot] [v2] mmc: fsl_esdhc: fix mmc read/write error on T4080

2016-01-17 Thread Yangbo Lu
> -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Friday, January 15, 2016 2:09 AM > To: york sun > Cc: Andy Fleming; Yangbo Lu; U-Boot list > Subject: Re: [U-Boot] [v2] mmc: fsl_esdhc: fix mmc read/write error on > T4080 > > On Thu, Jan 14, 2016 at 05:51:32PM

Re: [U-Boot] [PATCH 2/8] net: Don't call board/cpu_eth_init() with driver model

2016-01-17 Thread Simon Glass
Hi Bin, On 17 January 2016 at 20:25, Bin Meng wrote: > Hi Simon, > > On Mon, Jan 18, 2016 at 5:51 AM, Simon Glass wrote: >> We should avoid weak functions with driver model. Existing boards that use >> driver model don't need them, so let's kill them off.

Re: [U-Boot] [PATCH v2 16/26] dm: tegra: net: Convert tegra boards to driver model for Ethernet

2016-01-17 Thread Simon Glass
Hi Stephen, On 15 January 2016 at 16:53, Stephen Warren wrote: > On 12/13/2015 08:46 PM, Simon Glass wrote: >> >> Applied to u-boot-dm/next. > > > This change has removed/disabled/... PCIe support on at least Jetson TK1. I > haven't checked the other Tegra boards. My

[U-Boot] [PATCH 9/9] ARM: ARMv7: PSCI: ls102xa: put secure text section into OCRAM

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng LS1021 support two secure OCRAM block for trustzone. So move all of secure text section into OCRAM, and not need to use memory anymore. Signed-off-by: Wang Dongsheng --- arch/arm/include/asm/arch-ls102xa/config.h | 2 +-

Re: [U-Boot] [PATCH 00/17] arm: ls1021atwr: Convert to use driver model TSEC driver

2016-01-17 Thread Bin Meng
Joe, York, On Tue, Jan 12, 2016 at 2:41 PM, Bin Meng wrote: > This series adds driver model ethernet support to the Freescale > TSEC ethernet driver and convert ls1021atwr board to use it. > > Enable the support in the ls1021atwr_nor_defconfig and >

Re: [U-Boot] [PATCH 1/2] Move all command code into its own directory

2016-01-17 Thread Heiko Schocher
Hello Simon, Am 18.01.2016 um 04:53 schrieb Simon Glass: There are a lot of unrelated files in common, including all of the commands. Moving them into their own directory makes them easier to find and is more logical. Some commands include non-command code, such as cmd_scsi.c. This should be

Re: [U-Boot] [PATCH v4 2/8] dm: pci: Add a function to write a BAR

2016-01-17 Thread Bin Meng
On Sun, Jan 17, 2016 at 7:44 AM, Simon Glass wrote: > Add a driver-model version of the pci_write_bar32 function so that this is > supported in the new API. > > Signed-off-by: Simon Glass > --- > > Changes in v4: > - Tidy up mentions on control bits in the

Re: [U-Boot] [PATCH 0/3] This series adds support for fastboot related to USB.

2016-01-17 Thread Eddie Cai
Hi Lukasz Have you back to office? Much appreciate if you can review Frank's patch. Thanks Eddie 2015-12-30 17:14 GMT+08:00 Lukasz Majewski : > Hi Frank > >> [PATCH 1/3] Modified the check condition for max packet size of >> ep_in in high speed >> >> [PATCH 2/3] Fixed

[U-Boot] [PATCH 1/2] Move all command code into its own directory

2016-01-17 Thread Simon Glass
There are a lot of unrelated files in common, including all of the commands. Moving them into their own directory makes them easier to find and is more logical. Some commands include non-command code, such as cmd_scsi.c. This should be sorted out at some point so that the function can be enabled

[U-Boot] [PATCH 1/9] ARM: PSCI: Change function ID base value

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Following PSCI v1.0 spec and Linux kernel bindings: U-Boot's choice of base value is arbitrary for v0.1, because it's described in the device tree, so we're choosing to make things easier by using 0x8400 for all PSCI versions. Signed-off-by:

[U-Boot] [PATCH 0/9] ARM: ARMv7: PSCI: add PSCI v1.0 support

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Support PSCI v1.0 for u-boot. Wang Dongsheng (9): ARM: PSCI: Change function ID base value ARM: PSCI: Change PSCI related macro definition style ARM: ARMv7: PSCI: move target PC in each CPU stack no longer is shared ARM: ARMv7: PSCI: Factor

[U-Boot] [PATCH 4/9] ARM: ARMv7: PSCI: Factor out reusable psci_cpu_on_common

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Move save target PC codes to a common function. Signed-off-by: Wang Dongsheng --- arch/arm/cpu/armv7/ls102xa/psci.S | 20 -- arch/arm/cpu/armv7/mx7/psci.S | 3 --- arch/arm/cpu/armv7/psci.S

[U-Boot] [PATCH 5/9] ARM: ARMv7: PSCI: Pass contextID to target CPU

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng To follow PSCI, we need to save a "Context ID" in CPU_ON, and pass it to a CPU when it first enters the OS. Signed-off-by: Wang Dongsheng --- arch/arm/cpu/armv7/nonsec_virt.S | 4 arch/arm/cpu/armv7/psci.S| 28

[U-Boot] [PATCH 3/9] ARM: ARMv7: PSCI: move target PC in each CPU stack no longer is shared

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng All of cpu share the same targetPC space that is unsafe. So move target PC save space into CPU stack. Signed-off-by: Wang Dongsheng --- arch/arm/cpu/armv7/ls102xa/psci.S | 4 +-- arch/arm/cpu/armv7/mx7/psci.S |

Re: [U-Boot] [PATCH 3/8] net: Move common init into a new eth_common.c file

2016-01-17 Thread Bin Meng
On Mon, Jan 18, 2016 at 5:51 AM, Simon Glass wrote: > Only half of the init is actually common. Move that part into a new common > file and call it from driver-model and legacy code. More common functions > will be added in future patches. > > Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 4/8] net: Move environment functions to the common file

2016-01-17 Thread Bin Meng
Hi Simon, On Mon, Jan 18, 2016 at 5:51 AM, Simon Glass wrote: > Move the functions which set ethernet environment variables to the common > file. > > Signed-off-by: Simon Glass > --- > > net/eth.c | 43 --- >

Re: [U-Boot] [PATCH 8/8] net: Probe PCI before looking for ethernet devices

2016-01-17 Thread Bin Meng
Hi Simon, On Mon, Jan 18, 2016 at 5:52 AM, Simon Glass wrote: > Some ethernet devices may be on a PCI bus. Probe the first PCI controller to > find these, so that ethernet init will complete correctly. > > Signed-off-by: Simon Glass > --- > >

Re: [U-Boot] [PATCH 7/8] net: Rename eth.c to eth_lecacy.c

2016-01-17 Thread Bin Meng
On Mon, Jan 18, 2016 at 5:52 AM, Simon Glass wrote: > Rename this file to make it clear it is for the old networking drivers > and not for use with driver model. > > Signed-off-by: Simon Glass > --- > > net/Makefile| 2 +- > net/{eth.c =>

Re: [U-Boot] [PATCH 5/8] net: Move remaining common functions to eth_common.c

2016-01-17 Thread Bin Meng
On Mon, Jan 18, 2016 at 5:51 AM, Simon Glass wrote: > Move eth_current_changed(), eth_set_current(), eth_mac_skip() and > eth_get_name() into the common file. > > Signed-off-by: Simon Glass > --- > > net/eth.c | 108 >

Re: [U-Boot] [PATCH 6/8] net: Move driver-model code into its own file

2016-01-17 Thread Bin Meng
On Mon, Jan 18, 2016 at 5:52 AM, Simon Glass wrote: > Every other uclass is in its own file. Create a new eth-uclass.c file and > move the driver-model code into it, so that networking is consistent. > > Signed-off-by: Simon Glass > --- > > net/Makefile

Re: [U-Boot] [PATCH v4 5/8] dm: x86: Add a driver for Intel PCH7

2016-01-17 Thread Bin Meng
Hi Simon, On Sun, Jan 17, 2016 at 7:44 AM, Simon Glass wrote: > At some point we may need to distinguish between different types of PCHs, > but for existing supported platforms we only need to worry about version 7 > and version 9 bridges. Add a driver for the PCH7. > >

Re: [U-Boot] [PATCH v4 6/8] dm: x86: Add a driver for Intel PCH9

2016-01-17 Thread Bin Meng
On Sun, Jan 17, 2016 at 7:44 AM, Simon Glass wrote: > At some point we may need to distinguish between different types of PCHs, > but for existing supported platforms we only need to worry about version 7 > and version 9 bridges. Add a driver for the PCH9. > > Signed-off-by:

Re: [U-Boot] [PATCH v4 4/8] dm: Expand the uclass for Platform Controller Hubs (PCH)

2016-01-17 Thread Bin Meng
On Sun, Jan 17, 2016 at 7:44 AM, Simon Glass wrote: > A Platform Controller Hub is an Intel concept - it is like the peripherals > on an SoC and is often in a separate chip from the CPU. The chip is typically > found on the first PCI bus and integrates multiple devices. > > We

Re: [U-Boot] [PATCH 06/11] imx: imx-common: introduce boot auxiliary core

2016-01-17 Thread Peng Fan
Hi Simon, Sorry for this late reply. On Thu, Jan 14, 2016 at 10:17:20AM -0700, Simon Glass wrote: >+Bin > >Hi Peng, > >On 4 January 2016 at 22:56, Peng Fan wrote: >> From: Peng Fan >> >> To boot a auxiliary core in asymmetric multicore system, introduce

Re: [U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-17 Thread Bin Meng
On Sun, Jan 17, 2016 at 10:44 AM, Tom Rini wrote: > With gcc-5.3 we get a warning for using switch() on a bool type. > Rewrite these sections as if/else and update the one section that was > using 1/0 instead of true/false. > > Cc: Simon Glass > Cc:

Re: [U-Boot] [PATCH 3/5] i2c: omap24xx: Remove unused I2C_WAIT macro

2016-01-17 Thread Heiko Schocher
Hello Christophe, Am 17.01.2016 um 12:09 schrieb Christophe Ricard: I2C_WAIT macro is not used in the code. 200 is bound to a fixed 10 Hz i2c speed based on an existing formula: ( 1000 / speed ) * 2 where speed = 100 000. Signed-off-by: Christophe Ricard

Re: [U-Boot] [PATCH 2/5] i2c: omap24xx: Fix waitdelay value for I2C HS

2016-01-17 Thread Heiko Schocher
Hello Christophe, Am 17.01.2016 um 12:09 schrieb Christophe Ricard: After several testings and experiment, it appears that waitdelay calculation formula was giving different behavior on the i2c status registers. Experiment shows waitdelay needs to be extended at least 4 times to get proper

Re: [U-Boot] [PATCH 2/8] net: Don't call board/cpu_eth_init() with driver model

2016-01-17 Thread Bin Meng
Hi Simon, On Mon, Jan 18, 2016 at 11:58 AM, Simon Glass wrote: > Hi Bin, > > On 17 January 2016 at 20:25, Bin Meng wrote: >> Hi Simon, >> >> On Mon, Jan 18, 2016 at 5:51 AM, Simon Glass wrote: >>> We should avoid weak functions with

Re: [U-Boot] [PATCH 2/2] Remove the cmd_ prefix from command files

2016-01-17 Thread Bin Meng
On Mon, Jan 18, 2016 at 11:53 AM, Simon Glass wrote: > Now that they are in their own directory, we can remove this prefix. > This makes it easier to find a file since the prefix does not get in the > way. > > Signed-off-by: Simon Glass > --- > >

Re: [U-Boot] [PATCH 1/2] Move all command code into its own directory

2016-01-17 Thread Bin Meng
On Mon, Jan 18, 2016 at 11:53 AM, Simon Glass wrote: > There are a lot of unrelated files in common, including all of the commands. > Moving them into their own directory makes them easier to find and is more > logical. > > Some commands include non-command code, such as

[U-Boot] [PATCH 7/9] ARM: ARMv7: PSCI: Add PSCI 1.0 version support

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Add the PSCI v1.0 API to U-Boot: PSCI_VERSION, AFFINITY_INFO, MIGRATE_INFO_TYPE, MIGRATE_INFO_UP_CPU, SYSTEM_OFF, SYSTEM_RESET, PSCI_FEATURES, SYSTEM_SUSPEND. In order to be compatible with PSCI v0.1 version, introduce

[U-Boot] [PATCH 8/9] ARM: ARMv7: PSCI: ls102xa: add psci functions implemention

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Based on PSCI v1.0, implement interface for ls102xa SoC: psci_version, psci_features, psci_cpu_suspend, psci_affinity_info, psci_system_reset, psci_system_off. Tested on LS1021aQDS, LS1021aTWR. Signed-off-by: Wang Dongsheng

[U-Boot] [PATCH 2/9] ARM: PSCI: Change PSCI related macro definition style

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng The macro style changes just to keep the style of the macro concise and consistent, and style mimicking linux. Signed-off-by: Wang Dongsheng --- arch/arm/cpu/armv7/ls102xa/psci.S | 2 +- arch/arm/cpu/armv7/psci.S

[U-Boot] [PATCH 6/9] ARM: ARMv7: PSCI: ls102xa: Verify CPU ID for CPU_ON

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Add validation code to make sure target cpu ID is valid. Signed-off-by: Wang Dongsheng --- arch/arm/cpu/armv7/ls102xa/psci.S | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git

Re: [U-Boot] [PATCH 2/2] Remove the cmd_ prefix from command files

2016-01-17 Thread Heiko Schocher
Hello Simon, Am 18.01.2016 um 04:53 schrieb Simon Glass: Now that they are in their own directory, we can remove this prefix. This makes it easier to find a file since the prefix does not get in the way. Signed-off-by: Simon Glass --- Thanks! Reviewed-by: Heiko Schocher

Re: [U-Boot] [PATCH v4 8/8] dm: x86: spi: Convert ICH SPI driver to driver model PCI API

2016-01-17 Thread Bin Meng
Hi Simon, On Sun, Jan 17, 2016 at 7:44 AM, Simon Glass wrote: > At present this SPI driver works by searching the PCI buses for its > peripheral. It also uses the legacy PCI API. > > In addition the driver has code to determine the type of Intel PCH that is > used (version 7

Re: [U-Boot] [PATCH 2/8] net: Don't call board/cpu_eth_init() with driver model

2016-01-17 Thread Bin Meng
Hi Simon, On Mon, Jan 18, 2016 at 5:51 AM, Simon Glass wrote: > We should avoid weak functions with driver model. Existing boards that use > driver model don't need them, so let's kill them off. > > Signed-off-by: Simon Glass > --- > > net/eth.c | 4 ++-- >

[U-Boot] [PATCH 2/2] Remove the cmd_ prefix from command files

2016-01-17 Thread Simon Glass
Now that they are in their own directory, we can remove this prefix. This makes it easier to find a file since the prefix does not get in the way. Signed-off-by: Simon Glass --- cmd/Makefile | 258 ++--- cmd/{cmd_aes.c =>

[U-Boot] [PATCH 0/2] Move commands into their own directory

2016-01-17 Thread Simon Glass
This series makes a start at cleaning up the common directory. At present it includes any code that is not board-specific, a library or a driver. This means there are a lot of files, including all the commands. Moving the command files into their own directory makes them easier to find and is

[U-Boot] [PATCH v2] ARM: Disable "DISCARD" for secure section if CONFIG_ARMV7_SECURE_BASE isn't defined

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng "DISCARD" will remove ._secure.text relocate, but PSCI framework has already used some absolute address those need to relocate. Use readelf -t -r u-boot show us: .__secure_start addr: 601408e4 .__secure_end addr: 60141460 60141140

Re: [U-Boot] [PATCH 1/5] i2c: omap24xx: Convert to DM

2016-01-17 Thread Heiko Schocher
Hello Christophe, Am 17.01.2016 um 12:09 schrieb Christophe Ricard: Convert omap24xx_i2c driver to DM Signed-off-by: Christophe Ricard --- drivers/i2c/Kconfig| 8 ++ drivers/i2c/omap24xx_i2c.c | 280 +++-- 2

Re: [U-Boot] [PATCH 05/18] dm: video: Add a video uclass

2016-01-17 Thread Anatolij Gustschin
Hi Simon, Some minor comments below. Otherwise Acked-by: Anatolij Gustschin On Tue, 5 Jan 2016 09:31:01 -0700 Simon Glass wrote: ... > +config VIDEO_BPP8 > + bool "Support 8-bit-per-pixel displays" > + depends on DM_VIDEO > + default y if

Re: [U-Boot] Kconfig bug (optional choice deselected by following option)

2016-01-17 Thread Masahiro Yamada
Hi Mateusz, (CCing linux-kbuild, which I think the best place to discuss this topic) I think "default n" in the choice entry is weird because the choice is not boolean. Without it, the weird thing you saw did not happen on my box. Anyway, I'd like Kconfig to say something if it is really a

Re: [U-Boot] [PATCH 0/4] ARM: sheevaplug: misc fixes

2016-01-17 Thread Luka Perkov
On Sun, Jan 17, 2016 at 06:23:41PM +0100, Peter Korsgaard wrote: > The following patch series fixes a number of issues I noticed while updating > a sheevaplug from 2013.10 to 2016.01: > > Peter Korsgaard (4): > ARM: sheevaplug: unbreak default environment > ARM: sheevaplug: unbreak

Re: [U-Boot] [PATCH 06/18] dm: lcd: Avoid using the lcd.h header file with driver model

2016-01-17 Thread Anatolij Gustschin
On Tue, 5 Jan 2016 09:31:02 -0700 Simon Glass wrote: > The LCD functions and definitions are not used with the driver model video > uclass. When all boards are converted over we can remove the file. For now, > use #ifdef to omit the contents. > > Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 07/18] dm: video: Add a uclass for the text console

2016-01-17 Thread Anatolij Gustschin
On Tue, 5 Jan 2016 09:31:03 -0700 Simon Glass wrote: ... > +/** > + * vidconsole_put_char() - Output a character to the current console position > + * > + * Outputs a character to the console and advances the cursor. This function > + * handles wrapping to new lines and

[U-Boot] [PATCH 3/6] dm: x86: Add a common PIRQ init function

2016-01-17 Thread Simon Glass
Most x86 interrupt drivers will want to use the standard PIRQ routing and table setup. Put this code in a common function so it can be used by those drivers that want it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/cpu/irq.c | 7

[U-Boot] [PATCH 1/6] dm: x86: Create a driver for x86 interrupts

2016-01-17 Thread Simon Glass
It seems likely that at some point we will want a generic interrupt uclass. But this is a big undertaking as it involves unifying code across multiple architectures. As a first step, create a simple IRQ uclass and a driver for x86. This can be generalised later as required. Adjust pirq_init() to

[U-Boot] [PATCH 0/6] dm: x86: Remove pirq_init() and cpu_irq_init()

2016-01-17 Thread Simon Glass
This series adds an interrupt driver for x86. Since different platforms can implement this in their own way, we no-longer need the platform-specific weak function. We can also dispense with the arch_misc_init() call in some cases. Simon Glass (6): dm: x86: Create a driver for x86 interrupts

Re: [U-Boot] [PATCH 09/18] dm: video: Add a driver for a rotated text console

2016-01-17 Thread Anatolij Gustschin
On Tue, 5 Jan 2016 09:31:05 -0700 Simon Glass wrote: > Sometimes the console must be rotated. Add a driver which supports rotating > the text clockwise to 90, 180 and 270 degrees. This can support devices > where the display is rotated for mechanical reasons. > >

Re: [U-Boot] Kconfig bug (optional choice deselected by following option)

2016-01-17 Thread Masahiro Yamada
I retract my previous replay. With/without the "default n" in the choice menu, I confirmed the problem happened (in the latest Linux as well as U-Boot). I hope somebody follows up... 2016-01-18 5:29 GMT+09:00 Masahiro Yamada : > Hi Mateusz, > (CCing

[U-Boot] [PATCH 4/6] dm: x86: quark: Add an interrupt driver

2016-01-17 Thread Simon Glass
Add a driver for interrupts on quark and move the code currently in cpu_irq_init() into its probe() method. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/cpu/quark/Makefile | 2 +- arch/x86/cpu/quark/irq.c| 49

[U-Boot] [PATCH 2/6] dm: x86: Set up interrupt routing from interrupt_init()

2016-01-17 Thread Simon Glass
At present interrupt routing is set up from arch_misc_init(). We can do it a little later instead, in interrupt_init(). This removes the manual pirq_init() call. Where the platform does not have an interrupt router defined in its device tree, no error is generated. Some platforms do not have

[U-Boot] [PATCH 6/6] dm: x86: Drop the weak cpu_irq_init() function

2016-01-17 Thread Simon Glass
There are no callers now. Platforms which need to set up interrupts their own way can implement an interrupt driver. Drop this function. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/cpu/irq.c | 7 ---

[U-Boot] [PATCH 5/6] dm: x86: queensbay: Add an interrupt driver

2016-01-17 Thread Simon Glass
Add a driver for interrupts on queensbay and move the code currently in cpu_irq_init() into its probe() method. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/cpu/queensbay/Makefile | 2 +- arch/x86/cpu/queensbay/irq.c| 65

[U-Boot] Banan Pro (ahci-sunxi) SATA port stopped working after switching to U-Boot v2016.01

2016-01-17 Thread Markus Baier
Hello, tonight I switched to the new U-Boot v2016.01 on my Banana Pro system. I compiled u-boot, like I did with all the working versions before, with: make Bananapro_defconfig make But with the new U-Boot installed the SATA Port did not work anymore. The Kernel is the same 4.0.9-gentoo as I

Re: [U-Boot] Kconfig bug (optional choice deselected by following option)

2016-01-17 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi All, Just a small update from my side; I used bisect-foo and offending commit (@Linux) seems to be: commit 5d09598d488f081e3be23f885ed65cbbe2d073b5 Author: Arnaud Lacombe Date: Mon Jan 23 17:29:05 2012 -0500

[U-Boot] [PATCH 8/8] net: Probe PCI before looking for ethernet devices

2016-01-17 Thread Simon Glass
Some ethernet devices may be on a PCI bus. Probe the first PCI controller to find these, so that ethernet init will complete correctly. Signed-off-by: Simon Glass --- net/eth-uclass.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/eth-uclass.c

[U-Boot] [PATCH 4/8] net: Move environment functions to the common file

2016-01-17 Thread Simon Glass
Move the functions which set ethernet environment variables to the common file. Signed-off-by: Simon Glass --- net/eth.c | 43 --- net/eth_common.c | 43 +++ net/eth_internal.h | 16

[U-Boot] [PATCH 5/8] net: Move remaining common functions to eth_common.c

2016-01-17 Thread Simon Glass
Move eth_current_changed(), eth_set_current(), eth_mac_skip() and eth_get_name() into the common file. Signed-off-by: Simon Glass --- net/eth.c | 108 ++--- net/eth_common.c | 100

[U-Boot] [PATCH 6/8] net: Move driver-model code into its own file

2016-01-17 Thread Simon Glass
Every other uclass is in its own file. Create a new eth-uclass.c file and move the driver-model code into it, so that networking is consistent. Signed-off-by: Simon Glass --- net/Makefile | 4 + net/eth-uclass.c | 549

[U-Boot] [PATCH 2/8] net: Don't call board/cpu_eth_init() with driver model

2016-01-17 Thread Simon Glass
We should avoid weak functions with driver model. Existing boards that use driver model don't need them, so let's kill them off. Signed-off-by: Simon Glass --- net/eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/eth.c b/net/eth.c index

[U-Boot] [PATCH 3/8] net: Move common init into a new eth_common.c file

2016-01-17 Thread Simon Glass
Only half of the init is actually common. Move that part into a new common file and call it from driver-model and legacy code. More common functions will be added in future patches. Signed-off-by: Simon Glass --- net/Makefile | 1 + net/eth.c | 42

[U-Boot] [PATCH 0/8] net: Split out the Ethernet uclass into its own file

2016-01-17 Thread Simon Glass
Every other uclass is in its own file. It makes sense to put the Ethernet uclass code into its own file too. The result is less code in each file, and it becomes easier to see which code is related to driver model. This series creates a new common file to hold the common code, moves the

[U-Boot] [PATCH 7/8] net: Rename eth.c to eth_lecacy.c

2016-01-17 Thread Simon Glass
Rename this file to make it clear it is for the old networking drivers and not for use with driver model. Signed-off-by: Simon Glass --- net/Makefile| 2 +- net/{eth.c => eth_legacy.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename net/{eth.c =>

[U-Boot] [PATCH 1/8] tegra: Report errors from PCI init

2016-01-17 Thread Simon Glass
This function can fail, so be sure to report any errors that occur. Signed-off-by: Simon Glass --- drivers/pci/pci_tegra.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pci_tegra.c b/drivers/pci/pci_tegra.c index 5a7fefe..5dadf6f 100644

Re: [U-Boot] [PATCH 08/18] dm: video: Add a 'normal' text console driver

2016-01-17 Thread Anatolij Gustschin
On Tue, 5 Jan 2016 09:31:04 -0700 Simon Glass wrote: > Most of the time we don't need to rotate the display so a simple font > blitting feature is enough for our purposes. Add a simple driver which > supports this function. It provides text output on the console using > the

[U-Boot] [PATCH v2 12/55] x86: ivybridge: Move LPC and PCH init into northbridge probe()

2016-01-17 Thread Simon Glass
Move more code into the northbridge probe() function. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/ivybridge/early_init.c | 47 +++-- 1 file changed, 24 insertions(+), 23

[U-Boot] [PATCH v2 13/55] x86: ivybridge: Rename lpc_init() to lpc_init_extra()

2016-01-17 Thread Simon Glass
In preparation for adding an init() method to the LPC uclass, rename this existing function so that it will not conflict. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/ivybridge/bd82x6x.c | 2 +- arch/x86/cpu/ivybridge/lpc.c | 2 +-

[U-Boot] [PATCH v2 18/55] x86: ivybridge: Use common CPU init code

2016-01-17 Thread Simon Glass
The existing ivybridge code predates the normal multi-core CPU init, and it is not used. Remove it and add CPU nodes to the device tree so that all four CPUs are set up. Also enable the 'cpu' command. Signed-off-by: Simon Glass Reviewed-by: Bin Meng ---

[U-Boot] [PATCH v2 14/55] x86: ivybridge: Probe the LPC in CPU init

2016-01-17 Thread Simon Glass
We can drop the explicit probe of the PCH since the LPC is a child device and this will happen automatically. Signed-off-by: Simon Glass --- Changes in v2: - Drop explicit PCH probe - Drop LPC init method - Rename patch from 'Add an init() method for the bd82x6x LPC'

[U-Boot] [PATCH v2 23/55] x86: Make x86_init_cpus() static

2016-01-17 Thread Simon Glass
There are no other implementations of this function, and boards that need it can implement a CPU driver. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Fix 'baords' typo in the commit message arch/x86/cpu/cpu.c| 2

[U-Boot] [PATCH v2 20/55] x86: ivybridge: Set up the thermal target correctly

2016-01-17 Thread Simon Glass
This uses a non-existent node at present. It should use the first CPU node. The referenced property does not exist (the correct value is the default of 0), but this allows the follow-on init to complete. Signed-off-by: Simon Glass Reviewed-by: Bin Meng ---

[U-Boot] [PATCH v2 22/55] x86: ivybridge: Move early init code into northbridge.c

2016-01-17 Thread Simon Glass
This code is now part of the northbridge driver, so move it into the same place. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/ivybridge/Makefile | 1 - arch/x86/cpu/ivybridge/early_init.c | 81

[U-Boot] [PATCH v2 54/55] x86: ivybridge: Use syscon for the GMA device

2016-01-17 Thread Simon Glass
Until we have a proper video uclass we can use syscon to handle the GMA device, and avoid the special device tree and PCI searching. Update the code to work this way. Reviewed-by: Bin Meng Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 48/55] x86: ivybridge: Move code from pch.c to bd82x6x.c

2016-01-17 Thread Simon Glass
This code relates to the PCH, so we should move it into the same file. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/ivybridge/Makefile | 1 - arch/x86/cpu/ivybridge/bd82x6x.c | 129

[U-Boot] [PATCH v2 41/55] x86: ivybridge: Convert enable_usb_bar() to use DM PCI API

2016-01-17 Thread Simon Glass
Convert this function over to use the driver model PCI API. In this case we want to avoid using the real PCI devices since they have not yet been probed. Instead, write directly to their PCI configuration address. Signed-off-by: Simon Glass Reviewed-by: Bin Meng

[U-Boot] [PATCH v2 29/55] ahci: Add a disk-controller uclass

2016-01-17 Thread Simon Glass
Add a uclass ID for a disk controller. This can be used by AHCI/SATA or other controller types. There are no operations and no interface so far, but it is possible to probe a SATA device. Signed-off-by: Simon Glass --- Changes in v2: - Rename the AHCI uclass to DISK

[U-Boot] [PATCH v2 38/55] x86: Enable DM_USB for link and panther

2016-01-17 Thread Simon Glass
Move these two boards to use driver model for USB. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None configs/chromebook_link_defconfig | 2 ++ configs/chromebox_panther_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff

Re: [U-Boot] [PATCH 14/18] sandbox: Move CONFIG_VIDEO_SANDBOX_SDL to Kconfig

2016-01-17 Thread Anatolij Gustschin
On Tue, 5 Jan 2016 09:31:10 -0700 Simon Glass wrote: > Move this option to Kconfig. This is quite simple as only sandbox uses the > driver. > > Signed-off-by: Simon Glass > --- > > configs/sandbox_defconfig | 3 ++- > drivers/video/Kconfig | 9

Re: [U-Boot] [PATCH 17/18] dm: video: test: Add tests for rotated consoles

2016-01-17 Thread Anatolij Gustschin
On Tue, 5 Jan 2016 09:31:13 -0700 Simon Glass wrote: > Test that text is displayed correctly when the console is rotated. > > Signed-off-by: Simon Glass > --- > > configs/sandbox_defconfig | 1 + > test/dm/video.c | 27

[U-Boot] [PATCH v2 49/55] x86: ivybridge: Sort out the calls to bridge_silicon_revision()

2016-01-17 Thread Simon Glass
This function is called all over the place. Convert it use the driver model PCI API, and rationalise the calls. Signed-off-by: Simon Glass --- Changes in v2: - Fix incorrect bits in bridge_silicon_revision() comment arch/x86/cpu/ivybridge/gma.c | 33

[U-Boot] [PATCH v2 50/55] x86: ivybridge: Drop special EHCI init

2016-01-17 Thread Simon Glass
This is not needed. On reset wake-on-disconnect is already set. It may a problem during a soft reset or resume, but for now it does not seem important. Also drop the command register update since PCI auto-config does it for us. Signed-off-by: Simon Glass --- Changes in v2: -

[U-Boot] [PATCH v2 45/55] x86: ivybridge: Convert SDRAM init to use driver model

2016-01-17 Thread Simon Glass
SDRAM init needs access to the Northbridge controller and the Intel Management Engine device. Add the latter to the device tree and convert all of this code to driver model. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None

[U-Boot] [PATCH v2 34/55] x86: ivybridge: Move lpc_enable() into gma.c

2016-01-17 Thread Simon Glass
This graphics init code is best placed in the gma init code. Move the code and drop the function. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/ivybridge/bd82x6x.c | 1 - arch/x86/cpu/ivybridge/gma.c

[U-Boot] [PATCH v2 51/55] x86: ivybridge: Drop XHCI support

2016-01-17 Thread Simon Glass
This is not used on link which is the only ivybridge board. Drop this code. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/ivybridge/Makefile | 1 - arch/x86/cpu/ivybridge/usb_xhci.c | 32

[U-Boot] [PATCH v2 52/55] x86: ivybridge: Drop the SMM-locking code

2016-01-17 Thread Simon Glass
U-Boot does not support SMM yet, so we can drop this code. It is easy to bring back when needed. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/ivybridge/lpc.c | 57 1

Re: [U-Boot] [PATCH 11/18] dm: common: Add memory reservation for the video uclass

2016-01-17 Thread Anatolij Gustschin
On Tue, 5 Jan 2016 09:31:07 -0700 Simon Glass wrote: > Before relocation we need to reserve memory for the video driver frame > buffers so that they can use this memory when they start up (after > relocation). Add a call to the uclass to permit this. > > The current top and

Re: [U-Boot] [PATCH 18/18] dm: video: test: Test that bitmap display works correctly

2016-01-17 Thread Anatolij Gustschin
On Tue, 5 Jan 2016 09:31:14 -0700 Simon Glass wrote: > Add a test for the 'bmp' command. Test both the uncompressed and compressed > versions of the file, since they use different code paths. > > Signed-off-by: Simon Glass > --- > >

  1   2   >