Re: [U-Boot] [PATCH] arm: dts: am4372: fix DTC warnings

2018-03-22 Thread Felipe Balbi
Hi, Tom Rini writes: > On Wed, Mar 21, 2018 at 03:44:45PM +0200, Felipe Balbi wrote: >> The following warnings are fixed: >> >> arch/arm/dts/am43x-epos-evm.dtb: Warning (interrupts_property): interrupts >> size is (8), expected multiple of 12 in /ocp/mcasp@48038000

[U-Boot] [PATCH] arm: dts: am4372: fix DTC warnings

2018-03-21 Thread Felipe Balbi
is (8), expected multiple of 12 in /ocp/mcasp@48038000 arch/arm/dts/am437x-sk-evm.dtb: Warning (interrupts_property): interrupts size is (8), expected multiple of 12 in /ocp/mcasp@4803C000 The fix was basically to copy the missing data from mainline linux. Signed-off-by: Felipe Balbi --- arch

Re: [U-Boot] [PATCH v2] usb: dwc3: Allocate and flush dwc->ep0_trb in a cache aligned manner

2017-10-16 Thread Felipe Balbi
Hi, Faiz Abbas writes: Marek Vasut writes: > On 10/16/2017 07:21 AM, Faiz Abbas wrote: >> A flush of the cache is required before any outbound DMA access can >> take place. The minimum size that can be flushed from the cache is >> one cache line size. Therefore, any buffer

Re: [U-Boot] [PATCH v2] usb: dwc3: Allocate and flush dwc->ep0_trb in a cache aligned manner

2017-10-16 Thread Felipe Balbi
Hi, Faiz Abbas writes: > Hi Felipe, > > On Monday 16 October 2017 07:25 PM, Felipe Balbi wrote: >> >> Hi, >> >> Marek Vasut writes: >>> On 10/16/2017 07:21 AM, Faiz Abbas wrote: >>>> A flush of the cache is required before any outbound

Re: [U-Boot] [PATCH v2] usb: dwc3: Allocate and flush dwc->ep0_trb in a cache aligned manner

2017-10-16 Thread Felipe Balbi
Hi, Marek Vasut writes: > On 10/16/2017 07:21 AM, Faiz Abbas wrote: >> A flush of the cache is required before any outbound DMA access can >> take place. The minimum size that can be flushed from the cache is >> one cache line size. Therefore, any buffer allocated for DMA should >> be in multipl

Re: [U-Boot] [PATCH v2 3/3] x86: Add Intel Edison board files

2017-07-06 Thread Felipe Balbi
Hi, Andy Shevchenko writes: > On Thu, 2017-07-06 at 12:44 +0300, Andy Shevchenko wrote: >> On Thu, 2017-07-06 at 12:07 +0800, Bin Meng wrote: >> > Hi Andy, >> > >> > On Thu, Jul 6, 2017 at 4:56 AM, Andy Shevchenko >> > wrote: >> > > Add Intel Edison board which is using U-Boot. > >> > > +confi

Re: [U-Boot] drivers: usb: dfu: set serial number from board code was: [ANN] U-Boot v2017.05-rc2 released

2017-06-26 Thread Felipe Balbi
bisect with tbot, and found: >> >>>>>>> >> >>>>>>> 2017-04-19 07:24:30,717:CON:tbotlib # tb_ctrl: git >> >>>>>>> bisect visualize >> >>>>>>> 2017-04-19 07:24:30,783:CON:tbotlib # tb_ctrl:

Re: [U-Boot] [PATCH] usb: dwc3: gadget: make cache-maintenance on event buffers more robust

2017-04-05 Thread Felipe Balbi
Hi, "Dr. Philipp Tomsich" writes: Good point on the “long”, especially as I just copied this from other occurences and it’s consistently wrong throughout DWC3 in U-Boot: >>> >>> Hrm, I thought the driver was ported over from Linux, so is this broken >>> in Linux too ? >> >> haven't

Re: [U-Boot] [PATCH] usb: dwc3: gadget: make cache-maintenance on event buffers more robust

2017-04-05 Thread Felipe Balbi
Hi, Marek Vasut writes: Merely using dma_alloc_coherent does not ensure that there is no stale data left in the caches for the allocated DMA buffer (i.e. that the affected cacheline may still be dirty). The original code was doing the following (on AArch64, which tr

Re: [U-Boot] [PATCH] usb: dwc3: gadget: make cache-maintenance on event buffers more robust

2017-04-05 Thread Felipe Balbi
Hi, Marek Vasut writes: >> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c >> index b2c7eb1..f58c7ba 100644 >> --- a/drivers/usb/dwc3/core.c >> +++ b/drivers/usb/dwc3/core.c >> @@ -125,6 +125,8 @@ static struct dwc3_event_buffer >> *dwc3_alloc_one_event_buffer(struct dwc3 *dwc, >

Re: [U-Boot] __FILE__ usage and and SPL limits for SRAM

2017-03-28 Thread Felipe Balbi
Hi, Nishanth Menon writes: > Hi Masahiro-san, > > On Tue, Mar 28, 2017 at 1:29 AM, Masahiro Yamada > wrote: > [...] >> >> When O= is given, the build system runs in the object tree, >> not in the source tree. >> (This is the same as Linux.) >> >> If you see the top Makefile: >> >> ifeq ($(KBUIL

Re: [U-Boot] [u-boot PATCH v5 04/10] ti: common: board_detect: commodify ethaddr environment setting code

2017-03-15 Thread Felipe Balbi
Hi, Roger Quadros writes: >> On Tue, Mar 14, 2017 at 3:05 PM Roger Quadros > > wrote: >> >> +void board_ti_set_ethaddr(int index) >> +{ >> + uint8_t mac_addr[6]; >> + int i; >> + u64 mac1, mac2; >> + u8 mac_addr1[6], mac_addr

Re: [U-Boot] [u-boot PATCH v5 04/10] ti: common: board_detect: commodify ethaddr environment setting code

2017-03-14 Thread Felipe Balbi
Hi, On Tue, Mar 14, 2017 at 3:05 PM Roger Quadros wrote: +void board_ti_set_ethaddr(int index) +{ + uint8_t mac_addr[6]; + int i; + u64 mac1, mac2; + u8 mac_addr1[6], mac_addr2[6]; + int num_macs; + /* +* Export any Ethernet MAC addresses from EEPROM.

Re: [U-Boot] [u-boot PATCH v4 04/10] ti: common: board_detect: commodify ethaddr environment setting code

2017-03-13 Thread Felipe Balbi
Hi, Roger Quadros writes: > +void board_ti_set_ethaddr(int index) > +{ > + uint8_t mac_addr[6]; > + int i; > + u64 mac1, mac2; > + u8 mac_addr1[6], mac_addr2[6]; > + int num_macs; > + /* > + * Export any Ethernet MAC addresses from EEPROM. > + * The 2 MAC addres

Re: [U-Boot] [PATCH 01/31] ti: common: board_detect: Allow settings board detection variables manually

2017-03-02 Thread Felipe Balbi
Hi, Franklin S Cooper Jr writes: > From: Nishanth Menon > > In some situations the EEPROM used for board detection may not be > programmed or simply programmed incorrectly. Therefore, it may be > necessary to "simulate" reading the contents of the EEPROM to set > appropriate variables used in t

[U-Boot] [PATCH 1/3] usb: gadget: g_dnl: hold maximum string descriptor

2017-02-22 Thread Felipe Balbi
A USB String descriptor can be up to 255 characters long and it's not NULL terminated according to the USB spec. This means our MAX_STRING_SERIAL should be 256 (to cope with NULL terminator). Signed-off-by: Felipe Balbi --- No access to a board right now, compile tested only driver

[U-Boot] [PATCH 2/3] usb: gadget: g_dnl: only set iSerialNumber if we have a serial#

2017-02-22 Thread Felipe Balbi
We don't want to claim that we support a serial number string and later return nothing. Because of that, if g_dnl_serial is an empty string, let's skip setting iSerialNumber to a valid number. Signed-off-by: Felipe Balbi --- No access to a board right now, compile tested only d

[U-Boot] [PATCH 3/3] usb: gadget: g_dnl: don't set iProduct nor iSerialNumber

2017-02-22 Thread Felipe Balbi
Both these numbers are calculated in runtime and dynamically assigned to the device descriptor during bind(). Signed-off-by: Felipe Balbi --- No access to a board right now, compile tested only drivers/usb/gadget/g_dnl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[U-Boot] [PATCH 1/2] usb: gadget: g_dnl: fix g_dnl_set_serialnumber()

2017-02-22 Thread Felipe Balbi
, USB Command Verifier fails our test of Device Descriptor since we will claim to have a serial number without really providing one when requested. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/g_dnl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/gadget/g_dn

[U-Boot] [PATCH 2/2] usb: gadget: f_dfu: set serial number if serial# is valid

2017-02-22 Thread Felipe Balbi
With this patch, USB Command Verifier is happy with our DFU implementation on Chapter 9 tests. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/f_dfu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c index 64cdfa7c98ec

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-22 Thread Felipe Balbi
Hi, Lukasz Majewski writes: [snip] >> > I do appreciate that you tested it - even better, that with >> > different approach. >> > >> > However, some time ago Stephen Warren has rewritten tests for DFU, >> > UMS to use some python infrastructure. Those tests (especially DFU, >> > test corner ca

Re: [U-Boot] [PATCH] arm: am57xx: Update bootloader partition size

2017-02-21 Thread Felipe Balbi
Hi, Sam Protsenko writes: > From: Praneeth Bajjuri > > The current size of u-boot is already ~840 KiB. > > This patch is to increase bootloader partition size up to 1 MiB > and thereby fix flashing error like below: > > sending 'bootloader' (840 KB)... > OKAY [ 0.048s] > writing 'b

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-21 Thread Felipe Balbi
Hi, Lukasz Majewski writes: >> Lukasz Majewski writes: >> >> > >> drivers/usb/gadget/f_dfu.c | 2 +- >> >> > >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> > >> >> >> > >> diff --git a/drivers/usb/gadget/f_dfu.c >> >> > >> b/drivers/usb/gadget/f_dfu.c index 8e7c981657..64cdfa7c98

Re: [U-Boot] [PATCH] arm: am57xx: Update bootloader partition size

2017-02-21 Thread Felipe Balbi
Hi, Sam Protsenko writes: > On Tue, Feb 21, 2017 at 10:35 PM, Felipe Balbi > wrote: >> >> Hi, >> >> Sam Protsenko writes: >>> From: Praneeth Bajjuri >>> >>> The current size of u-boot is already ~840 KiB. >>> >>> This

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-21 Thread Felipe Balbi
Hi, Lukasz Majewski writes: >> Lukasz Majewski writes: >> >> Lukasz Majewski writes: >> >> >> > >> drivers/usb/gadget/f_dfu.c | 2 +- >> >> >> > >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> >> > >> >> >> >> > >> diff --git a/drivers/usb/gadget/f_dfu.c >> >> >> > >> b/drivers/u

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-21 Thread Felipe Balbi
Hi Lukasz, Lukasz Majewski writes: >> > >> drivers/usb/gadget/f_dfu.c | 2 +- >> > >> 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> >> > >> diff --git a/drivers/usb/gadget/f_dfu.c >> > >> b/drivers/usb/gadget/f_dfu.c index 8e7c981657..64cdfa7c98 >> > >> 100644 --- a/drivers/usb/g

Re: [U-Boot] [PATCH v1] mmc: tangier: Add Intel Tangier eMMC/SDHCI driver

2017-02-14 Thread Felipe Balbi
Hi, Jaehoon Chung writes: > Hi Andy, > > On 02/14/2017 11:18 PM, Andy Shevchenko wrote: >> From: Felipe Balbi >> >> This patch adds Intel Tangier eMMC/SDHCI driver. >> >> Signed-off-by: Vincent Tinelli >> Signed-off-by: Felipe Balbi >> Sig

Re: [U-Boot] [PATCH v1] mmc: pci: only compile on platforms that need it

2017-02-14 Thread Felipe Balbi
Hi, Jaehoon Chung writes: > On 02/13/2017 11:56 PM, Andy Shevchenko wrote: >> From: Felipe Balbi >> >> We should only compile pci_mmc.c on platforms that actually need >> this. Some platforms are using generic sdhci through driver model. >> >> Signed

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-13 Thread Felipe Balbi
Hi Lukasz, Lukasz Majewski writes: > Hi Felipe, > > Thanks for the patch. > Please see my comments below. > > On 13 Feb 2017 11:42 am, Felipe Balbi wrote: > > Hi, > > Marek Vasut writes: > > On 02/10/2017 05:32 PM, Andy Shevchenko wrote: > >&

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-13 Thread Felipe Balbi
Hi, Marek Vasut writes: > On 02/10/2017 05:32 PM, Andy Shevchenko wrote: >> From: Felipe Balbi >> >> If last packet is short, we shouldn't write req->length bytes to >> non-volatile media, we should write only what's available to us, which >>

Re: [U-Boot] [PATCH 2/3] armv8/fsl-layerscape: add dwc3 gadget driver support

2016-06-01 Thread Felipe Balbi
Hi, Rajesh Bhagat writes: >> Marek Vasut writes: >> >> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index >> >> 85cc96a..5eeb71d 100644 >> >> --- a/drivers/usb/dwc3/core.c >> >> +++ b/drivers/usb/dwc3/core.c >> >> @@ -690,6 +690,18 @@ int dwc3_uboot_init(struct dwc3_device *dw

Re: [U-Boot] [PATCH 2/3] armv8/fsl-layerscape: add dwc3 gadget driver support

2016-05-31 Thread Felipe Balbi
Hi, Marek Vasut writes: >> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c >> index 85cc96a..5eeb71d 100644 >> --- a/drivers/usb/dwc3/core.c >> +++ b/drivers/usb/dwc3/core.c >> @@ -690,6 +690,18 @@ int dwc3_uboot_init(struct dwc3_device *dwc3_dev) >> return -ENOMEM; >

Re: [U-Boot] [PATCH 1/2] usb: host: xhci-omap: fix build break

2015-10-16 Thread Felipe Balbi
Tom Rini writes: > On Fri, Oct 16, 2015 at 03:09:02PM -0500, Felipe Balbi wrote: >> Felipe Balbi writes: >> > Fix the following build break: >> > >> > drivers/usb/host/xhci-omap.c:35:5: error: ‘board_usb_init’ aliased to >> > external symbol ‘_

Re: [U-Boot] [PATCH 2/2] usb: dwc3: fix build warnings

2015-10-16 Thread Felipe Balbi
Felipe Balbi writes: > fix the following build warnings: > > drivers/usb/dwc3/core.c: In function ‘dwc3_uboot_init’: > drivers/usb/dwc3/core.c:625:6: warning: ‘dev’ is used uninitialized in this > function [-Wuninitialized] > mem = devm_kzalloc(dev, sizeof(*dwc) + DWC3_ALIG

Re: [U-Boot] [PATCH 1/2] usb: host: xhci-omap: fix build break

2015-10-16 Thread Felipe Balbi
Felipe Balbi writes: > Fix the following build break: > > drivers/usb/host/xhci-omap.c:35:5: error: ‘board_usb_init’ aliased to > external symbol ‘__board_usb_init’ > int board_usb_init(int index, enum usb_init_type init) > ^ > > Signed-off-by: Felipe Balbi pi

[U-Boot] [PATCH 2/2] usb: dwc3: fix build warnings

2015-10-01 Thread Felipe Balbi
-omap.c: In function ‘dwc3_omap_uboot_init’: drivers/usb/dwc3/dwc3-omap.c:380:7: warning: ‘dev’ is used uninitialized in this function [-Wuninitialized] omap = devm_kzalloc(dev, sizeof(*omap), GFP_KERNEL); Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.c | 2 +- drivers/usb/dwc3/dwc3

[U-Boot] [PATCH 1/2] usb: host: xhci-omap: fix build break

2015-10-01 Thread Felipe Balbi
Fix the following build break: drivers/usb/host/xhci-omap.c:35:5: error: ‘board_usb_init’ aliased to external symbol ‘__board_usb_init’ int board_usb_init(int index, enum usb_init_type init) ^ Signed-off-by: Felipe Balbi --- drivers/usb/host/xhci-omap.c | 2 +- 1 file changed, 1

[U-Boot] u-boot built with gcc5 dies in memcpy()

2015-09-02 Thread Felipe Balbi
Hi, When using u-boot's HEAD built with GCC 5, it hangs on the memcpy() after reading u-boot.img from MMC card. Unfortunately I won't be able to spend a lot of time debugging this, so I thought I'd report. cheers -- balbi signature.asc Description: Digital signature _

Re: [U-Boot] [PATCH 41/45] arm: Remove omap3_evm board

2015-08-31 Thread Felipe Balbi
On Sun, Aug 30, 2015 at 07:19:35PM -0600, Simon Glass wrote: > This board has not been converted to generic board by the deadline. > Remove it. > > Signed-off-by: Simon Glass I have a feeling people still this too. > --- > > arch/arm/cpu/armv7/omap3/Kconfig | 13 -- > board/quipos/cair

Re: [U-Boot] [PATCH 43/45] arm: Remove ti814x_evm board

2015-08-31 Thread Felipe Balbi
Hi, On Sun, Aug 30, 2015 at 07:19:37PM -0600, Simon Glass wrote: > This board has not been converted to generic board by the deadline. > Remove it. > > Signed-off-by: Simon Glass there are people using this and ti816x at least. > --- > > arch/arm/Kconfig | 6 -- > board/ti/ti81

[U-Boot] [PATCH] board: add support for Vision System's Baltos Industrial PC

2015-05-12 Thread Felipe Balbi
From: Yegor Yefremov Vision Systems's Baltos is based on AM335x SoC from Texas Instruments. This patch adds support such Industrial PCs in mainline u-boot. [ ba...@ti.com: updated original patch to current u-boot ] Signed-off-by: Yegor Yefremov Signed-off-by: Felipe Balbi --- This

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Felipe Balbi
Hi, On Tue, Apr 21, 2015 at 03:07:48PM -0400, Tom Rini wrote: > On Tue, Apr 21, 2015 at 01:05:24PM -0500, Felipe Balbi wrote: > > On Tue, Apr 21, 2015 at 02:01:31PM -0400, Matt Porter wrote: > > > On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > > > >

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 02:01:31PM -0400, Matt Porter wrote: > On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > > On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > > > On ARM v7M, the processor will return to ARM mode when executing > > > a bl

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 12:54:26PM -0500, Felipe Balbi wrote: > On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > > On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > > > On ARM v7M, the processor will return to ARM mode when executing > > > a

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > > On ARM v7M, the processor will return to ARM mode when executing > > a blx instruction with bit 0 of the address == 0. Always set it > > but that&

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > On ARM v7M, the processor will return to ARM mode when executing > a blx instruction with bit 0 of the address == 0. Always set it but that's what the 'x' is for, right ? eXchange the CPU mode. > to 1 to stay in thumb mode. > > Signe

[U-Boot] [PATCH v2 7/8] pmic: add tps62362 simple wrapper code

2015-01-06 Thread Felipe Balbi
This regulator is used with AM437x IDK to feed VDD_MPU, without means to scale VDD_MPU we can't support higher frequencies. Signed-off-by: Felipe Balbi --- Changes since v1: - git add the header which I had missed originally drivers/power/pmic/Makefile| 1 + drivers/

Re: [U-Boot] [PATCH 7/8] pmic: add tps62362 simple wrapper code

2015-01-06 Thread Felipe Balbi
On Tue, Jan 06, 2015 at 02:28:23PM +0530, Mugunthan V N wrote: > On Tuesday 23 December 2014 03:56 AM, Felipe Balbi wrote: > > This regulator is used with AM437x IDK to feed > > VDD_MPU, without means to scale VDD_MPU we can't > > support higher frequencies. > >

[U-Boot] [PATCH 8/8] board: ti: am43xx: add support for AM43xx Industrial Development Kit

2014-12-22 Thread Felipe Balbi
AM43xx Industrial Development Kit is a new board based on AM437x line of SoCs. Targetted at Industrial Automation applications, it comes with EtherCAT, motor control and other goodies. Thanks to James Doublesin for all the help. Cc: James Doublesin Signed-off-by: Felipe Balbi --- board/ti

[U-Boot] [PATCH 7/8] pmic: add tps62362 simple wrapper code

2014-12-22 Thread Felipe Balbi
This regulator is used with AM437x IDK to feed VDD_MPU, without means to scale VDD_MPU we can't support higher frequencies. Signed-off-by: Felipe Balbi --- drivers/power/pmic/Makefile| 1 + drivers/power/pmic/pmic_tps62362.c | 47 ++ 2 files ch

[U-Boot] [PATCH 6/8] board: ti: am43xx: take care of all OPPs

2014-12-22 Thread Felipe Balbi
Make sure that all OPPs are checked on scale_vcores(). While at that also fix 600MHz VDD_MPU voltage according to AM437x Data Manual available at [1]. Table 5-3 on that document, lists all valid voltages per frequency. [1] http://www.ti.com/lit/ds/symlink/am4379.pdf Signed-off-by: Felipe Balbi

[U-Boot] [PATCH 5/8] power: tps65218: define all valid VDD_MPU voltages

2014-12-22 Thread Felipe Balbi
DCDC1 is used as VDD_MPU in all known boards, let's define all other valid voltages for that rail so it can be used by our boards. Signed-off-by: Felipe Balbi --- include/power/tps65218.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/power/tps65218.h b/include/power/tps65

[U-Boot] [PATCH 3/8] arm: am437x: Correct PLL frequency for 25MHz

2014-12-22 Thread Felipe Balbi
From: James Doublesin The frequencies for 25MHz in dpll_per were out of spec for 25MHz, correct. Signed-off-by: James Doublesin Signed-off-by: Felipe Balbi --- board/ti/am43xx/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/ti/am43xx/board.c b/board/ti

[U-Boot] [PATCH 1/8] arm: am437x: PLL values for all input frequencies

2014-12-22 Thread Felipe Balbi
From: James Doublesin Need to provide PLL values for all possible input frequencies (19.2, 24, 25, 26MHz). Values provide are also optimized for jitter (needed especially for PER PLL and DDR PLL). Signed-off-by: James Doublesin Signed-off-by: Felipe Balbi --- board/ti/am43xx/board.c | 59

[U-Boot] [PATCH 2/8] arm: am437x: Enable hardware leveling for EMIF

2014-12-22 Thread Felipe Balbi
: Felipe Balbi Tested-by: Tom Rini Signed-off-by: James Doublesin Signed-off-by: Felipe Balbi --- arch/arm/cpu/armv7/am33xx/ddr.c| 134 -- arch/arm/cpu/armv7/am33xx/emif4.c | 5 +- arch/arm/include/asm/arch-am33xx/cpu.h | 11

[U-Boot] [PATCH 4/8] board: ti: am43xx: replace if else if else with a switch

2014-12-22 Thread Felipe Balbi
A switch statement fits better in this case, specially considering we have a few extra frequencies to use. Signed-off-by: Felipe Balbi --- board/ti/am43xx/board.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index

[U-Boot] [PATCH] beagle_x15: enable NFS command

2014-12-10 Thread Felipe Balbi
NFS is useful for loading zImage and dts through NFS export. It saves us from running two services for loading files over the network (tftp and nfs). Signed-off-by: Felipe Balbi --- include/configs/beagle_x15.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/beagle_x15.h b

Re: [U-Boot] [PATCH v3] bcm281xx: add support for "USB OTG clock"

2014-12-09 Thread Felipe Balbi
On Tue, Dec 09, 2014 at 11:40:11AM -0800, Steve Rae wrote: > enable this clock with the following: > clk_usb_otg_enable((void *)HSOTG_BASE_ADDR) > > Signed-off-by: Steve Rae my reviewed by remains :-) Reviewed-by: Felipe Balbi > --- > > Changes in v3: > clean up

Re: [U-Boot] [PATCH v2] bcm281xx: add support for "USB OTG clock"

2014-12-06 Thread Felipe Balbi
On Sat, Dec 06, 2014 at 10:24:33AM -0800, Steve Rae wrote: > enable this clock with the following: > clk_usb_otg_enable((void *)HSOTG_BASE_ADDR) > > Signed-off-by: Steve Rae Reviewed-by: Felipe Balbi > --- > > Changes in v2: > removed unrelated changes as per Feli

Re: [U-Boot] [PATCH v1] bcm281xx: add support for "USB OTG clock"

2014-12-05 Thread Felipe Balbi
Hi, On Fri, Dec 05, 2014 at 05:02:16PM -0800, Steve Rae wrote: > enable this clock with the following: > clk_usb_otg_enable((void *)HSOTG_BASE_ADDR) > > Signed-off-by: Steve Rae > --- > > arch/arm/cpu/armv7/bcm281xx/Makefile| 3 ++- > arch/arm/cpu/armv7/bcm281xx/clk-bcm281xx.c | 20

[U-Boot] [PATCH v3 11/11] beagle_x15: add board support for Beagle x15

2014-11-10 Thread Felipe Balbi
, uSD, Analog audio in/out, dual 1G Ethernet. For more information, refer to: http://www.elinux.org/Beagleboard:BeagleBoard-X15 Signed-off-by: Felipe Balbi Signed-off-by: Nishanth Menon --- Changes since v2: - new DDR timings for EMIF2 - removed some pointless comments - dr

Re: [U-Boot] [PATCH v2 11/11] beagle_x15: add board support for Beagle x15

2014-11-10 Thread Felipe Balbi
Hi, On Mon, Nov 10, 2014 at 01:47:48PM -0500, Tom Rini wrote: > On Thu, Nov 06, 2014 at 08:44:27AM -0600, Felipe Balbi wrote: > > > BeagleBoard-X15 is the next generation Open Source > > Hardware BeagleBoard based on TI's AM5728 SoC > > featuring dual core 1.5GHZ A1

[U-Boot] [PATCH v2 11/11] beagle_x15: add board support for Beagle x15

2014-11-06 Thread Felipe Balbi
, uSD, Analog audio in/out, dual 1G Ethernet. For more information, refer to: http://www.elinux.org/Beagleboard:BeagleBoard-X15 Signed-off-by: Felipe Balbi Signed-off-by: Nishanth Menon --- changes since v1: new commit log arch/arm/cpu/armv7/omap5/Kconfig | 4 + board/ti/beagle_x15/Kc

Re: [U-Boot] [PATCH 11/11] beagle_x15: add board support for Beagle x15

2014-11-06 Thread Felipe Balbi
On Thu, Nov 06, 2014 at 08:35:41AM -0600, menon.nisha...@gmail.com wrote: > On Thu, Nov 6, 2014 at 8:28 AM, Felipe Balbi wrote: > > This is the bare minimum support for Beagle x15 > > into u-boot. There is still quite some work in > > order to get this in good shape,

[U-Boot] [PATCH 10/11] arm: omap: add support for am57xx devices

2014-11-06 Thread Felipe Balbi
just add a few ifdefs around because this device is very similar to dra7xxx. Signed-off-by: Felipe Balbi --- arch/arm/cpu/armv7/omap-common/boot-common.c | 2 +- arch/arm/include/asm/arch-omap5/clock.h | 2 +- arch/arm/include/asm/arch-omap5/omap.h | 4 ++-- drivers/mmc/omap_hsmmc.c

[U-Boot] [PATCH 09/11] arm: omap_common: expose tps659038 and dra7xx_dplls

2014-11-06 Thread Felipe Balbi
expose those two definitions so they can be used by another board which we're adding in upcoming patches. Signed-off-by: Felipe Balbi --- arch/arm/include/asm/omap_common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/omap_common.h b/arch/arm/includ

[U-Boot] [PATCH 06/11] configs: omap5_common : Boot rootfs from sd card by default

2014-11-06 Thread Felipe Balbi
ned-off-by: Franklin Cooper Jr. Signed-off-by: Felipe Balbi --- include/configs/ti_omap5_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h index 5b03fb1..de96d7d 100644 --- a/include/configs/ti_omap

[U-Boot] [PATCH 08/11] arm: omap5: sdram: mark emif_get_ext_phy_ctrl_const_regs __weak

2014-11-06 Thread Felipe Balbi
this will allow for boards to overwrite those in case memory setup is different. Signed-off-by: Felipe Balbi --- arch/arm/cpu/armv7/omap5/sdram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/omap5/sdram.c b/arch/arm/cpu/armv7/omap5/sdram.c index 065199b

[U-Boot] [PATCH 11/11] beagle_x15: add board support for Beagle x15

2014-11-06 Thread Felipe Balbi
This is the bare minimum support for Beagle x15 into u-boot. There is still quite some work in order to get this in good shape, but it's a start. Signed-off-by: Felipe Balbi Signed-off-by: Nishanth Menon --- arch/arm/cpu/armv7/omap5/Kconfig | 4 + board/ti/beagle_x15/Kconfig

[U-Boot] [PATCH 05/11] arm: omap-common: emif: allow to map memory without interleaving

2014-11-06 Thread Felipe Balbi
If we want to have two sections, one on each EMIF, without interleaving, current code wouldn't enable emif2. Fix that problem. Signed-off-by: Felipe Balbi --- arch/arm/cpu/armv7/omap-common/emif-common.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/ar

[U-Boot] [PATCH 01/11] arm: omap5: don't enable misc_init_r by default

2014-11-06 Thread Felipe Balbi
Out of all OMAP5-like boards, only one of them needs CONFIG_MISC_INIT_R, so it's best to enable that for that particular board only, instead of enabling for all boards unconditionally. Signed-off-by: Felipe Balbi --- board/ti/dra7xx/evm.c | 12 include/configs/cm_

[U-Boot] [PATCH 03/11] arm: dra7xx: prcm: add missing registers

2014-11-06 Thread Felipe Balbi
some boards might want to use USB1 for host, without fiddling those registers it'll be impossible. Signed-off-by: Felipe Balbi --- arch/arm/cpu/armv7/omap5/prcm-regs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv7/omap5/prcm-regs.c b/arch/arm/cpu/armv7/omap5

[U-Boot] [PATCH 07/11] arm: omap5: make hw_init_data weak

2014-11-06 Thread Felipe Balbi
this way we can let boards overwrite based on what they need. Signed-off-by: Felipe Balbi --- arch/arm/cpu/armv7/omap5/hw_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/omap5/hw_data.c b/arch/arm/cpu/armv7/omap5/hw_data.c index 8b4d53a..95f1686

[U-Boot] [PATCH 04/11] usb: phy: omap_usb_phy: fix build breakage

2014-11-06 Thread Felipe Balbi
there's no such function usb3_phy_power(), it's likely that author meant to call, usb_phy_power() instead, but that's already called properly from xhci-omap.c. Signed-off-by: Felipe Balbi --- drivers/usb/phy/omap_usb_phy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/

[U-Boot] [PATCH 02/11] arm: omap5: tps659038: rename regulator defines

2014-11-06 Thread Felipe Balbi
Those regulators don't have any coupling with what they supply, so remove the suffixes in order to not confuse anybody. Signed-off-by: Felipe Balbi --- arch/arm/cpu/armv7/omap5/hw_data.c | 10 +- arch/arm/include/asm/arch-omap5/clock.h | 10 +- 2 files change

Re: [U-Boot] [PATCH 1/2] common: Makefile: allow for spl builds with env_fat

2014-10-03 Thread Felipe Balbi
On Thu, Sep 25, 2014 at 07:38:26PM -0500, Felipe Balbi wrote: > On Tue, Sep 23, 2014 at 10:44:17AM -0500, Felipe Balbi wrote: > > If CONFIG_SPL_BUILD and CONFIG_ENV_IS_IN_FAT are > > defined, u-boot spl will fail to build. Fix that. > > > > Signed-off-by: Felipe

Re: [U-Boot] [PATCH] usb: ci_udc: respect CONFIG_USB_GADGET_DUALSPEED

2014-09-29 Thread Felipe Balbi
on. > > Signed-off-by: Eric Nelson Reviewed-by: Felipe Balbi -- balbi signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH V2] usb: ci_udc: respect CONFIG_USB_GADGET_DUALSPEED

2014-09-28 Thread Felipe Balbi
On Sun, Sep 28, 2014 at 05:36:56PM -0700, Eric Nelson wrote: > @@ -777,6 +778,11 @@ static int ci_pullup(struct usb_gadget *gadget, int > is_on) > /* select DEVICE mode */ > writel(USBMODE_DEVICE, &udc->usbmode); > > +#if !defined(CONFIG_USB_GADGET_DUALSPEED) && defin

Re: [U-Boot] Please pull u-boot-dm.git branch for-tom

2014-09-26 Thread Felipe Balbi
On Fri, Sep 26, 2014 at 05:52:11PM -0600, Simon Glass wrote: > Hi Tom, > > Here are the changes that were reviewed by Jagan (SPI maintainer). > > Branch is 'for-tom' as I had trouble with master (see below). > > The following changes since commit f9860cf081efdf32c8a01b9fc271fe55e2a79f8d: > >

Re: [U-Boot] [PATCH 2/2] arm: am43xx: switch over to CONFIG_ENV_IS_IN_FAT

2014-09-25 Thread Felipe Balbi
On Tue, Sep 23, 2014 at 10:44:18AM -0500, Felipe Balbi wrote: > By using CONFIG_ENV_IS_IN_FAT it's far easier > to have a private, minimal environment for e.g. > booting off of network or mounting rootfs on NFS > without having to modify the configuration header. > > Sign

Re: [U-Boot] [PATCH 1/2] common: Makefile: allow for spl builds with env_fat

2014-09-25 Thread Felipe Balbi
On Tue, Sep 23, 2014 at 10:44:17AM -0500, Felipe Balbi wrote: > If CONFIG_SPL_BUILD and CONFIG_ENV_IS_IN_FAT are > defined, u-boot spl will fail to build. Fix that. > > Signed-off-by: Felipe Balbi ping > --- > common/Makefile | 1 + > 1 file changed, 1 insertion(+) >

[U-Boot] [PATCH 2/2] arm: am43xx: switch over to CONFIG_ENV_IS_IN_FAT

2014-09-23 Thread Felipe Balbi
By using CONFIG_ENV_IS_IN_FAT it's far easier to have a private, minimal environment for e.g. booting off of network or mounting rootfs on NFS without having to modify the configuration header. Signed-off-by: Felipe Balbi --- include/configs/am43xx_evm.h | 11 +-- 1 file chang

[U-Boot] [PATCH 1/2] common: Makefile: allow for spl builds with env_fat

2014-09-23 Thread Felipe Balbi
If CONFIG_SPL_BUILD and CONFIG_ENV_IS_IN_FAT are defined, u-boot spl will fail to build. Fix that. Signed-off-by: Felipe Balbi --- common/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/common/Makefile b/common/Makefile index aca0f7f..1ff7ce0 100644 --- a/common/Makefile +++ b

Re: [U-Boot] commit 83e359adf9f578a58f20daf2e4425a754defac7b breaks mmc

2014-09-09 Thread Felipe Balbi
Hi, On Tue, Sep 09, 2014 at 12:09:02PM -0500, Felipe Balbi wrote: > Hi, > > commit 83e359a (am335x_evm: Enable CONFIG_SPL_ENV_SUPPORT on EMMC_BOOT) > breaks MMC on some boards. I believe it only breaks if EMMC has no > partition on it, so that would point out to a bug on spl env s

[U-Boot] commit 83e359adf9f578a58f20daf2e4425a754defac7b breaks mmc

2014-09-09 Thread Felipe Balbi
Hi, commit 83e359a (am335x_evm: Enable CONFIG_SPL_ENV_SUPPORT on EMMC_BOOT) breaks MMC on some boards. I believe it only breaks if EMMC has no partition on it, so that would point out to a bug on spl env support itself and this has only exposed it. Here's a bisection log anyway: git bisect start

Re: [U-Boot] [UBOOT RFC PATCH 13/13] dwc3: core: Change the bounce buffer size to 4096

2014-08-22 Thread Felipe Balbi
On Fri, Aug 22, 2014 at 04:32:10PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Tuesday 19 August 2014 09:57 PM, Felipe Balbi wrote: > > On Tue, Aug 19, 2014 at 09:45:11PM +0530, Kishon Vijay Abraham I wrote: > >> Hi, > >> > >> On Monday 18 August 2

Re: [U-Boot] [UBOOT RFC PATCH 07/13] usb: gadget: g_dnl: Explicitly set the max packet size in descriptor

2014-08-21 Thread Felipe Balbi
On Thu, Aug 21, 2014 at 10:00:46AM +0200, Lukasz Majewski wrote: > Hi Felipe, > > > On Wed, Aug 20, 2014 at 09:34:13AM +0200, Lukasz Majewski wrote: > > > Hi Felipe, > > > > > > > On Tue, Aug 19, 2014 at 09:08:00PM +0530, Kishon Vijay Abraham I > > > > wrote: > > > > > > > > > > > > > > > On Mo

Re: [U-Boot] [UBOOT RFC PATCH 07/13] usb: gadget: g_dnl: Explicitly set the max packet size in descriptor

2014-08-20 Thread Felipe Balbi
On Wed, Aug 20, 2014 at 09:34:13AM +0200, Lukasz Majewski wrote: > Hi Felipe, > > > On Tue, Aug 19, 2014 at 09:08:00PM +0530, Kishon Vijay Abraham I > > wrote: > > > > > > > > > On Monday 18 August 2014 08:26 PM, Lukasz Majewski wrote: > > > > Hi Kishon, > > > > > > > >>> Explicity set the max

Re: [U-Boot] [UBOOT RFC PATCH 13/13] dwc3: core: Change the bounce buffer size to 4096

2014-08-19 Thread Felipe Balbi
On Tue, Aug 19, 2014 at 09:45:11PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Monday 18 August 2014 08:11 PM, Felipe Balbi wrote: > > On Mon, Aug 18, 2014 at 07:58:35PM +0530, Kishon Vijay Abraham I wrote: > >> Bounce buffer is used for transferring request

Re: [U-Boot] [UBOOT RFC PATCH 10/13] board: ti: DRA7: added USB initializtion code

2014-08-19 Thread Felipe Balbi
On Tue, Aug 19, 2014 at 09:43:48PM +0530, Kishon Vijay Abraham I wrote: > Hi Felipe, > > On Monday 18 August 2014 08:10 PM, Felipe Balbi wrote: > > On Mon, Aug 18, 2014 at 07:58:32PM +0530, Kishon Vijay Abraham I wrote: > >> Implemented board_usb_init(),

Re: [U-Boot] [UBOOT RFC PATCH 07/13] usb: gadget: g_dnl: Explicitly set the max packet size in descriptor

2014-08-19 Thread Felipe Balbi
Hi, On Tue, Aug 19, 2014 at 09:12:29PM +0530, Kishon Vijay Abraham I wrote: > @@ -987,7 +987,6 @@ static int composite_bind(struct usb_gadget *gadget) > > memcpy(&cdev->desc, composite->dev, > sizeof(struct usb_device_descriptor)); > -cde

Re: [U-Boot] [UBOOT RFC PATCH 07/13] usb: gadget: g_dnl: Explicitly set the max packet size in descriptor

2014-08-19 Thread Felipe Balbi
On Tue, Aug 19, 2014 at 09:08:00PM +0530, Kishon Vijay Abraham I wrote: > > > On Monday 18 August 2014 08:26 PM, Lukasz Majewski wrote: > > Hi Kishon, > > > >>> Explicity set the max packet size in the device descriptor to 0x40 > >>> as specified in the device class specification for device firm

Re: [U-Boot] [UBOOT RFC PATCH 07/13] usb: gadget: g_dnl: Explicitly set the max packet size in descriptor

2014-08-19 Thread Felipe Balbi
Hi, On Tue, Aug 19, 2014 at 09:04:06PM +0530, Kishon Vijay Abraham I wrote: > On Monday 18 August 2014 08:08 PM, Felipe Balbi wrote: > > On Mon, Aug 18, 2014 at 07:58:29PM +0530, Kishon Vijay Abraham I wrote: > >> Explicity set the max packet size in the device descript

Re: [U-Boot] [UBOOT RFC PATCH 02/13] usb: gadget: udc-core: Add minimal udc-core from linux kernel

2014-08-19 Thread Felipe Balbi
On Tue, Aug 19, 2014 at 08:48:36PM +0530, Kishon Vijay Abraham I wrote: > Hi Lukasz, > > On Tuesday 19 August 2014 02:22 PM, Lukasz Majewski wrote: > > Hi Kishon, > > > >> In order to support multiple USB device controllers in uboot, > >> udc-core is needed. > > > > Is it? In u-boot at best only

Re: [U-Boot] [UBOOT RFC PATCH 02/13] usb: gadget: udc-core: Add minimal udc-core from linux kernel

2014-08-19 Thread Felipe Balbi
-0,0 +1,229 @@ > > +/** > > + * udc-core.c - Core UDC Framework > > + * > > + * Copyright (C) 2014 Texas Instruments Incorporated - > > http://www.ti.com > > + * > > + * Author: Felipe Balbi > > + * > > + * Taken from Linux Kernel v3.16 (dr

Re: [U-Boot] [UBOOT RFC PATCH 13/13] dwc3: core: Change the bounce buffer size to 4096

2014-08-18 Thread Felipe Balbi
On Mon, Aug 18, 2014 at 07:58:35PM +0530, Kishon Vijay Abraham I wrote: > Bounce buffer is used for transferring requests which is not maxpacket > aligned. In the case of DFU the requests can be upto 4096 bytes. > > While the actual fix for this should be using two chained TRBs to handle > the tra

Re: [U-Boot] [UBOOT RFC PATCH 10/13] board: ti: DRA7: added USB initializtion code

2014-08-18 Thread Felipe Balbi
On Mon, Aug 18, 2014 at 07:58:32PM +0530, Kishon Vijay Abraham I wrote: > Implemented board_usb_init(), board_usb_cleanup() and > board_usb_gadget_handle_interrupts() in dra7xx board file that > can be invoked by various gadget drivers. > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/

Re: [U-Boot] [UBOOT RFC PATCH 07/13] usb: gadget: g_dnl: Explicitly set the max packet size in descriptor

2014-08-18 Thread Felipe Balbi
On Mon, Aug 18, 2014 at 07:58:29PM +0530, Kishon Vijay Abraham I wrote: > Explicity set the max packet size in the device descriptor to 0x40 > as specified in the device class specification for device firmware upgrade. > Also changed debug to printf to explicitly notify the user if the > device has

Re: [U-Boot] [UBOOT RFC PATCH 04/13] usb: dwc3: Add dwc3 driver

2014-08-18 Thread Felipe Balbi
:= core.o > +dwc3-$(CONFIG_USB_DWC3_GADGET) += gadget.o ep0.o > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > new file mode 100644 > index 000..66bbe92 > --- /dev/null > +++ b/drivers/usb/dwc3/core.c > @@ -0,0 +1,640 @@ > +/

Re: [U-Boot] [UBOOT RFC PATCH 02/13] usb: gadget: udc-core: Add minimal udc-core from linux kernel

2014-08-18 Thread Felipe Balbi
new file mode 100644 > index 000..bbe919c > --- /dev/null > +++ b/drivers/usb/gadget/udc-core.c > @@ -0,0 +1,229 @@ > +/** > + * udc-core.c - Core UDC Framework > + * > + * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com > + * > + * Author: Fe

  1   2   >