- 03 4月, 2018 16 次提交
-
-
由 Miquel Raynal 提交于
Let the Nintendo NES Classic use the Macronix NAND chip on it. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
Add some clocks/PLL definitions as well as the dependency on MACH_SUN8I in Kconfig. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
Code has been changed to do not use DMA anymore with the NAND controller, instead PIO is used. Then, DMA-specific initialization may be dropped. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
SPL support was first written to support only the earlier generations of Allwinner SoCs, and was only really enabled on the A13 / GR8. However, those old SoCs had a DMA engine that has been replaced since the A31 by another DMA controller that is no longer compatible. Since the code directly uses that DMA controller, it cannot operate properly on the later SoCs, while the NAND controller has not changed. There's two paths forward, the first one would have been to add support for that DMA controller too, the second to just remove the DMA usage entirely and rely on PIO. The later has been chosen because CPU overload at this stage is not an issue and it makes the driver more generic, and easier to understand. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Acked-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
Move the ecc_bytes array out of nand_max_ecc_strength() for future use by nand_read_page(). Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Acked-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
Ensure the NAND controller reset line is deasserted before use. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
Prepare the future use of an helper to move the data pointer (the column) of the NAND chip by renaming nand_reset_column() to nand_change_column(). Resetting the column is just a matter of giving 0 as argument. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Acked-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
When changing the column, the ONFI specification states that a minimum time of tCCS (Change Column Setup time) must elapse between the last address cycle is asserted on the bus and the first data cycle is clocked. An usual value for average NANDs is 500 nanoseconds. Round it up to 1 microsecond to be safe. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Acked-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
Executing a command is matter of always doing the following sequence: * Waiting for the FIFO to be empty so we can fill it with the new command. * Clearing the status register. * Writing the command in the FIFO. * Waiting for the command to finish. Add a nand_exec_cmd() helper to handle this instead of repeating the logic through the various functions. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Acked-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
It is best practice to always clear the status register before executing a command to be sure that the status read afterwards is relevant. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Acked-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
One bit in the control registers indicates if the NAND controller is ready to receive a new command. Otherwise, the command FIFO is full and we should wait for this bit to flip. It then states that the last command has been processed and the FIFO is now free to welcome another command. Add this sanity check before starting any new command. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Acked-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
The pattern of polling on a status register until a bit is set or a timeout occurs is repeated multiple times in the driver. Mutualize the code by introducing the nand_wait_int() helper that does wait for the bit to flip or returns an error in case of timeout. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Acked-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
Change NFC_SEND_ADR to NFC_SEND_ADDR. Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Acked-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
In the nand_read_buffer() step, the seed is calculated by doing a modulo by conf->nseeds which is always zero when not using the randomizer (most of SLC NANDs). This situation turns out to lead to a run time freeze with certain toolchains. Derive this seed only when the randomizer is enabled (and conf->nseeds logically not zero), exactly like what has been done before with an identical situation, see commit ea3f750c ("nand: sunxi: Fix modulo by zero error"). Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Acked-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
When the requested ECC strength does not exactly match the strengths supported by the ECC engine, the driver is selecting the closest strength meeting the 'selected_strength > requested_strength' constraint. Fix the fact that, in this particular case, ecc->strength value was not updated to match the 'selected_strength'. For instance, one can encounter this issue when no ECC requirement is filled in the device tree while the NAND chip minimum requirement is not a strength/step_size combo natively supported by the ECC engine. Suggested-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Acked-by: NBoris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Miquel Raynal 提交于
A previous commit introduced the use of binman in the SPL. After the binman_sym call over the 'pos' symbol, the output value is checked against BINMAN_SYM_MISSING (-1UL). According to the documentation (tools/binman/README), when it comes to the 'pos' attribute: pos: This sets the position of an entry within the image. The first byte of the image is normally at position 0. If 'pos' is not provided, binman sets it to the end of the previous region, or the start of the image's entry area (normally 0) if there is no previous region. So instead of checking if the return value is BINMAN_SYM_MISSING, we should also check if the value is not null. The failure happens when using both the SPL file and the U-Boot file independently instead of the concatenated file (SPL + padding + U-Boot). This is because the U-Boot binary file alone does not have the U-Boot header while it is present in the concatenation file. Not having the header forces the SPL to discover where it should load U-Boot. The binman_sym call is supposed to do that but fails. Because of the wrong check, the destination address was set to 0 while it should have been somewhere in RAM. This, obviously, stalls the board. Fixes: 8bee2d25 ("binman: Add binman symbol support to SPL") Reviewed-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
- 19 3月, 2018 11 次提交
-
-
由 Jagan Teki 提交于
Add proper and simple kconfig option for dram_sun8i_a83t.c instead of using MACH type on Makefile. Signed-off-by: NJagan Teki <jagan@amarulasolutions.com> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Jagan Teki 提交于
Add proper and simple kconfig option for dram_sun8i_a33.c instead of using MACH type on Makefile. Signed-off-by: NJagan Teki <jagan@amarulasolutions.com> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Jagan Teki 提交于
Add proper and simple kconfig option for dram_sun8i_a23.c instead of using MACH type on Makefile. Signed-off-by: NJagan Teki <jagan@amarulasolutions.com> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Jagan Teki 提交于
Add proper and simple kconfig option for dram_sun9i.c instead of using MACH type on Makefile. Signed-off-by: NJagan Teki <jagan@amarulasolutions.com> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Jagan Teki 提交于
Add proper and simple kconfig option for dram_sun4i.c instead of using MACH type on Makefile. Signed-off-by: NJagan Teki <jagan@amarulasolutions.com> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Jagan Teki 提交于
Add proper and simple kconfig option for dram_sun6i.c instead of using MACH type on Makefile. Signed-off-by: NJagan Teki <jagan@amarulasolutions.com> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Jagan Teki 提交于
Add simple and meaningful kconfig option for pmic_bus.c instead of using MACH type on Makefile. Signed-off-by: NJagan Teki <jagan@amarulasolutions.com> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Jagan Teki 提交于
Add simple and meaningful kconfig option for rsb.c instead of using MACH type on Makefile. Signed-off-by: NJagan Teki <jagan@amarulasolutions.com> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Jagan Teki 提交于
SUN6I_PRCM is also used for SUN8I and SUN9I, so select the same on respective MACH types. Signed-off-by: NJagan Teki <jagan@amarulasolutions.com> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Jagan Teki 提交于
Add simple and meaningful kconfig option for p2wi.c instead of using MACH type on Makefile. Signed-off-by: NJagan Teki <jagan@amarulasolutions.com> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
由 Jagan Teki 提交于
Add simple and meaningful kconfig option for prcm.c instead of using MACH type on Makefile. PRCM (Power/Reset/Clock Management) is considered as a Multi-Functional Device, so used the same on Kconfig definition. Signed-off-by: NJagan Teki <jagan@amarulasolutions.com> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
-
- 17 3月, 2018 13 次提交
-
-
由 Patrick Delaunay 提交于
Merge init_helpers.h in the new file init.h with only prototypes for init_cache_f_r used in common/board_f.c Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
-
由 Patrick Delaunay 提交于
Move function prototype for common/init/board_init.c from common.h to init.h Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
-
由 Patrick Delaunay 提交于
Move function prototypes used in common/board_r.c from common.h to init.h Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
-
由 Patrick Delaunay 提交于
Move function prototypes for common/init/board_init.c from common.h to init.h Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
-
由 Patrick Delaunay 提交于
Move prototypes for function used in common/board_f.c from common.h to init.h Remove weak for arch_reserve_stacks in prototype (checkpatch issue) Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
-
由 Michal Simek 提交于
This file is completely unused and it should be removed as the part of ppc405/ppc440 xilinx platform removal. Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
-
由 Heinrich Schuchardt 提交于
Remove a link to a non-existent file. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: NAndrew F. Davis <afd@ti.com>
-
由 Heinrich Schuchardt 提交于
Remove non-existing paths. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
Remove non-existing directories. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: NMinkyu Kang <mk7.kang@samsung.com>
-
由 Heinrich Schuchardt 提交于
Change due to commit b08c8c48 ("libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>") Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
Fix an incorrect path. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
arch/arm/cpu/armv7/mx*/ does not relate to any existing directory. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: NFabio Estevam <fabio.estevam@nxp.com>
-
由 Patrick Delaunay 提交于
The 2 functions board_power_mode and board_poweroff are no more existing in U-Boot code (check with grep) This patch updates the documentation and removes the unnecessary prototypes. Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
-