summaryrefslogtreecommitdiff
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Kconfig: gadget: Move CONFIG_USB_FUNCTION_THOR to KconfigLukasz Majewski2018-02-021-0/+6
| | | | | | | | This commit moves USB_FUNCTION_THOR config to Kconfig. Signed-off-by: Lukasz Majewski <lukma@denx.de> Acked-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
* Kconfig: usb: Sort USB_FUNCTION_* entriesLukasz Majewski2018-02-021-7/+7
| | | | | | | Lets provide alphabetical order for USB_FUNCTION_* entries of USB_GADGET_DOWNLOAD Signed-off-by: Lukasz Majewski <lukma@denx.de>
* Merge git://git.denx.de/u-boot-fsl-qoriqTom Rini2018-01-3110-60/+220
|\
| * drivers/ddr/fsl: Cleanup unused variableYork Sun2018-01-305-5/+0
| | | | | | | | | | | | Variable "row_density" is no longer used. Drop it from DIMM structure. Signed-off-by: York Sun <york.sun@nxp.com>
| * drivers/ddr/fsl: Modify binding registers to save time on data initYork Sun2018-01-301-11/+49
| | | | | | | | | | | | | | | | | | | | | | DDR controllers always use binding register to determine the memory space to perform data initialization. In case of controller interleaving, the space is doubled, resulting twice long wait. It wasn't too bad until the memory capacity increases. To reduce the wait time, reduce the binding space to half and restore it after data initialization. Three-way interleaving is no longer used and is removed. Signed-off-by: York Sun <york.sun@nxp.com>
| * drivers/ddr/fsl: Add calculation of register control wordsYork Sun2018-01-303-7/+48
| | | | | | | | | | | | | | | | DDR4 RDIMM has some information in SPD to be used to calculate the control words for register chip. The rest can be found from JEDEC spec DDR4RCD02. Signed-off-by: York Sun <york.sun@nxp.com>
| * drivers/ddr/fsl: Add 3DS RDIMM supportYork Sun2018-01-305-14/+80
| | | | | | | | | | | | | | On top of RDIMM support, add new register calculation to support 3DS RDIMMs. Only symmetrical 3DS is supported at this time. Signed-off-by: York Sun <york.sun@nxp.com>
| * drivers/ddr/fsl: Fix workaround for A009803York Sun2018-01-301-1/+1
| | | | | | | | | | | | | | Wrong field was masked in this workaround due to wrong endianness. The impacted SoCs have big-endian. Signed-off-by: York Sun <york.sun@nxp.com>
| * drivers/ddr/fsl: Fix DDR4 RDIMM supportYork Sun2018-01-303-22/+40
| | | | | | | | | | | | | | | | | | | | | | For DDR4, command/address delay in mode registers and parity latency in timing config register are only needed for UDIMMs, but not RDIMMs. Add additional register rcw_3 for DDR4 RDIMM. Fix mirrored bit for dual rank RDIMMs. Set sdram_cfg_3[DIS_MRS_PAR] for RDIMMs. Fix calculation of timing config registers. Use hexadecimal format for printing RCW (register control word) registers. Signed-off-by: York Sun <york.sun@nxp.com>
| * driver: fsl-mc: Perform fsl-mc fdt fixup for lazyapply dplYogesh Gaur2018-01-301-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | For for case of lazyapply method, API fdt_fixup_board_enet() gets invoked before DPL being deployed. This leads to an issue that fsl-mc fdt fixup status marked as fail and dprc driver didn't get registered in linux boot. Fixes this issue by calling fdt_fixup_board_enet() for case when DPL is deployed successfully in lazyapply method. Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
* | Merge tag 'xilinx-for-v2018.03' of git://git.denx.de/u-boot-microblazeTom Rini2018-01-312-36/+151
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xilinx changes for v2018.03 - Several Kconfig fixes (also moving configs to defconfigs) - Some DTS updates - ZynqMP psu rework based on Zynq concept - Add low level initialization for zc770 and zcu102 - Add support for Zynq zc770 x16 nand configuration - Add mini nand/emmc ZynqMP targets - Some arasan nand changes
| * | nand: arasan: Select CONFIG_SYS_NAND_SELF_INITEzequiel Garcia2018-01-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Arasan NFC driver requires the self-init mode, so it should select it. Instead of having the config header define the macro, it's cleaner to select the option at the Kconfig level. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | nand: arasan_nfc: Use the calculated ecc address for updating ecc registerSiva Durga Prasad Paladugu2018-01-301-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch corrects the ecc address calculation before updating to ecc register. The ecc address has to be calculated based on page, oob and ecc sizes of the device. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | nand: arasan_nfc: Add support for ondie eccSiva Durga Prasad Paladugu2018-01-301-27/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for ondie ecc. As of now this adds support for micron parts which supports ondie ecc. Didn't found any better way to detect ondie ecc support by a device except sorting out with manufacture and device id's. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | nand: arasan_nfc: Move common ecc struct initialization init routineSiva Durga Prasad Paladugu2018-01-301-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | Move common part of ecc structure initialization to arasan_nand_init() routine. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* | | Convert CONFIG_SYS_OMAP24_I2C_SLAVE et al to KconfigAdam Ford2018-01-301-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_SYS_OMAP24_I2C_SLAVE CONFIG_SYS_OMAP24_I2C_SPEED Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Paul Kocialkowski <contact@paulk.fr>
* | | x86: qemu: qfw: Implement acpi_get_rsdp_addr()Bin Meng2018-01-301-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | U-Boot on QEMU does not build ACPI table by ourself, instead it uses the prebuilt ACPI table via the qfw interface. This implements the qfw version of acpi_get_rsdp_addr() for setup_zimage(). Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
* | | mvpp2: Fix warning over 32bit vs 64bit targetsTom Rini2018-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we have a driver that is used on both 32bit and 64bit targets and we are talking about address space we cannot use u64 nor u32 and instead need to use phys_addr_t. Fixes: 377883f16d36 ("net: mvpp2x: fix phy connected to wrong mdio issue") Cc: Stefan Chulski <stefanc@marvell.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
* | | clk: clk_stm32: Add .set_rate callbackPatrice Chotard2018-01-291-0/+6
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | Since 'commit f4fcba5c5baa ("clk: implement clk_set_defaults()")' STM32F4 family board can't boot. Above patch calls clk_set_rate() for all nodes with assigned-clock-rates property. Clock driver for STM32F family doesn't implement .set_rate callback which make clk_set_defaults() exit on error and prevent board to boot. Fixes: f4fcba5c5baa ("clk: implement clk_set_defaults()") Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | serial: Make full device search optionalAlexander Graf2018-01-292-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 608b0c4ad4e5ec0c ("serial: Use next serial device if probing fails") added code to search for more serial devices if the default one was not probed correctly. Unfortunately, that breaks omap3_evm. So while investigating why that is the case, let's disable the full search for everyone but bcm283x where it is needed. Fixes: 608b0c4ad4e5ec0c ("serial: Use next serial device if probing fails") Reported-by: Derald D. Woods <woods.technical@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
* | cfi_flash: Always define cfi_flash_num_flash_banksMario Six2018-01-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | The variable cfi_flash_num_flash_banks is defined iff CONFIG_SYS_MAX_FLASH_BANKS_DETECT is defined, but it is used unconditionally in the function cfi_flash_init_dm. This leads to a undefined variable compile error when CONFIG_SYS_MAX_FLASH_BANKS_DETECT is not defined, but DM is enabled. Fix this by always defining the cfi_flash_num_flash_banks variable. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix indentionMario Six2018-01-291-120/+118
| | | | | | | | | | | | | | | | | | When long expressions surrounded by parentheses are split into multiple lines, each consecutive line should be aligned with the corresponding parenthesis. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix long linesMario Six2018-01-291-12/+19
| | | | | | | | | | | | | | | | Long lines (>80 characters) should be avoided where possible. Break up some long lines where it's not detrimental to readability. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Bound-check index before array accessMario Six2018-01-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | In a while loop in cfi_flash.c the array "start" is accessed at the index "sector" before the index variable "sector" is bounds-checked, which might lead to accesses beyond the bounds of the array. Swap the order of the checks in the "&&" expression, so that the short-circuit evaluation prevents out-of-bounds array accesses. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | flash: Fix spelling of "ERR_TIMOUT"Mario Six2018-01-292-5/+5
| | | | | | | | | | | | | | | | | | checkpatch.pl complains about the spelling of ERR_TIMOUT. Since the error is only used in a handful of files, we rename the error to ERR_TIMEOUT. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Rename camel-case variablesMario Six2018-01-291-8/+8
| | | | | | | | | | | | | | | | Camel-case naming should be avoided. Rename two camel-case variables, and fix their usage accordingly. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix strings split across linesMario Six2018-01-291-9/+8
| | | | | | | | | | | | | | | | Strings should not be split accross multiple lines. Where possible and not detrimental to readability, fix the instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Use u8 pointers instead of void pointersMario Six2018-01-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | According to the C standard, pointer arithmetic for pointers of type void is undefined behavior (the assumption that they're 8-bit wide is a GCC-specific assumption). In the interest of keeping the code standards-compliant, and also better communicate intent, switch all void* variables where pointer arithmetic is used to u8* variables. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Remove assignments from if conditionsMario Six2018-01-291-7/+11
| | | | | | | | | | | | | | | | | | The condition in if statements should not be used for variable assignment. Instead, the assignment should be done in a separate step beforehand. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Remove return from void functionMario Six2018-01-291-1/+0
| | | | | | | | | | | | | | void functions don't need an explicit return at the end. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix placement of braceMario Six2018-01-291-2/+1
| | | | | | | | | | | | | | | | The opening brace of block statements should be attached to the statement itself, and not be on a separate line. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix else after breakMario Six2018-01-291-3/+3
| | | | | | | | | | | | | | | | | | If in a loop, the if block in a if/else statement ends in a break, the statements in the else blockcan be extracted, since the break stops the execution. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix spelling of "Unknown"Mario Six2018-01-291-1/+1
| | | | | | | | | | | | | | "Unkown" should be spelled "Unknown". Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Add missing braces in blocksMario Six2018-01-291-1/+3
| | | | | | | | | | | | | | | | | | In if/else statements, either both blocks (if and else) should have braces or both blocks should not have braces, but mixed configurations are discouraged. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Remove unnecessary bracesMario Six2018-01-291-24/+24
| | | | | | | | | | | | | | | | | | "==" and "!=" bind tighter than the boolean operators, so parentheses around them in compound logical statements are unnecessary. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix comment styleMario Six2018-01-291-2/+4
| | | | | | | | | | | | | | | | | | Comment blocks should end with a "*/" on a separate line, not with the "*/" attached to the end of the last line of text. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Use __func__ macro instead of function nameMario Six2018-01-291-1/+1
| | | | | | | | | | | | | | | | | | printf/debug statements should not include the file name as a hardcoded string, but instead use the __func__ macro. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix logical continuationsMario Six2018-01-291-13/+13
| | | | | | | | | | | | | | | | | | When splitting long logical statements across multiple lines, the logical operators should be at the end of the lines. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Remove braces for single-statement blocksMario Six2018-01-291-10/+5
| | | | | | | | | | | | | | | | Blocks with a single statement should not be enclosed in braces. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix missing/superfluous linesMario Six2018-01-291-7/+4
| | | | | | | | | | | | | | | | | | There should be no consecutive blank lines, and no blank lines at the end of blocks. But there should be blank lines between variable declarations and code. Fix all instances where either occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix spacing around casts/operatorsMario Six2018-01-291-9/+9
| | | | | | | | | | | | | | | | | | There should be spaces around operators, and no spaces between a cast and the variable its being applied to. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix indent of case statementsMario Six2018-01-291-100/+100
| | | | | | | | | | | | | | | | case statements should be at the same level of indent as the switch keyword. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix whitespace with castingMario Six2018-01-291-2/+2
| | | | | | | | | | | | | | | | | | When casting to a pointer type, the asterisk should be attached to the type name, not separated by a space. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix Parenthesis spacingMario Six2018-01-291-11/+11
| | | | | | | | | | | | | | | | There should not be additional spaces when nesting parentheses ("( (...) )"). Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix style of pointer declarationsMario Six2018-01-291-24/+24
| | | | | | | | | | | | | | | | In a pointer declaration there should not be a space between the asterisk and the pointer name. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | cfi_flash: Fix space between function name and parenthesisMario Six2018-01-291-214/+214
| | | | | | | | | | | | | | | | There should not be a space between a function name and a parenthesis ("func (...)"). Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
* | Merge git://git.denx.de/u-boot-rockchipTom Rini2018-01-2811-25/+2374
|\ \
| * | rockchip: clk: guard set_parent implementations against OF_PLATDATAPhilipp Tomsich2018-01-283-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | The set_parent implementations do not make sense when OF_PLATDATA is enabled. We guard these against OF_PLATDATA and don't populate the set_parent-op when this is the case. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
| * | clk: rockchip: clk_rk3368: Implement "assign-clock-parent"David Wu2018-01-281-7/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the setting parent for gmac clock, and add internal pll div set for mac clk. Signed-off-by: David Wu <david.wu@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
| * | clk: rockchip: clk_rk3288: Implement "assign-clock-parent" and ↵David Wu2018-01-281-8/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "assign-clock-rate" The RK3288 CRU-node assigns rates to a number of clocks that are not implemented in the RK3288 clock-driver (but which have been sufficiently initialised from rkclk_init()): for these clocks, we implement the gmac clock set parent, but simply ignore the others' set_rate() operation and return 0 to signal success. Signed-off-by: David Wu <david.wu@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>