This patch adds driver support for the Realtek RTL8152B/RTL8153 USB
network adapters.
Signed-off-by: Ted Chen
[swarren, fixed a few compiler warnings]
[swarren, with permission, converted license header to SPDX]
[swarren, removed printf() spew during probe()]
Signed-off-by: Stephen Warren
---
d
On 01/13/2016 08:26 PM, Tom Rini wrote:
> On Tue, Jan 12, 2016 at 03:48:24PM +0530, Purna Chandra Mandal wrote:
>
>> This adds support for Microchip PIC32MZ[DA] StarterKit board
>> based on a PIC32MZ[DA] family of microcontroller.
>>
>> Signed-off-by: Purna Chandra Mandal
> [snip]
>> diff --git a/
On 01/14/2016 01:39 AM, Simon Glass wrote:
> Hi Purna,
>
> On 12 January 2016 at 03:18, Purna Chandra Mandal
> wrote:
>> From: Paul Thacker
>>
>> This adds PIC32 UART controller support based on driver model.
>>
>> Signed-off-by: Paul Thacker
>> Signed-off-by: Purna Chandra Mandal
>>
>>
>> ---
On 01/13/2016 08:25 PM, Tom Rini wrote:
> On Tue, Jan 12, 2016 at 03:48:18PM +0530, Purna Chandra Mandal wrote:
>
>> PIC32 clock module consists of multiple oscillators, PLLs, mutiplexers
>> and dividers capable of supplying clock to various controllers
>> on or off-chip.
> [snip]
>> include/dt-b
Hello Simon,
Am 14.01.2016 um 00:25 schrieb Simon Glass:
Since I2C muxes are seldom needed in SPL, and the code for this increases
the size somewhat, add a separate option to enable I2C muxes for SPL.
Signed-off-by: Simon Glass
---
drivers/i2c/Makefile | 4 ++--
drivers/i2c/muxes/Kco
On 01/13/2016 08:19 PM, Daniel Schwierzeck wrote:
> Am Dienstag, den 12.01.2016, 15:48 +0530 schrieb Purna Chandra Mandal:
>> Add Microchip PIC32MZ[DA] SoC family support.
>>
>> Signed-off-by: Purna Chandra Mandal
>>
>> ---
>>
>> Changes in v3:
>> - drop forcing CONFIG_MIPS_BOOT_* selection in ma
Hello Simon,
Am 14.01.2016 um 00:25 schrieb Simon Glass:
We can use the new clk_get_by_index() function to get the correct clock.
Signed-off-by: Simon Glass
---
drivers/i2c/rk_i2c.c | 37 +
1 file changed, 21 insertions(+), 16 deletions(-)
Thanks!
Ack
Hi Simon,
2016-01-08 12:33 GMT+09:00 Simon Glass :
> Hi Masahiro,
>
> On 17 December 2015 at 22:17, Masahiro Yamada
> wrote:
>> Currently, this function returns wrong size if "bootm_low" is defined,
>> but "bootm_size" is not.
>>
>> Signed-off-by: Masahiro Yamada
>> ---
>>
>> common/image.c |
On 01/13/2016 07:33 PM, Daniel Schwierzeck wrote:
> Am Mittwoch, den 13.01.2016, 14:49 +0100 schrieb Daniel Schwierzeck:
>> Am Dienstag, den 12.01.2016, 15:48 +0530 schrieb Purna Chandra
>> Mandal:
>>> From: Paul Thacker
>>>
>>> This adds PIC32 UART controller support based on driver model.
>>>
>
On 01/13/2016 07:38 PM, Daniel Schwierzeck wrote:
> Am Mittwoch, den 13.01.2016, 14:46 +0100 schrieb Daniel Schwierzeck:
>> Am Dienstag, den 12.01.2016, 15:48 +0530 schrieb Purna Chandra
>> Mandal:
>>> In PIC32 GPIO controller is part of PIC32 pin controller.
>>> PIC32 has ten independently progra
On Thursday, January 14, 2016 at 06:22:07 AM, Ted Chen wrote:
> This patch adds driver support for the Realtek RTL8152B/RTL8153 USB
> network adapters.
[...]
> +static void rtl8152_wait_fifo_empty(struct r8152 *tp)
> +{
> + int i;
> + u32 ocp_data;
> +
> + for (i = 0; i < FIFO_EMPTY_T
On 01/13/2016 07:08 PM, Daniel Schwierzeck wrote:
> Am Dienstag, den 12.01.2016, 15:48 +0530 schrieb Purna Chandra Mandal:
>> PIC32 clock module consists of multiple oscillators, PLLs,
>> mutiplexers
>> and dividers capable of supplying clock to various controllers
>> on or off-chip.
>>
>> Signed-
On 01/12/2016 05:59 PM, Daniel Schwierzeck wrote:
> 2016-01-12 11:18 GMT+01:00 Purna Chandra Mandal :
>> Signed-off-by: Purna Chandra Mandal
>> ---
>>
>> Changes in v3: None
>> Changes in v2: None
>>
>> arch/mips/cpu/start.S | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/arch/mips
On Thursday, January 14, 2016 at 05:37:18 AM, Ted Chen wrote:
> This patch adds driver support for the Realtek RTL8152B/RTL8153 USB
> network adapters.
>
> Signed-off-by: Ted Chen
> [swarren, fixed a few compiler warnings]
> [swarren, with permission, converted license header to SPDX]
> [swarren,
On Thursday, January 14, 2016 at 03:52:27 AM, Eric Nelson wrote:
> On 01/13/2016 07:50 PM, Marek Vasut wrote:
> > On Thursday, January 14, 2016 at 03:37:09 AM, Eric Nelson wrote:
> >> Hi Marek,
> >
> > Hi!
> >
> >> On 01/13/2016 07:10 PM, Marek Vasut wrote:
> >>> On Tuesday, December 22, 2015 at
> -Original Message-
> From: Scott Wood [mailto:o...@buserror.net]
> Sent: Thursday, January 14, 2016 8:21 AM
> To: Qianyu Gong ; u-boot@lists.denx.de
> Cc: b07...@freescale.com; b48...@freescale.com;
> wenbin.s...@freescale.com; Mingkai Hu
> Subject: Re: [U-Boot] [Patch V3 3/3] armv8/ls1
Add myself as custodian for the Marvell git repository. Additionally,
add the mach-mvebu directory to the list of files / directories. And
add Armada XP & Armada 38x to the title (not only kirkwood).
Signed-off-by: Stefan Roese
Cc: Prafulla Wadaskar
Cc: Luka Perkov
Cc: Tom Rini
---
MAINTAINER
This adds driver model support to lpuart serial driver.
Signed-off-by: Bin Meng
---
Changes in v2:
- Split to use two separate U_BOOT_DRIVER()
doc/driver-model/serial-howto.txt | 1 -
drivers/serial/serial_lpuart.c| 167 ++
2 files changed, 167 insert
Clean up the driver codes a little bit, by:
- Use tab instead of space in the macro defines
- Use single line comment whenever possible
- Fix insertion of blank lines
Signed-off-by: Bin Meng
Reviewed-by: Simon Glass
---
Changes in v2: None
drivers/serial/serial_lpuart.c | 35 +++--
LPUART is seen on Freescale VF610 and QorIQ Layerscape devices.
Create a Kconfig option and move it to defconfig for all boards
that have this serial driver.
Signed-off-by: Bin Meng
Reviewed-by: Simon Glass
---
Changes in v2: None
configs/colibri_vf_defconfig | 1 +
configs/co
Move /chosen node out of the board device tree.
Signed-off-by: Bin Meng
---
Changes in v2:
- New patch to split off board device tree
arch/arm/dts/Makefile | 2 +-
arch/arm/dts/ls1021a-twr-duart.dts | 16
arch/arm/dts/{ls1021a-twr
Create internal routines which take lpuart's register base as
a parameter, in preparation for driver model conversion.
Signed-off-by: Bin Meng
Reviewed-by: Simon Glass
---
Changes in v2:
- Add missing 'base' parameter in the call to _lpuart_serial_tstc()
- Change internal routines' parameter '
Convert ls1021atwr_nor_lpuart to driver model support. As a start,
enable lpuart serial port driver.
Signed-off-by: Bin Meng
Reviewed-by: Simon Glass
---
Changes in v2:
- Create a ls1021a-twr-lpuart.dts for ls1021atwr_nor_lpuart_defconfig
arch/arm/dts/Makefile | 2 +-
arch
This reverts commit 3e303f748cf57fb23e8ec95ab7eac0074be50e2b.
The fix up in the /aliases node does not work under the following
scenarios:
- Not every non-DM serial driver was written to have a driver name
that conforms the format of "serial%d" or "eserial%d".
- With driver model serial, the std
There is no need to go through serial driver subsystem, instead
call the driver's setbrg and putc routines directly.
Signed-off-by: Bin Meng
Reviewed-by: Simon Glass
---
Changes in v2: None
drivers/serial/serial_lpuart.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --gi
This series converts Freescale LS1021A-TWR board to driver model.
- Enable ns16550 serial driver on ls1021atwr_nor configuration
- Convert LPUART serial driver to driver model
- Enable LPUART serial driver on ls1021atwr_nor_lpuart configuration
Changes in v2:
- Rewrite the commit message usi
Convert ls1021atwr_nor to driver model support. As a start, enable
ns16550 serial port driver.
Signed-off-by: Bin Meng
---
Changes in v2: None
arch/arm/dts/ls1021a-twr.dts | 4
arch/arm/dts/ls1021a.dtsi| 4
configs/ls1021atwr_nor_defconfig | 4
include/configs/ls1021
On 01/13/2016 07:50 PM, Marek Vasut wrote:
> On Thursday, January 14, 2016 at 03:37:09 AM, Eric Nelson wrote:
>> Hi Marek,
>
> Hi!
>
>> On 01/13/2016 07:10 PM, Marek Vasut wrote:
>>> On Tuesday, December 22, 2015 at 04:37:12 PM, Eric Nelson wrote:
Hi Marek,
>>>
>>> Hi Eric,
>>>
>>> [..]
>>>
On Thursday, January 14, 2016 at 03:37:09 AM, Eric Nelson wrote:
> Hi Marek,
Hi!
> On 01/13/2016 07:10 PM, Marek Vasut wrote:
> > On Tuesday, December 22, 2015 at 04:37:12 PM, Eric Nelson wrote:
> >> Hi Marek,
> >
> > Hi Eric,
> >
> > [..]
> >
> This should also have parameters of mx6_ddr
Hi Marek,
On 01/13/2016 07:10 PM, Marek Vasut wrote:
> On Tuesday, December 22, 2015 at 04:37:12 PM, Eric Nelson wrote:
>> Hi Marek,
>
> Hi Eric,
>
> [..]
>
This should also have parameters of mx6_ddr_sysinfo (input) and
mx6_mmdc_calibration (output), at least for sysinfo->dsize
>>>
>
On Wed, Jan 13, 2016 at 7:57 PM, Tom Rini wrote:
> On Tue, Jan 12, 2016 at 05:45:24PM +0800, Peng Fan wrote:
>
>> From: Peng Fan
>>
>> Define CONFIG_SYS_VSNPRINTF to use snprintf. If not define
>> CONFIG_SYS_VSNPRINTF, snprintf is sprintf.
>>
>> Report by Coverity:
>> pass string init_val of unkn
Hi Stefan,
On Thu, Jan 14, 2016 at 3:20 AM, Stefan Agner wrote:
> On 2016-01-13 00:19, Bin Meng wrote:
>> +Simon
>>
>> Hi Bhuvan,
>>
>> On Wed, Jan 13, 2016 at 4:07 PM, Bhuvanchandra DV
>> wrote:
>>> Hi Bin,
>>>
>>> On 01/13/2016 11:43 AM, Bin Meng wrote:
Hi Bhuvan,
On Wed, J
The android kernel is using appended dtb by default, and store
ramdisk right after kernel & dtb.
The u-boot could not touch appended dtb, so we needs to pass
params to kernel through atags. And also enable kernel's
CONFIG_ARM_ATAG_DTB_COMPAT, which would allowed kernel to merge
atags into fdt befo
After boot_ramdisk_high(), ramdisk would be relocated to
initrd_start & initrd_end, so use them instead of rd_start & rd_end.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
Reviewed-by: Tom Rini
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2:
Add comments.
ar
There's a 64K reserved area at the end of the first 4M.
Store env there, so we can use fastboot to flash it.
Signed-off-by: Jeffy Chen
---
Changes in v5:
New patch.
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/configs/kylin_rk3036.h | 12
1 file changed, 1
We will save boot mode flag in grf's os_reg[4], if fastboot
requested or fastboot key pressed, try to enter fastboot mode
at preboot stage.
Signed-off-by: Jeffy Chen
---
Changes in v5:
Change "grf" to local var.
Changes in v4:
Remove unused reboot mode definitions.
Changes in v3:
Use rockchip
Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
Reviewed-by: Tom Rini
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3036.c | 8
1 file changed, 8 insert
We are porting android to kylin board now.
This series could let it boot up with android's boot image.
Changes in v5:
Remove dup CONFIG_SYS_BOOT_RAMDISK_HIGH.
Change commit message.
Change "grf" to local var.
New patch.
Changes in v4:
Remove unused reboot mode definitions.
Changes in v3:
Use roc
Add default android gpt partition table for kylin board.
Use "gpt write mmc 0 $partitions" to apply.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
Reviewed-by: Tom Rini
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/configs/kylin_rk3036.h | 29
Hi Tom,
On 2016-1-13 23:28, Tom Rini wrote:
On Wed, Jan 13, 2016 at 04:53:19PM +0800, Jeffy Chen wrote:
The android kernel is using appended dtb by default, and store
ramdisk right after kernel & dtb.
So we needs to relocate ramdisk, and use atags to pass params.
Signed-off-by: Jeffy Chen
Ac
On Monday, December 08, 2014 at 09:14:29 AM, Stefan Roese wrote:
> On 06.12.2014 13:56, Marek Vasut wrote:
> > On Saturday, November 08, 2014 at 01:18:31 PM, Stefan Roese wrote:
> >> On 07.11.2014 20:56, Dinh Nguyen wrote:
> >>> +CC: Graham Moore
> >>>
> >>> On 11/07/2014 09:26 AM, Stefan Roese wr
On Thu, Jan 14, 2016 at 3:03 AM, Stefan Agner wrote:
> On 2016-01-07 01:22, Bin Meng wrote:
>> Hi Alison,
>>
>> On Thu, Jan 7, 2016 at 2:19 PM, Huan Wang wrote:
>>> Hi, Bin,
>>>
On Thu, Jan 7, 2016 at 2:01 PM, Huan Wang wrote:
> Hi, Bin,
>
>> On Wed, Jan 6, 2016 at 1:31 PM, H
On Tuesday, December 22, 2015 at 04:37:12 PM, Eric Nelson wrote:
> Hi Marek,
Hi Eric,
[..]
> >> This should also have parameters of mx6_ddr_sysinfo (input) and
> >> mx6_mmdc_calibration (output), at least for sysinfo->dsize
> >
> > Would it be possible for you to send a subsequent patch(set)? I
On Tuesday, October 28, 2014 at 11:45:08 PM, Scott Wood wrote:
> On Sat, 2014-10-11 at 18:42 +0200, Marek Vasut wrote:
> > + /* sometimes people do not think about using the ECC, so check
> > +* to see if we have an 0xff,0xff,0xff read ECC and then ignore
> > +* the error, on the assumpti
Hi Stefan,
On Thu, Jan 14, 2016 at 2:51 AM, Stefan Agner wrote:
> On 2015-12-31 00:53, Bin Meng wrote:
>> Create internal routines which take lpuart's register base as
>> a parameter, in preparation for driver model conversion.
>>
>> Signed-off-by: Bin Meng
>> ---
>>
>> drivers/serial/serial_lp
Hi Tom,
On 2016-1-13 23:21, Tom Rini wrote:
On Wed, Jan 13, 2016 at 04:53:15PM +0800, Jeffy Chen wrote:
Android images don't have a fdt.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
common/image-fdt.c | 4
1 file c
This series provides a number of new features and improvements leading to
enabling the keyboard (via Chrome OS EC) on jerry. This is conneected via
SPI and uses its own message protocol.
Features and fixes are needed in the rockchip code to make this work include:
- RK808 PMIC and regulator dr
>> Signed-off-by: Stefan Monnier
> Sorry for the delay:
> Reviewed-by: Tom Rini
Great, thank you!
Stefan
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Hi Tom,
On Wed, Jan 13, 2016 at 02:57:00PM -0500, Tom Rini wrote:
>On Tue, Jan 12, 2016 at 05:45:24PM +0800, Peng Fan wrote:
>
>> From: Peng Fan
>>
>> Define CONFIG_SYS_VSNPRINTF to use snprintf. If not define
>> CONFIG_SYS_VSNPRINTF, snprintf is sprintf.
>>
>> Report by Coverity:
>> pass strin
Hi York,
On Thu, Jan 14, 2016 at 12:07 AM, york sun wrote:
> On 01/12/2016 10:21 PM, Bin Meng wrote:
>> Hi York,
>>
>> On Wed, Jan 13, 2016 at 1:52 AM, York Sun wrote:
>>>
>>>
>>> On 01/11/2016 10:38 PM, Bin Meng wrote:
Before we switch to use driver model ethernet support, disable
CON
Implement spl_start_uboot to let Falcon mode work. Also as board comes
either with 256 or 512MB of memory, fixup fdt before jumping to kernel.
ATAG support for doing the same is left as an excercise for readers
loving legacy stuff.
Signed-off-by: Ladislav Michl
---
board/isee/igep00x0/igep00x0.c
On Tue, 2016-01-12 at 03:14 +, Qianyu Gong wrote:
> > -Original Message-
> > From: Scott Wood [mailto:o...@buserror.net]
> > Sent: Tuesday, January 12, 2016 1:47 AM
> > To: Qianyu Gong ; u-boot@lists.denx.de
> > Cc: b07...@freescale.com; b48...@freescale.com;
> > wenbin.s...@freescale.c
On Wednesday, January 13, 2016 at 06:08:34 PM, Masahiro Yamada wrote:
> Hi Marek,
Hi!
> 2016-01-13 23:44 GMT+09:00 Marek Vasut :
> >> static int ehci_usb_probe(struct udevice *dev)
> >> {
> >>
> >> + struct generic_ehci *priv = dev_get_priv(dev);
> >>
> >> struct ehci_hccr *hccr = (
Rather than changing the clock to the same value on every transaction,
remember the last value and don't adjust the clock unless it is necessary.
Signed-off-by: Simon Glass
---
drivers/spi/rk_spi.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/rk_spi.c b/dr
It is useful to be able to read the rate of a peripheral clock. Add a
handler for that.
Signed-off-by: Simon Glass
---
drivers/clk/clk_rk3288.c | 37 +
1 file changed, 37 insertions(+)
diff --git a/drivers/clk/clk_rk3288.c b/drivers/clk/clk_rk3288.c
index 0b
Turn on the EC and enable the keyboard.
Signed-off-by: Simon Glass
---
arch/arm/dts/rk3288-veyron-chromebook.dtsi | 4
configs/chromebook_jerry_defconfig | 8
include/configs/chromebook_jerry.h | 7 +++
include/configs/firefly-rk3288.h | 2 ++
include
Some devices need delays before and after activiation. Implement these
features in the SPI driver so that we will be able to enable the Chrome
OS EC.
Signed-off-by: Simon Glass
---
drivers/spi/rk_spi.c | 27 +++
1 file changed, 23 insertions(+), 4 deletions(-)
diff --gi
To reduce the SPL image size, drop the LED features. Jerry does not have
an LED and we can leave out GPIO support also.
Signed-off-by: Simon Glass
---
configs/chromebook_jerry_defconfig | 5 -
include/configs/chromebook_jerry.h | 2 ++
2 files changed, 2 insertions(+), 5 deletions(-)
diff
Implement this so that the GPIO command will be able to report whether a
GPIO is used for input or output.
Signed-off-by: Simon Glass
---
drivers/pinctrl/rockchip/pinctrl_rk3288.c | 68 +++
1 file changed, 52 insertions(+), 16 deletions(-)
diff --git a/drivers/pinct
The current approach of using uclass_get_device() is error-prone. Another
clock (for example a fixed-clock) may cause it to break. Add a function that
does a proper search.
Signed-off-by: Simon Glass
---
arch/arm/include/asm/arch-rockchip/clock.h | 12
drivers/clk/clk_rk3288.c
We can make use of the device tree to configure pinctrl settings. Add this
support for the driver so we can use it in U-Boot proper.
Signed-off-by: Simon Glass
---
drivers/pinctrl/rockchip/pinctrl_rk3288.c | 230 +-
1 file changed, 229 insertions(+), 1 deletion(-)
d
The correct pinctrl is handled automatically so we don't need to do it in
the driver. The exception is when we want to use a different chip select
(other than 0). But this isn't used at present.
Signed-off-by: Simon Glass
---
drivers/spi/rk_spi.c | 28 ++--
1 file change
The current method assumes that clocks are numbered from 0 and we can
determine a clock by its number. It is safer to use an ID in the clock's
platform data to avoid the situation where another clock is bound before
the one we expect.
Move the existing code into rk3036 since it still works there.
Some regulators will not implement any operations (e.g. fixed regulators).
This is not an error, so allow the autoset process to continue when one
of these regulators is found.
Signed-off-by: Simon Glass
---
drivers/power/regulator/regulator-uclass.c | 2 ++
1 file changed, 2 insertions(+)
dif
Enable this PMIC and regulator, which is used on jerry.
Signed-off-by: Simon Glass
---
configs/chromebook_jerry_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/chromebook_jerry_defconfig
b/configs/chromebook_jerry_defconfig
index 1e5edc9..a0af6ec 100644
--- a/configs/ch
This is not used in SPL so don't allow it to be built there, even if I2C
is enabled in SPL.
Signed-off-by: Simon Glass
---
drivers/misc/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index fc8eb6f..cd4846b 100644
--- a/drivers/misc/M
This is not needed for booting, so drop it from SPL to save about 300 bytes.
Signed-off-by: Simon Glass
---
configs/chromebook_jerry_defconfig | 1 +
configs/firefly-rk3288_defconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/configs/chromebook_jerry_defconfig
b/configs/chromebook
We can use the new clk_get_by_index() function to get the correct clock.
Signed-off-by: Simon Glass
---
drivers/spi/rk_spi.c | 29 +++--
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c
index 5e0c6ad..aaf6040 100
This file has many features that are not needed by SPL. Use #ifdef to
remove the unused features and reduce the code size.
Signed-off-by: Simon Glass
---
drivers/pinctrl/rockchip/pinctrl_rk3288.c | 20 +---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/drivers/p
Use this function in preference to the macro.
Signed-off-by: Simon Glass
---
arch/arm/mach-rockchip/rk3288/reset_rk3288.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-rockchip/rk3288/reset_rk3288.c
b/arch/arm/mach-rockchip/rk3288/reset_rk3288.c
index 7a
Use this function in preference to the macro.
Signed-off-by: Simon Glass
---
arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-rockchip/rk3288/sdram_rk3288.c
b/arch/arm/mach-rockchip/rk3288/sdram_rk3288.c
index
We can use the new clk_get_by_index() function to get the correct clock.
Signed-off-by: Simon Glass
---
drivers/clk/clk_rk3288.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk_rk3288.c b/drivers/clk/clk_rk3288.c
index d507b48..d6d2896 100644
--- a/drivers/cl
Two of the init values are created locally so cannot be out of range.
The masking is unnecessary and in one case is incorrect. Fix it.
Signed-off-by: Simon Glass
---
drivers/spi/rk_spi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/spi/rk_spi.c b/drivers/spi/r
At present there is an incorrect call to rkspi_enable_chip(). It should
be disabling the chip, not enabling it. Correct this and ensure that the
chip is disabled when releasing the bus.
Signed-off-by: Simon Glass
---
drivers/spi/rk_spi.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(
This function adds quite a bit of code to SPL and we probably don't need
all the features in SPL. Add a simple version (for SPL only) to save space.
Signed-off-by: Simon Glass
---
drivers/clk/clk-uclass.c | 20 +++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/d
We can use the new clk_get_by_index() function to get the correct clock.
Signed-off-by: Simon Glass
---
drivers/i2c/rk_i2c.c | 37 +
1 file changed, 21 insertions(+), 16 deletions(-)
diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c
index ebdba35..403
This function currently searches the entire device tree for a node that
it thinks is relevant. But the node is known and is passed in. Correct the
code and enable it only with driver model, since only driver-model boards
will use it.
This avoids bringing in a large number of strings from fdtdec.
This function should return 0 or 1, not a mask. Fix it.
Signed-off-by: Simon Glass
---
drivers/gpio/rk_gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/rk_gpio.c b/drivers/gpio/rk_gpio.c
index fbdf9f3..a22e219 100644
--- a/drivers/gpio/rk_gpio.c
+++ b/driv
The currect PMIC debugging is a little confusing. Adjust it so that it is
clear whether the operation succeeded or failed. Also, avoid creating a new
error return value when a perfectly good one is already available.
Signed-off-by: Simon Glass
---
drivers/power/pmic/pmic-uclass.c | 11
Add a method which can locate a clock for a device, given its index. This
uses the normal device tree bindings to return the clock device and the
first argument which is normally used as a peripheral ID in U-Boot.
Signed-off-by: Simon Glass
---
drivers/clk/clk-uclass.c | 28
Use the full pinctrl driver in U-Boot proper.
Signed-off-by: Simon Glass
---
configs/chromebook_jerry_defconfig | 1 -
configs/firefly-rk3288_defconfig | 1 -
2 files changed, 2 deletions(-)
diff --git a/configs/chromebook_jerry_defconfig
b/configs/chromebook_jerry_defconfig
index 5535105..
This hangs when activated (by probing the PMIC). Disable it for now until we
understand the root cause.
Signed-off-by: Simon Glass
---
arch/arm/dts/rk3288-veyron.dtsi | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/rk3288-veyron.dtsi b/arch/arm/dts/rk3288-ve
This is easier to deal with when using generic code since it allows us to
use a register index instead of naming each register.
Adjust it, adding an enum to improve readability.
Signed-off-by: Simon Glass
---
arch/arm/include/asm/arch-rockchip/pmu_rk3288.h | 12
drivers/pinctrl/ro
Since I2C muxes are seldom needed in SPL, and the code for this increases
the size somewhat, add a separate option to enable I2C muxes for SPL.
Signed-off-by: Simon Glass
---
drivers/i2c/Makefile | 4 ++--
drivers/i2c/muxes/Kconfig | 9 +
drivers/i2c/muxes/Makefile | 2 +-
3 file
It is sometimes useful to be able to find a device before probing it,
perhaps to set up some platform data for it. Allow finding by of_offset
also.
Signed-off-by: Simon Glass
---
drivers/core/uclass.c| 4 ++--
include/dm/uclass-internal.h | 16
2 files changed, 18 inse
If full pinctrl is enabled we don't need to manually set the pinctrl in the
driver. It will happen automatically. Adjust the code to suit - we will
still use manual mode in SPL.
Signed-off-by: Simon Glass
---
drivers/spi/rk_spi.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
d
Provide this method so that 'gpio status' works fully. It now shows
whether a pin is used for input, output or some other function.
Signed-off-by: Simon Glass
---
drivers/gpio/rk_gpio.c | 40
1 file changed, 36 insertions(+), 4 deletions(-)
diff --git a
The current name is confusing and a bit verbose. Rename it.
Signed-off-by: Simon Glass
---
drivers/clk/clk_rk3288.c | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/drivers/clk/clk_rk3288.c b/drivers/clk/clk_rk3288.c
index 7244d52..0bb674d 100644
--
At present we use the same peripheral ID for clocks and pinctrl. While this
works it is probably better to use the device tree clock binding ID for
clocks. We can use the clk_get_by_index() function to find this.
Update the clock drivers and the code that uses them.
Signed-off-by: Simon Glass
--
Some devices need special sequences to be used when starting up. Add a
uclass for this. Drivers can be added to provide specific features as
needed.
Signed-off-by: Simon Glass
---
drivers/misc/Kconfig | 18 ++
drivers/misc/Makefile| 1 +
drivers/misc/pwrseq-ucla
GPIO drivers want to be able to show if a pin is enabled for input, output,
or is being used by another function. Some drivers can easily find this
and the code is included in the driver. For some SoCs this is more complex.
Conceptually this should be handled by pinctrl rather than GPIO. Most
pinct
For some boards the pmic interface is useful but the regulator interface
(which comes with it) is too large. Allow them to be separated such that
SPL can decide which it needs.
Signed-off-by: Simon Glass
---
drivers/power/pmic/Kconfig | 21 +
drivers/power/pmic/pmic-uc
The 'gpio' command allows abbreviations for most subcommands. Allow them
for 'status' also.
Signed-off-by: Simon Glass
---
common/cmd_gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/cmd_gpio.c b/common/cmd_gpio.c
index 65d6df4..bb0f63a 100644
--- a/common/cmd_g
Use the pwrseq uclass to find a suitable power sequence for the MMC device.
If this is enabled in the device tree, we will pick it up automatically.
Signed-off-by: Simon Glass
---
drivers/mmc/rockchip_dw_mmc.c | 47 +++
1 file changed, 47 insertions(+)
d
This has got out of sequence somehow. Fix it.
Signed-off-by: Simon Glass
---
configs/chromebook_jerry_defconfig | 6 +++---
configs/firefly-rk3288_defconfig | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/configs/chromebook_jerry_defconfig
b/configs/chromebook_jerry_
Add regulator support for the RK808 PMIC. It integrated 4 BUCKs and 8 LDOs
all of which are supported by this driver.
Signed-off-by: Simon Glass
---
drivers/power/regulator/Kconfig | 9 ++
drivers/power/regulator/Makefile | 1 +
drivers/power/regulator/rk808.c | 301 ++
This saves some code space in SPL which is useful on jerry.
Signed-off-by: Simon Glass
---
arch/arm/mach-rockchip/rk3288-board-spl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c
b/arch/arm/mach-rockchip/rk3288-board-spl.c
index 8199cad..b2c572
This Rockchip PMIC provides features suitable for battery-powered
applications. It is commonly used with Rockchip SoCs.
Add a driver which provides register access. The regulator driver will use
this.
Signed-off-by: Simon Glass
---
drivers/power/pmic/Kconfig | 9 +
drivers/power/pmic/Mak
This is defined in the device tree in Linux. Copy over the settings so that
this can be used instead of hard-coding the reset line.
Signed-off-by: Simon Glass
---
arch/arm/dts/rk3288-veyron.dtsi| 15 +++
configs/chromebook_jerry_defconfig | 1 +
include/configs/rk3288_common.h
Add a function which produces a flags word from a few common PIN_CONFIG
settings. This is useful for simple pinctrl drivers that don't need to worry
about drive strength, etc.
Signed-off-by: Simon Glass
---
drivers/pinctrl/pinctrl-uclass.c | 12
include/dm/pinctrl.h | 1
1 - 100 of 229 matches
Mail list logo