Hi Tom,
On 15 February 2016 at 15:37, Tom Rini wrote:
> On Sun, Feb 14, 2016 at 07:16:29PM -0700, Simon Glass wrote:
>
>> Recent additions of the MMC and DISK uclasses have indicated that it is time
>> to look at adding a uclass for block devices. This series does this and
>> includes a few clean
Hi Stephen,
On 16 February 2016 at 16:43, Stephen Warren wrote:
> On 02/14/2016 07:16 PM, Simon Glass wrote:
>>
>> Recent additions of the MMC and DISK uclasses have indicated that it is
>> time
>> to look at adding a uclass for block devices. This series does this and
>> includes a few clean-ups
Waiting 30 seconds for the hpd to go high seems a bit much, especially
on headless boots. Lowering the timeout to 300ms.
Sending as RFC because frankly i don't know what a sensible timeout is
here, but 30 seconds is clearly not it :)
Signed-off-by: Sjoerd Simons
---
drivers/video/rockchip/rk_
Add a new driver for the GMAC ethernet interface present in Rockchip
RK3288 SOCs. This driver subclasses the generic design-ware driver to
add the glue needed specifically for Rockchip.
Signed-off-by: Sjoerd Simons
---
Changes in v2:
- Fix various coding style nits
- Adjust to new hook name
d
Add definitions for GRF_SOC_CON1 and GRF_SOC_CON3 which contain various
GMAC related fields.
Signed-off-by: Sjoerd Simons
---
Changes in v2: None
arch/arm/include/asm/arch-rockchip/grf_rk3288.h | 53 +
1 file changed, 53 insertions(+)
diff --git a/arch/arm/include/asm/
Second round to add support for the GMAC Ethernet interface on RK3288
SoCs. I had hope to follow up a lot earlier, but things were bussier
then expected :(
To add support I've taken a slightly different approach then some of the
other boards with a designware IP block, by creating a new driver to
Setup the clocks for the gmac ethernet interface. This assumes the mac
clock is fed by an external clock which is common on RK3288 based
devices.
Signed-off-by: Sjoerd Simons
---
Changes in v2: None
arch/arm/include/asm/arch-rockchip/cru_rk3288.h | 17 +
drivers/clk/clk_rk3288.
Add a definition for the gmac interface to the firefly device-tree.
Copied verbatim from the linux kernel.
Signed-off-by: Sjoerd Simons
Acked-by: Simon Glass
---
Changes in v2: None
arch/arm/dts/rk3288-firefly.dtsi | 16
1 file changed, 16 insertions(+)
diff --git a/arch/arm
Now that ethernet support works, it can be dropped from the rockchip
TODO
Signed-off-by: Sjoerd Simons
Acked-by: Simon Glass
---
Changes in v2: None
doc/README.rockchip | 1 -
1 file changed, 1 deletion(-)
diff --git a/doc/README.rockchip b/doc/README.rockchip
index e0572c8..3ce12d3 100644
The rgmii_pins node in rk3288.dtsi configures 15 pins. Increase the size
of the cell array to accomedate that, otherwise only the first 10 get
configured.
Signed-off-by: Sjoerd Simons
---
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3288.c | 2 +-
1 file changed, 1 insertion(+), 1 de
u-boot only recognize okay to enable a node (Linux seems to be more
lenient here). So use okay instead.
Signed-off-by: Sjoerd Simons
---
Changes in v2: None
arch/arm/dts/rk3288-rock2-square.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/dts/rk3288-rock2-square
Add the ability for e.g. drivers subclassing to register a function to
be called after phy link negotiation. This is useful if e.g. the driver
needs to change the mac configuration based on the negotiated speed.
Signed-off-by: Sjoerd Simons
---
Changes in v2:
- Move the hook into the dw_adjust_
Now that at least on the firefly board we have network support, enable
PXE and DHCP boot targets by default.
Signed-off-by: Sjoerd Simons
Acked-by: Simon Glass
---
Changes in v2: None
include/configs/rk3288_common.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/includ
Enable the various configuration option required to get the ethernet
interface up and running on Radxa Rock2 and Firefly.
Signed-off-by: Sjoerd Simons
---
Changes in v2: None
configs/firefly-rk3288_defconfig | 5 +
configs/rock2_defconfig | 5 +
2 files changed, 10 insertions(
To allow other DM drivers to subclass the designware driver various
functions and structures need to be exported. Export these.
Signed-off-by: Sjoerd Simons
Reviewed-by: Bin Meng
Acked-by: Simon Glass
---
Changes in v2: None
drivers/net/designware.c | 6 +++---
drivers/net/designware.h | 4 +
Add support for the snps,reset-gpio, snps,reset-active-low (optional) and
snps,reset-delays-us device-tree bindings. The combination of these
three define how the PHY should be reset to ensure it's in a sane state.
Signed-off-by: Sjoerd Simons
---
Changes in v2:
- Store probe gpio in private da
On Monday 29 February 2016 09:14 AM, Mugunthan V N wrote:
> Add a misc driver for MUSB wrapper, so that based on dr_mode the
> USB devices can bind to USB host or USB device drivers.
>
> Signed-off-by: Mugunthan V N
> ---
> drivers/usb/musb-new/Kconfig | 9 +
> drivers/usb/musb-new/Makefi
Hi Tom,
I found a small bug in this series.
If it is not too late, please let me fix it and do a 2nd round.
If it is, it's OK, I will send a follow-up patch.
2016-02-29 4:03 GMT+09:00 Masahiro Yamada :
> Hi Tom,
>
> Here is a bunch of UniPhier updates which include GPIO driver support,
> MM
With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property"
reg_offset is added to the struct ns16550_platdata to be
dt compatible with Linux kernel driver, TI AM335x evms are broken
as the serial platdata updates wrong offsets. Correcting it with
initializing reg_offset to zero.
On Monday 29 February 2016 02:55 PM, Mugunthan V N wrote:
> With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property"
> reg_offset is added to the struct ns16550_platdata to be
> dt compatible with Linux kernel driver, TI AM335x evms are broken
> as the serial platdata updates
Hi Marek,
> On 02/26/2016 08:43 PM, Sam Protsenko wrote:
> > On Fri, Feb 19, 2016 at 9:34 PM, Sam Protsenko
> > wrote:
> >> + Praneeth Bajjuri
> >> + Tom Rini
> >> + Rob Herring
> >>
> >> On Tue, Feb 16, 2016 at 7:59 PM, Semen Protsenko
> >> wrote:
> >>> From: Sam Protsenko
> >>>
> >>> In case
Hi Paul,
> Hi,
>
> I was told some time ago that a publicly-available version of the
> Samsung Chromebook 2 (supposedly, the one with an Exynos 5800 SoC)
> allows running unsigned code (the U-Boot SPL) directly after the
> bootrom. Is that correct?
>
> Do you know of any (other) publicly availab
Hi Stephen,
On 23.02.2016 19:03, Stephen Warren wrote:
On 02/23/2016 05:59 AM, Julian Scheel wrote:
Add support for platforms based on the Meerkat COM module. Includes
support
for the minimal reference platform called Kein Baseboard, which in
fact is
sufficient to run most existing Meerkat carr
The function spl_parse_image_header() falls back to a raw image
if the U-Boot header is missing and CONFIG_SPL_PANIC_ON_RAW_IMAGE
is undefined. While, the bad magic checking here makes the
spl_parse_image_header() unreachable in case of the missing header.
Signed-off-by: Masahiro Yamada
---
co
With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property"
reg_offset is added to the struct ns16550_platdata to be
dt compatible with Linux kernel driver. A variety of OMAP3 boards are broken
as the serial platdata is missing offsets. By explicitly naming the entry,
this should a
Fix "warning: cast to pointer from integer of different size".
Signed-off-by: Masahiro Yamada
---
common/spl/spl_nor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c
index e08afe2..d0bd0b0 100644
--- a/common/spl/spl_nor.c
+++ b/c
V2: I hastily copy-pasted the boards without looking at the UART number.
This addresses 3 boards that use UART3 and not UART1.
With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property"
reg_offset is added to the struct ns16550_platdata to be
dt compatible with Linux kernel drive
The 64-bit compiler (ex. aarch64) emits "warning: cast from pointer
to integer of different size".
Make it work with 64bit DMA address while I am here.
Signed-off-by: Masahiro Yamada
---
drivers/mtd/nand/denali.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers
On 02/29/2016 11:11 AM, Lukasz Majewski wrote:
> Hi Marek,
>
>> On 02/26/2016 08:43 PM, Sam Protsenko wrote:
>>> On Fri, Feb 19, 2016 at 9:34 PM, Sam Protsenko
>>> wrote:
+ Praneeth Bajjuri
+ Tom Rini
+ Rob Herring
On Tue, Feb 16, 2016 at 7:59 PM, Semen Protsenko
wr
On 02/29/2016 04:44 AM, Mugunthan V N wrote:
> Add a misc driver for MUSB wrapper, so that based on dr_mode the
> USB devices can bind to USB host or USB device drivers.
>
> Signed-off-by: Mugunthan V N
> ---
> drivers/usb/musb-new/Kconfig | 9 +
> drivers/usb/musb-new/Makefile | 1 +
>
On 02/29/2016 04:44 AM, Mugunthan V N wrote:
> Currently all backend driver ops uses hard coded physical
> address, so to adopt the driver to DM, add device pointer to ops
> call backs so that drivers that drivers can get physical
> addresses from the usb driver priv/plat data.
>
> Signed-off-by:
Hi York,
On 27 February 2016 at 02:14, york sun wrote:
> On 02/22/2016 10:18 AM, Jagan Teki wrote:
>> Hi York,
>>
>> On 15 February 2016 at 02:16, Jagan Teki wrote:
>>> Compared to previous patch series this series adds spi-nor
>>> core with spi-nor controller drivers are of "mtd uclass"
>>>
>>>
Hi Fabio,
On 24 February 2016 at 02:16, Fabio Estevam wrote:
> On Tue, Feb 23, 2016 at 10:03 AM, Jagan Teki wrote:
>> Hi Fabio,
>>
>> On 23 February 2016 at 00:22, Fabio Estevam wrote:
>>> On Mon, Feb 22, 2016 at 3:17 PM, Jagan Teki wrote:
>>>
Can you pls- test the dataflash changes? use
Hello Adam,
Am 29.02.2016 um 12:53 schrieb Adam Ford:
V2: I hastily copy-pasted the boards without looking at the UART number.
This addresses 3 boards that use UART3 and not UART1.
With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property"
reg_offset is added to the struct ns1
On Mon, Feb 29, 2016 at 2:15 AM, Peng Fan wrote:
>>+ MX7D_PAD_SD3_RESET_B__SD3_RESET_B | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>
> Will this pin be used? I did not see code to use this.
It is OK to configure the IOMUX correctly independently of the driver
using it or not.
>>+CONFIG_IMX_RDC=y
>>+CO
From: Fabio Estevam
Add the basic support for Warp7 board.
For more information about this reference design, please visit:
https://www.element14.com/community/docs/DOC-79058/l/warp-7-the-next-generation-wearable-reference-platform
Signed-off-by: Fabio Estevam
Reviewed-by: Peng Fan
---
Change
From: Fabio Estevam
CONFIG_BOARD_EARLY_INIT_F and CONFIG_BOARD_LATE_INIT should not be
placed into mx7_common because not all boards need these options.
Move them to the board file instead.
Signed-off-by: Fabio Estevam
Reviewed-by: Peng Fan
---
Changes since v1:
- None
include/configs/mx7_c
On Mon, Feb 29, 2016 at 9:27 AM, Jagan Teki wrote:
> Please verify 'sf protect' as well if you haven't tested.
I tested it last week and it worked fine.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Hi Simon,
On 27 February 2016 at 04:34, Simon Glass wrote:
> Hi Jagan,
>
> On 26 February 2016 at 13:44, york sun wrote:
>> On 02/22/2016 10:18 AM, Jagan Teki wrote:
>>> Hi York,
>>>
>>> On 15 February 2016 at 02:16, Jagan Teki wrote:
Compared to previous patch series this series adds spi-
On 29 February 2016 at 18:04, Fabio Estevam wrote:
> On Mon, Feb 29, 2016 at 9:27 AM, Jagan Teki wrote:
>
>> Please verify 'sf protect' as well if you haven't tested.
>
> I tested it last week and it worked fine.
OK, thanks!
--
Jagan.
___
U-Boot mail
Christophe/All,
On 22 February 2016 at 18:11, Jagan Teki wrote:
> Christophe,
>
> Please test this series if you have hw.
>
> On 22 February 2016 at 18:09, Jagan Teki wrote:
>> Changes for v4:
>> - rebase to master
>> Changes for v3:
>> - Add DECLARE_GLOBAL_DATA_PTR
>> Changes fo
V1 I changed all the platform data to explicitly name the entries
instead of just using a table of numbers. This would hopefully
address future proofing against the header changing order. I
copy-pasted the table from my board to a series of boards and then
later realized I had accidentally change
On 02/29/2016 12:53 PM, Adam Ford wrote:
V2: I hastily copy-pasted the boards without looking at the UART number.
This addresses 3 boards that use UART3 and not UART1.
With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property"
reg_offset is added to the struct ns16550_platdata
On Monday 29 February 2016 05:32 PM, Marek Vasut wrote:
> On 02/29/2016 04:44 AM, Mugunthan V N wrote:
>> Add a misc driver for MUSB wrapper, so that based on dr_mode the
>> USB devices can bind to USB host or USB device drivers.
>>
>> Signed-off-by: Mugunthan V N
>> ---
>> drivers/usb/musb-new/K
On Monday 29 February 2016 05:34 PM, Marek Vasut wrote:
> On 02/29/2016 04:44 AM, Mugunthan V N wrote:
>> Currently all backend driver ops uses hard coded physical
>> address, so to adopt the driver to DM, add device pointer to ops
>> call backs so that drivers that drivers can get physical
>> addr
Hello Adam,
Am 29.02.2016 um 13:51 schrieb Adam Ford:
V1 I changed all the platform data to explicitly name the entries
instead of just using a table of numbers. This would hopefully
address future proofing against the header changing order. I
copy-pasted the table from my board to a series of
Add config file for AM335x Beagle Bone White and enable DM,
DM_GPIO, DM_SERIAL, DM_ETH and DM_MMC.
Signed-off-by: Mugunthan V N
---
arch/arm/dts/Makefile | 4 +++-
configs/am335x_bone_defconfig | 27 +++
2 files changed, 30 insertions(+), 1 deletion(-)
create mo
This patch series enables Driver Model and Device tree usage for
AM335x Beagle Bone White and AM335x EVMsk tested it on same with
loading file from MMC and over TFTP. (Loga [1]). Also pushed a
branch [2] for reference.
[1]: http://pastebin.ubuntu.com/15243394/
[2]: git://git.ti.com/~mugunthanvnm/t
When CONFIG_ENV_IS_IN_FAT is defined, define FAT_ENV
configurations for storing the environment setup.
Signed-off-by: Mugunthan V N
---
include/configs/am335x_evm.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 6ebe0b3
Import DT file for am335x-sk-evm from Linux Kernel v4.4
Add config file for this board, enable DM, DM_GPIO, DM_SERIAL,
DM_ETH and DM_MMC.
Signed-off-by: Mugunthan V N
---
arch/arm/dts/Makefile | 1 +
arch/arm/dts/am335x-evmsk.dts | 720
conf
On Mon, Feb 29, 2016 at 07:28:26PM +0530, Mugunthan V N wrote:
> This patch series enables Driver Model and Device tree usage for
> AM335x Beagle Bone White and AM335x EVMsk tested it on same with
> loading file from MMC and over TFTP. (Loga [1]). Also pushed a
> branch [2] for reference.
>
> [1]
On Mon, Feb 29, 2016 at 06:06:10PM +0900, Masahiro Yamada wrote:
> Hi Tom,
>
> I found a small bug in this series.
>
> If it is not too late, please let me fix it and do a 2nd round.
>
> If it is, it's OK, I will send a follow-up patch.
Yes, OK, thanks.
--
Tom
signature.asc
Description: Di
On 02/29/2016 02:26 PM, Mugunthan V N wrote:
> On Monday 29 February 2016 05:34 PM, Marek Vasut wrote:
>> On 02/29/2016 04:44 AM, Mugunthan V N wrote:
>>> Currently all backend driver ops uses hard coded physical
>>> address, so to adopt the driver to DM, add device pointer to ops
>>> call backs so
On Mon, Feb 29, 2016 at 06:51:32PM +0530, Mugunthan V N wrote:
> On Monday 29 February 2016 05:32 PM, Marek Vasut wrote:
> > On 02/29/2016 04:44 AM, Mugunthan V N wrote:
> >> Add a misc driver for MUSB wrapper, so that based on dr_mode the
> >> USB devices can bind to USB host or USB device drivers
On 02/29/2016 03:42 PM, Tom Rini wrote:
> On Mon, Feb 29, 2016 at 06:51:32PM +0530, Mugunthan V N wrote:
>> On Monday 29 February 2016 05:32 PM, Marek Vasut wrote:
>>> On 02/29/2016 04:44 AM, Mugunthan V N wrote:
Add a misc driver for MUSB wrapper, so that based on dr_mode the
USB devices
On Mon, Feb 29, 2016 at 02:34:41PM +0100, Marek Vasut wrote:
> On 02/29/2016 02:26 PM, Mugunthan V N wrote:
> > On Monday 29 February 2016 05:34 PM, Marek Vasut wrote:
> >> On 02/29/2016 04:44 AM, Mugunthan V N wrote:
> >>> Currently all backend driver ops uses hard coded physical
> >>> address, so
This reverts commit d9a3bec682f9756621615f4306718a356a3230e3.
While this is a correct change to do long term it unfortunately breaks a
number of platforms that are using pdata and not named struct members so
they are getting all of their data after 'base' incorrect.
Acked-by: Michal Simek
Signed
On Mon, Feb 29, 2016 at 10:29:21AM -0500, Tom Rini wrote:
> This reverts commit d9a3bec682f9756621615f4306718a356a3230e3.
>
> While this is a correct change to do long term it unfortunately breaks a
> number of platforms that are using pdata and not named struct members so
> they are getting all
Hi Tom,
Here is a bunch of UniPhier updates which include GPIO driver support,
MMC driver support, DRAM init code clean-ups, etc. Please pull.
Changes for 2nd round:
- Fix a build error when CONFIG_DEBUG_LL is defined
The following changes since commit 50dc8677d769be6e2b34f49b6c43ad1e977bd
Hi Jagan, Heiko,
> Did you enable CONFIG_SPI_FLASH_SPANSION on your config, becuase
> S25FL512S is already been added u-boot. Pls- check the same and let me
> know if you find any issues while detecting the flash.
> Whether the driver detecting flash or not with RDID, please define
> DEBUG on dri
On 02/27/2016 05:09 AM, Alexander Graf wrote:
On 26.02.16 20:25, Stephen Warren wrote:
On 02/25/2016 09:36 AM, Alexander Graf wrote:
On 24.02.16 19:14, Stephen Warren wrote:
On 02/24/2016 05:11 AM, Alexander Graf wrote:
The idea to generate our pages tables from an array of memory ranges
Copy these from Linux v4.5-rc6 tag.
This is needed so that we can keep up with newer gcc versions. Note
that we don't have the uapi/ hierarchy from the kernel so continue to
use
Signed-off-by: Tom Rini
---
include/linux/compiler-gcc.h | 259
include
On 02/29/2016 03:20 AM, Julian Scheel wrote:
Hi Stephen,
On 23.02.2016 19:03, Stephen Warren wrote:
On 02/23/2016 05:59 AM, Julian Scheel wrote:
Add support for platforms based on the Meerkat COM module. Includes
support
for the minimal reference platform called Kein Baseboard, which in
fact i
Hi,
I have a few questions regarding the UCLASS_CLK driver. I need to
implement a clock driver for a new-ish platform, an ARMv7 based SoCFPGA
Arria10.
I think going forward, it would make sense to place the driver to be of
UCLASS_CLK and would go into drivers/clk/, instead of under
arch/arm/mach-
+ Marek
On 29 February 2016 at 22:14, Bakhvalov, Denis (Nokia - PL/Wroclaw)
wrote:
> Hi Jagan, Heiko,
>
>> Did you enable CONFIG_SPI_FLASH_SPANSION on your config, becuase
>> S25FL512S is already been added u-boot. Pls- check the same and let me
>> know if you find any issues while detecting the
There are a number of AMCC platforms which are close to, or with some
toolchains exceeding, the size constraints. Disable CONFIG_SYS_LONGHELP
to get us room to build with again.
Signed-off-by: Tom Rini
---
include/configs/amcc-common.h |1 -
1 file changed, 1 deletion(-)
diff --git a/inclu
Hi Jagan,
Please see some feedback below.
I got some patch formatting issues.
Please see below CR >>
Best Regards
Christophe
-Original Message-
From: Jagan Teki [mailto:jt...@openedev.com]
Sent: lundi 22 février 2016 13:39
To: u-boot@lists.denx.de
Cc: Christophe Henri RICARD; Simon Gla
Hi Jagan,
Apologies for the delay, i got busy on other non u-boot topic.
I have been reviewing and tried to applied your patches but it seems patches
3/4/5 got some formatting issues (due to mailbox client may be ?).
I think I should be able to test this work anyway. Do you want me to send back
Hi Jagan,
I like your work but i think there is some few formatting issue on the patch
itself.
Please see below CR >>
Best Regards
Christophe
-Original Message-
From: Jagan Teki [mailto:jt...@openedev.com]
Sent: lundi 22 février 2016 13:39
To: u-boot@lists.denx.de
Cc: Christophe Henri
On 29.02.16 17:52, Stephen Warren wrote:
> On 02/27/2016 05:09 AM, Alexander Graf wrote:
>>
>>
>> On 26.02.16 20:25, Stephen Warren wrote:
>>> On 02/25/2016 09:36 AM, Alexander Graf wrote:
On 24.02.16 19:14, Stephen Warren wrote:
> On 02/24/2016 05:11 AM, Alexander Graf wrote:
I won't be able to fix it tonight, but I'll try to look at this
tomorrow. Sorry, I was in a hurry this morning. Does anyone have an
opinion on whether or not I should I also remove the 'const' part of
the declaration? I wonder how much longer we'll be using this
mechanism before the device trees
On Mon, Feb 29, 2016 at 03:31:35PM -0600, Adam Ford wrote:
> I won't be able to fix it tonight, but I'll try to look at this
> tomorrow. Sorry, I was in a hurry this morning. Does anyone have an
> opinion on whether or not I should I also remove the 'const' part of
> the declaration? I wonder ho
On Mon, Feb 29, 2016 at 03:31:35PM -0600, Adam Ford wrote:
> I won't be able to fix it tonight, but I'll try to look at this
> tomorrow. Sorry, I was in a hurry this morning. Does anyone have an
> opinion on whether or not I should I also remove the 'const' part of
> the declaration? I wonder h
Each region is displayed in almost the same way. Break out this common code
into its own function.
Signed-off-by: Simon Glass
---
Changes in v2:
- Fix use of pci_mem instead of pci_prefetch
- Remove 0x prefix for addresses
drivers/pci/pci_auto_common.c | 51 +++-
Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long
and causes 80-column violations, rename it to struct blk_desc.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2: None
api/api.c | 2 +-
api/api_storage.c | 14 ++---
boa
We should not include in header files. Each C file should include
it if needed.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2: None
include/part.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/part.h b/include/part.h
index d1e9d0f..140c9b6 100644
--- a/inclu
Adjust the cast to avoid a warning when stdint.h is used.
Signed-off-by: Simon Glass
---
Changes in v2: None
disk/part_efi.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/disk/part_efi.c b/disk/part_efi.c
index db5e7ed..7bd840f 100644
--- a/disk/part_efi.c
+++
Since these are sequentially numbered it makes sense to use an enum. It
avoids having to maintain the maximum value, and provides a type we can use
if it is useful.
In fact the maximum value is not used. Rename it to COUNT, since MAX suggests
it is the maximum valid value, but it is not.
Signed-o
The current name is too generic. Add a 'blk_' prefix to aid searching and
make its purpose clearer.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2: None
api/api_storage.c | 12 +++-
cmd/gpt.c | 2 +-
cmd/read.c| 2 +-
common/fb_mmc.c | 4 ++--
Adjust the cast to avoid a warning when stdint.h is used.
Signed-off-by: Simon Glass
---
Changes in v2: None
lib/fdtdec.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index b361a25..0cb255f 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@
At present block devices are tied up with partitions. But not all block
devices have partitions within them. They are in fact separate concepts.
Create a separate blk.h header file for block devices.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2: None
include/blk.h | 71
Rename this function to blk_get_device_part_str(). This is a better name
because it makes it clear that the function returns a block device and
parses a string.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2:
- Rename to blk_get_device_by_str()
cmd/disk.c | 2 +-
cm
The block interface is not well documented in the code. Pick two important
functions and add comments.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2: None
include/part.h | 30 ++
1 file changed, 30 insertions(+)
diff --git a/include/part.h b/i
In part_amiga.c the name is unsigned but bcpl_strcpy() requires a signed
pointer. Add a cast to fix the warning.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2:
- Fix 'by' which should be 'but' in the commit message
disk/part_amiga.c | 2 +-
1 file changed, 1 insertion(+),
We can use linker lists instead of explicitly declaring each function.
This makes the code shorter by avoiding switch() statements and lots of
header file declarations.
While this does clean up the code it introduces a few code issues with SPL.
SPL never needs to print partition information since
The current name is too generic. The function returns a block device based
on a provided string. Rename it to aid searching and make its purpose
clearer. Also add a few comments.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2:
- Rename to blk_get_device_by_str()
cmd/part.c
Adjust a few things so that the addition of driver-models support involved
adding code rather than also changing it. This makes the patches easier to
review.
Signed-off-by: Simon Glass
---
Changes in v2: None
common/usb_storage.c | 117 +++
1 fil
It is useful to have sandbox build as much code as possible to avoid having
to build every board to detect build errors. Also we may add tests for some
more partition types at some point.
Enable all partition types in sandbox.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
Reviewed-by: Bin Me
Rename three partition functions so that they start with part_. This makes
it clear what they relate to.
Signed-off-by: Simon Glass
---
Changes in v2: None
board/cm5200/fwupdate.c | 2 +-
cmd/ide.c | 6 +++---
cmd/mmc.c | 2 +-
cmd/part.c|
The comment for file_cbfs_type() says that it returns 0 for an invalid type.
The code appears to check for -1, except that it uses an unsigned variable
to store the type. This results in a warning on 64-bit machines.
Adjust it to make the meaning clearer. Continue to handle the -1 case since
it ma
Rename these functions so that part_ is at the start. This more clearly
identifies these functions as partition functions.
Signed-off-by: Simon Glass
---
Changes in v2:
- Add new patch to rename test_part_xx() and print_part_xx()
disk/part_amiga.c | 22 +++---
disk/part_dos.c
Enable these two filesystems to provide better build coverage in sandbox.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2: None
include/configs/sandbox.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 786bb
The limit on storage devices is USB_MAX_STOR_DEV but we use one extra
element while probing to see if a device is a storage device. Avoid this,
since it causes memory corruption.
Signed-off-by: Simon Glass
---
Changes in v2: None
common/usb_storage.c | 14 +++---
1 file changed, 7 inse
The USB subsystem has a few counters that need to be reset since they are
stored in static variables rather than driver-model data. An example is
usb_max_devs. Ultimately we should move this data into the USB uclass.
For now, make sure that USB is reset after each test, so that the counters
go bac
Add a uclass for block devices. These provide block-oriented data access,
supporting reading, writing and erasing of whole blocks.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2: None
drivers/block/Kconfig | 11 +++
drivers/block/Makefile | 2 +
drivers/block/b
This option doesn't do anything. Drop it.
Signed-off-by: Simon Glass
Suggested-by: Bin Meng
---
Changes in v2: None
cmd/cramfs.c| 5 -
include/configs/UCP1020.h | 1 -
include/configs/km/keymile-common.h | 1 -
include/configs/sandbox.h | 1 -
4
We don't want old block devices hanging around since they can still appear
visible in some way.
Possibly we should unbind all devices which don't cause problems by being
unbound. Most likely we can remove everything except USB controllers, hubs
and emulators. We can consider that later.
Signed-of
Update this code to support CONFIG_BLK. Each USB storage device can have
one or more block devices as children, each one representing a LUN
(logical unit) of the USB device.
Signed-off-by: Simon Glass
---
Changes in v2: None
common/usb_storage.c | 141 ++
Update the host driver to support driver model for block devices. A future
commit will remove the old code, but for now it is useful to be able to use
it both with and without CONFIG_BLK.
Signed-off-by: Simon Glass
---
Changes in v2:
- Use snprintf() to avoid overflow
cmd/host.c
To ease conversion to driver model, add helper functions which deal with
calling each block device method. With driver model we can reimplement these
functions with the same arguments.
Use inline functions to avoid increasing code size on some boards.
Signed-off-by: Simon Glass
Reviewed-by: Bin
1 - 100 of 179 matches
Mail list logo