01 Jun, 2017
1 commit
-
These support the flat device tree. We want to use the dev_read_..()
prefix for functions that support both flat tree and live tree. So rename
the existing functions to avoid confusion.In the end we will have:
1. dev_read_addr...() - works on devices, supports flat/live tree
2. devfdt_get_addr...() - current functions, flat tree only
3. of_get_address() etc. - new functions, live tree onlyAll drivers will be written to use 1. That function will in turn call
either 2 or 3 depending on whether the flat or live tree is in use.Note this involves changing some dead code - the imx_lpi2c.c file.
Signed-off-by: Simon Glass
08 Feb, 2017
1 commit
-
At present devices use a simple integer offset to record the device tree
node associated with the device. In preparation for supporting a live
device tree, which uses a node pointer instead, refactor existing code to
access this field through an inline function.Signed-off-by: Simon Glass
16 Jul, 2016
1 commit
-
Fix a number of typos, including:
* "compatble" -> "compatible"
* "eanbeld" -> "enabled"
* "envrionment" -> "environment"
* "FTD" -> "FDT" (for "flattened device tree")
* "ommitted" -> "omitted"
* "overriden" -> "overridden"
* "partiton" -> "partition"
* "propogate" -> "propagate"
* "resourse" -> "resource"
* "rest in piece" -> "rest in peace"
* "suport" -> "support"
* "varible" -> "variable"Signed-off-by: Robert P. J. Day
06 Jul, 2016
2 commits
-
This seems to give the best performance, so let's use it always.
Signed-off-by: Simon Glass
Acked-by: Stephen Warren
Signed-off-by: Tom Warren -
We have standard drivers for panels and backlights which can do most of the
work for us. Move the tegra20 LCD driver over to use those instead of custom
code.This patch includes device tree changes for the nvidia boards. I have only
been able to test seaboard. If this patch is applied, these boards will
also need to be synced with the kernel, and updated to use display-timings:- colibri
- medcom-wide
- paz00
- tecSigned-off-by: Simon Glass
Signed-off-by: Tom Warren
17 May, 2016
1 commit
-
This prevents the following boot-time message on any board where only the
first DC is in use, yet the DC's DT node is enabled:stdio_add_devices: Video device failed (ret=-22)
(This happens on at least Harmony, Ventana, and likely any other Tegra20
board with display enabled other than Seaboard).The Tegra DC's DT node represents a display controller. It may itself
drive an integrated RGB display output, or be used by some other display
controller such as HDMI. For this reason the DC node itself is not
enabled/disabled in DT; the DC itself is considered a shared resource, not
the final (board-specific) display output. The node should instantiate a
display output driver only if the rgb subnode is enabled. Other output
drivers are free to use the DC if they are enabled and their DT node
references the DC's DT node. Adapt the Tegra display drivers' bind()
routine to only bind to the DC's DT node if the RGB subnode is enabled.Now that the display driver does the right thing, remove the workaround
for this issue from Seaboard's DT file.Cc: Thierry Reding
Signed-off-by: Stephen Warren
Acked-by: Thierry Reding
Reviewed-by: Simon Glass
17 Feb, 2016
8 commits
-
Use the driver-model PWM driver in preference to the old code.
Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
Signed-off-by: Tom Warren -
Join the two functions which decode the device tree and put them in the
ofdata_to_platdata() method.Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
Signed-off-by: Tom Warren -
There is no need to have these in a separate file as they are not
referenced from anywhere else.Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
Signed-off-by: Tom Warren -
We can move the static variables into the driver-private data.
Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
Signed-off-by: Tom Warren -
Move this driver over to use driver model. This involves rearranging the
code somewhat. The effect is that everything is run from the probe() method.Boards which use this are fixed up, but only seaboard is tested.
Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
Signed-off-by: Tom Warren -
We have a structure for the display panel and another for the controller.
There is some overlap between them. Merge them to simplify the driver.Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
Signed-off-by: Tom Warren -
We can check this in Kconfig now.
Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
Signed-off-by: Tom Warren -
At present we have code in arch/arm and code in drivers/video. Move it all
into drivers/video since it is a display driver and our current approach is
to put all driver code in drivers/.Make a few functions static now that they are not used outside the file.
Signed-off-by: Simon Glass
Acked-by: Anatolij Gustschin
Signed-off-by: Tom Warren
19 Aug, 2015
1 commit
-
We have flipped CONFIG_SPL_DISABLE_OF_CONTROL. We have cleansing
devices, $(SPL_) and CONFIG_IS_ENABLED(), so we are ready to clear
away the ugly logic in include/fdtdec.h:#ifdef CONFIG_OF_CONTROL
# if defined(CONFIG_SPL_BUILD) && !defined(SPL_OF_CONTROL)
# define OF_CONTROL 0
# else
# define OF_CONTROL 1
# endif
#else
# define OF_CONTROL 0
#endifNow CONFIG_IS_ENABLED(OF_CONTROL) is the substitute. It refers to
CONFIG_OF_CONTROL for U-boot proper and CONFIG_SPL_OF_CONTROL for
SPL.Also, we no longer have to cancel CONFIG_OF_CONTROL in
include/config_uncmd_spl.h and scripts/Makefile.spl.Signed-off-by: Masahiro Yamada
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass
Acked-by: Linus Walleij
06 Aug, 2015
1 commit
-
fdt_addr_t is changed to phys_addr_t. The format in debug should be updated
to %pa to match the type.Signed-off-by: York Sun
CC: Simon Glass
30 Jan, 2015
1 commit
-
These functions are going away, so use the new uclass support instead.
Signed-off-by: Simon Glass
17 Apr, 2014
1 commit
-
This renames all the Tegra20 pinmux pins and functions so they have a
prefix which matches the type name.The entries in tegra20_pingroups[] are all updated to remove the columns
which are no longer used.All affected code is updated to match.
Signed-off-by: Stephen Warren
Acked-by: Simon Glass
Signed-off-by: Tom Warren
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
21 Mar, 2013
4 commits
-
lcd_base is available as gd->fb_base as well, there is no need
to keep a seperate copy.For completeness the ack of Bo Shen is for the atmel part.
Cc: Alessandro Rubini
Cc: Anatolij Gustschin
Cc: Bo Shen
Cc: Haavard Skinnemoen
Cc: Kyungmin Park
Cc: Marek Vasut
Cc: Minkyu Kang
Cc: Nikita Kiryanov
Cc: Simon Glass
Cc: Stelian Pop
Cc: Tom Warren
Acked-by: Bo Shen
Signed-off-by: Jeroen Hofstee
[agust: also fix cm_t35 board while rebasing]
Signed-off-by: Anatolij Gustschin -
console_col, console_row, lcd_line_length, lcd_console_address had
to be declared in board / driver specific code, but were not actually
used there on many boards. Get rid of the global variables.for completeness, the ack of Bo Shen is for the atmel part
Cc: Alessandro Rubini
Cc: Anatolij Gustschin
Cc: Bo Shen
Cc: Kyungmin Park
Cc: Marek Vasut
Cc: Minkyu Kang
Cc: Nikita Kiryanov
Cc: Simon Glass
Cc: Stelian Pop
Cc: Tom Warren
Acked-by: Bo Shen
Signed-off-by: Jeroen Hofstee
[agust: rebased and fixed cm_t35 board]
Signed-off-by: Anatolij Gustschin -
cc: Anatolij Gustschin
cc: Simon Glass
Acked-by: Simon Glass
Signed-off-by: Jeroen Hofstee -
lcd_color_fg and lcd_color_bg had to be declared in board specific
code, but were not actually used there; in addition, we have getter /
setter functions for these, which were not used either.Get rid of the global variables, and use the getter function where
needed (so far no setter calls are needed).Signed-off-by: Wolfgang Denk
Cc: Alessandro Rubini
Cc: Anatolij Gustschin
Cc: Bo Shen
Cc: Haavard Skinnemoen
Cc: Kyungmin Park
Cc: Marek Vasut
Cc: Minkyu Kang
Cc: Nikita Kiryanov
Cc: Simon Glass
Cc: Stelian Pop
Cc: Tom Warren
Acked-by: Simon Glass
Acked-by: Jeroen Hofstee
[agust: also fixed cm_t35 board while rebasing]
Signed-off-by: Anatolij Gustschin
17 Jan, 2013
1 commit
-
Instead of storing the computed line length in a local variable, store
it in the global lcd_line_length variable to make sure the LCD subsystem
can properly draw content for the display resolution.This probably wasn't noticed yet because the only board where LCD
support is currently enabled is Seaboard, which runs at a 1366x768
resolution. As it happens this is the maximum resolution supported and
also the default that is used to initialize the framebuffer before the
configuration from DT is available.Signed-off-by: Thierry Reding
Signed-off-by: Tom Warren
19 Nov, 2012
2 commits
-
Add support for selecting the required cache mode for the LCD:
off, write-through or write-back.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren -
This driver supports driving a single LCD and providing a U-Boot console
on it.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren