- 06 12月, 2015 20 次提交
-
-
由 Simon Glass 提交于
Since commit 4188ba32 we get the following warning on rockchip boards: common/spl/spl_mmc.c:31:24: warning: ‘mmc’ may be used uninitialized in this function [-Wmaybe-uninitialized] count = mmc->block_dev.block_read(0, sector, 1, header); ^ common/spl/spl_mmc.c:251:14: note: ‘mmc’ was declared here struct mmc *mmc; Correct this by move the variable init earlier. Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NMichal Simek <michal.simek@xilinx.com> Acked-by: NNikita Kiryanov <nikita@compulab.co.il>
-
由 Nishanth Menon 提交于
Neither uc_pdata->name nor check_name are supposed to be NULL in _rproc_name_is_unique(). if uc_pdata->name is NULL, we are not intialized yet, however if check_data is NULL, we do not have proper data. Further, if either were NULL, strlen will crap out while attempting to derefence NULL. Instead, just check if either of these are NULL and bail out. This should also fix the following coverity scan warnings: *** CID 132281: Null pointer dereferences (FORWARD_NULL) /drivers/remoteproc/rproc-uclass.c: 73 in _rproc_name_is_unique() Reported-by: NTom Rini <trini@konsulko.com> Signed-off-by: NNishanth Menon <nm@ti.com>
-
由 Kamil Lulko 提交于
Signed-off-by: NKamil Lulko <kamil.lulko@gmail.com>
-
由 Thomas Chou 提交于
Change reg-shift property default to zero. When the integer property is missing, it should be taken as zero. This is consistent to Linux drivers/tty/serial/of_serial.c. The x86 and most powerpc use reg-shift of 0. Most others use reg-shift of 2. While reg-shift of 1 is rarely used. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Reviewed-by: NMugunthan V N <mugunthanvnm@ti.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Tom Rini 提交于
With gcc-5.x we get warning about inline non-static functions referring to static elements. Signed-off-by: NTom Rini <trini@konsulko.com> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
由 Peng Fan 提交于
Need to free memory avoid memory leak, when error. Signed-off-by: NPeng Fan <Peng.Fan@freescale.com> Reviewed-by: NSimon Glass <sjg@chromium.org> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com>
-
由 Stefan Roese 提交于
When CONFIG_SPL_OF_TRANSLATE is enabled fdt_support.c needs to get compiled. Otherwise fdt_translate_address() is missing which is needed in dev_get_addr(). Signed-off-by: NStefan Roese <sr@denx.de> Cc: Simon Glass <sjg@chromium.org> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Mugunthan V N 提交于
Enable serial driver model for dra74_evm as ns16550 supports driver model. Signed-off-by: NMugunthan V N <mugunthanvnm@ti.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Mugunthan V N 提交于
Introduce chosen node and specify uart0 to be used as serial console. Signed-off-by: NMugunthan V N <mugunthanvnm@ti.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Mugunthan V N 提交于
With the commit 'c7b9686d ("ns16550: unify serial_omap")' all TI platforms are broken with DM/DT boot as ns16550 driver expects reg-shift from DT which is not populated for TI platforms. Earlier it worked as it was hard coded to 2 in serial-omap driver. So adding the reg-shift to serial nodes for dra7, am4372 and am33xx dtsi files. Tested this patch on am437x-sk-evm, am437x-gp-evm, am335x-boneblack, dra74x-evm and dra72x-evm. Signed-off-by: NMugunthan V N <mugunthanvnm@ti.com> Reviewed-by: NSimon Glass <sjg@chromium.org> Acked-by: NThomas Chou <thomas@wytron.com.tw>
-
由 Peng Fan 提交于
The following code will alloc memory for new_dev and ldev: " new_dev = mdio_alloc(); ldev = malloc(sizeof(*ldev)); " Either new_dev or ldev is NULL, directly return, but this may leak memory. So before return, using free(ldev) and mdio_free(new_dev) to avoid leaking memory, also free can handle NULL pointer. Signed-off-by: NPeng Fan <Peng.Fan@freescale.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
-
由 Peng Fan 提交于
"enable" is unsigned char type and its value will not be negative, so discard "enable < 0". Signed-off-by: NPeng Fan <Peng.Fan@freescale.com> Cc: Diego Santa Cruz <Diego.SantaCruz@spinetix.com> Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Cc: Andrew Gabbasov <andrew_gabbasov@mentor.com> Cc: Simon Glass <sjg@chromium.org> Cc: Stefano Babic <sbabic@denx.de> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Marek Vasut 提交于
This symbol is no longer used anywhere, remove it. Signed-off-by: NMarek Vasut <marex@denx.de> Cc: Heiko Schocher <hs@denx.de> Cc: Tom Rini <trini@konsulko.com> Acked-by: NHeiko Schocher <hs@denx.de>
-
由 Vagrant Cascadian 提交于
Signed-off-by: NVagrant Cascadian <vagrant@debian.org> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Vagrant Cascadian 提交于
Signed-off-by: NVagrant Cascadian <vagrant@debian.org> Reviewed-by: NJoe Hershberger <joe.hershberger@ni.com>
-
由 Wolfgang Denk 提交于
Commit acc2372d "mpc8xx: remove lwmon board support" removed support for the MPC823 based "lwmon" board, but left some board specific POST files. This patch cleans up and removes the now unused files. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
由 Peng Fan 提交于
The entry name of mii_dev is an array not pointer, so no need to check. Signed-off-by: NPeng Fan <Peng.Fan@freescale.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org> Acked-by: NJoe Hershberger <joe.hershberger@ni.com> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
由 Peng Fan 提交于
If condition of "(load == image_start || load == image_data)" is true, should use "fdt_addr = load;", but not "fdt_blob = (char *)image_data;", or fdt_blob will be overridden by "fdt_blob = map_sysmem(fdt_addr, 0);" at the end of the switch case. Signed-off-by: NPeng Fan <Peng.Fan@freescale.com> Cc: Simon Glass <sjg@chromium.org> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Max Krummenacher <max.krummenacher@toradex.com> Cc: Marek Vasut <marex@denx.de> Cc: Suriyan Ramasami <suriyan.r@gmail.com> Cc: Paul Kocialkowski <contact@paulk.fr> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Peng Fan 提交于
Condition "(value == NULL && ++value == NULL)" actully will always return false. Instead, use condition "(value == NULL || *(value + 1) == 0)" to detect such expression "c=". To "c=", *(value + 1) is 0, so directly return -1, but not continue. Signed-off-by: NPeng Fan <Peng.Fan@freescale.com> Cc: Rabin Vincent <rabin@rab.in> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Peng Fan 提交于
Before continue, check return value of strict_strtoul. Signed-off-by: NPeng Fan <Peng.Fan@freescale.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Simon Glass <sjg@chromium.org> Cc: Jan Kiszka <jan.kiszka@siemens.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Hans de Goede <hdegoede@redhat.com> Cc: York Sun <yorksun@freescale.com> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 05 12月, 2015 1 次提交
-
-
- 04 12月, 2015 1 次提交
-
-
- 03 12月, 2015 18 次提交
-
-
由 Francois Retief 提交于
Remove the board.c and time.c files and all associated non-generic board initialization code. Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Daniel Hellstrom 提交于
Signed-off-by: NDaniel Hellstrom <daniel@gaisler.com>
-
由 Daniel Hellstrom 提交于
Signed-off-by: NDaniel Hellstrom <daniel@gaisler.com>
-
由 Daniel Hellstrom 提交于
Signed-off-by: NDaniel Hellstrom <daniel@gaisler.com>
-
由 Francois Retief 提交于
We now use the generic delay method which specifies the timeout as microseconds instead of ticks. Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Francois Retief 提交于
Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Francois Retief 提交于
Fixed the prom_relocate() function in start.S file by reserving memory in the board_init_f sequence and saving the offset to the __prom_start_reloc variable. This value is used as the destination when relocating the PROM. Add the prom_init() function to the end of the board_init_r sequence. Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Francois Retief 提交于
Introduce the CONFIG_SYS_TIMER_* macros in include/asm/config.h to make use of the generic timer infrastructure in lib/time.c. Created a timer_init() function to initialize the timer hardware and update the #ifdef in board_init_f to allow this function to be called during the start-up sequence. Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Francois Retief 提交于
Reworked the LEON2 start.S code to call board_init_f function at startup. Also implemented the relocate_code function in assembly to relocate the monitor and setup the stack pointer before calling relocated board_init_r. Add the CONFIG_SYS_GENERIC_BOARD variable to all the LEON2 boards. Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Francois Retief 提交于
Reworked the LEON3 start.S code to call board_init_f function at startup. Also implemented the relocate_code function in assembly to relocate the monitor and setup the stack pointer before calling relocated board_init_r. Add the CONFIG_SYS_GENERIC_BOARD variable to all the LEON3 boards. Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Daniel Hellstrom 提交于
Signed-off-by: NDaniel Hellstrom <daniel@gaisler.com>
-
由 Francois Retief 提交于
Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Francois Retief 提交于
Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Francois Retief 提交于
Initial ground work in preperation for generic board initialization code for the SPARC architecture. Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Francois Retief 提交于
Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Francois Retief 提交于
Updated the LEON3 serial driver to make use of the CONFIG_CONS_INDEX option to select which serial port the console will use. Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-
由 Daniel Hellstrom 提交于
Signed-off-by: NDaniel Hellstrom <daniel@gaisler.com>
-
由 Francois Retief 提交于
Clear the GD_FLG_SERIAL_READY flag on AMBA P&P lookup failure so that the panic function can use DEBUG_UART driver. drivers/serial/serial.c set this flag before calling this function, preventing DEBUG_UART code from running. Signed-off-by: NFrancois Retief <fgretief@spaceteq.co.za>
-