also to
purchase a Big Endian test platform and add proper support soon.
Also, thanks to Miodrag Vallat and other OpenBSD developers, this work
would be impossible without their code, that served as a reference
implementation for me.
Finally, during the development and testing of 2D acceleration, many
d 32-bit color modes. They are supported but never listed, and are
useful to some users.
Signed-off-by: Yifeng Li
---
drivers/video/fbdev/sm712fb.c | 158 +++---
1 file changed, 31 insertions(+), 127 deletions(-)
diff --git a/drivers/video/fbdev/sm712fb.c b/drive
use a different wordsize.
Signed-off-by: Yifeng Li
---
drivers/video/fbdev/sm712.h | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/video/fbdev/sm712.h b/drivers/video/fbdev/sm712.h
index bb144f038267..89e446db2ac7 100644
--- a/drivers/video/fbdev/sm712.h
+++
This commits update the Kconfig description of sm712fb,
and inform the user about the existence of documentation.
Signed-off-by: Yifeng Li
---
Documentation/fb/sm712fb.txt | 44
drivers/video/fbdev/Kconfig | 4
2 files changed, 29 insertions(+), 19
nal system hang was a type punning.
unsigned char ajRemain[4];
SMTC_write2Ddataport(0, *(unsigned long *)ajRemain);
Type punning is undefined behavior in C, and here it caused an unaligned
memory access, which is illegal on MIPS, thus crashing the computer.
Signed-off-by: Yifeng Li
---
drivers/v
I have working on the sm712fb driver for a while and have some familiarity
with this hardware, I'll be helping working on and testing problems of this
driver, so add myself to the MAINTAINERS file.
Signed-off-by: Yifeng Li
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --
This commits add information about 32-bit color, 2D acceleration,
as well as adding additional, general information about the hardware
and many existing problems of the sm712fb driver.
Signed-off-by: Yifeng Li
---
Documentation/fb/sm712fb.txt | 123 +++
1 file
-bit word suitable for 2D Drawing Engine.
Yes, we can set info->pixmap.scan_align/buf_align = 4 and forget
about padding, but it's incompatible with cfb_imageblit() w/
depth == 1. In case we need to fallback (e.g. debugging), it would
be inconvenient, so we pad it manually.
Signed-off-by: Y
river would probably
crash on them. I've never seen one of those machines and cannot fix it, but
I have documented these problems in the comments.
Signed-off-by: Yifeng Li
Cc: sta...@vger.kernel.org # v4.4+
---
drivers/video/fbdev/sm712.h | 5
drivers/video/fbdev/sm71
of clock frequency when unblanking the display, and programs the clock for
SM712 to SM720.
Fix them by adjusting the order of register writes, and adding an
additional check for SM720 for programming the clock frequency.
Signed-off-by: Yifeng Li
Cc: sta...@vger.kernel.org # v4.4+
---
drivers
cumented is the comments.
Signed-off-by: Yifeng Li
Cc: sta...@vger.kernel.org # v4.4+
---
drivers/video/fbdev/sm712.h | 7 +++--
drivers/video/fbdev/sm712fb.c | 53 ++-
2 files changed, 44 insertions(+), 16 deletions(-)
diff --git a/drivers/video/fbdev/sm712.h
review and queue them for linux-stable.
Thanks,
Yifeng Li (8):
fbdev: sm712fb: fix white screen of death on reboot, don't set
CR3B-CR3F.
fbdev: sm712fb: fix brightness control on reboot, don't set SR30.
fbdev: sm712fb: fix VRAM detection, don't set SR70/71/74/75.
fbdev: sm
over-
writing it is also highly questionable, since it was originally
configurated by the motherboard manufacturer by hardwiring pull-down
resistors to indicate the type of LCD panel. We should not mess with
it.
Stop writing to the SR30 (a.k.a FPR30) register.
Signed-off-by: Yifeng Li
Cc
when it's ready.
Signed-off-by: Yifeng Li
Cc: sta...@vger.kernel.org # v4.4+
---
drivers/video/fbdev/sm712fb.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/video/fbdev/sm712fb.c b/drivers/video/fbdev/sm712fb.c
index 1a3d232c2916..e8149f0f47d5 100644
these
registers don't have side-effect on other systems, writing to them is
also highly questionable.
Signed-off-by: Yifeng Li
Cc: sta...@vger.kernel.org # v4.4+
---
drivers/video/fbdev/sm712fb.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/video/fbdev/s
mode.
Signed-off-by: Yifeng Li
Cc: sta...@vger.kernel.org # v4.4+
---
drivers/video/fbdev/sm712fb.c | 59 +++
1 file changed, 59 insertions(+)
diff --git a/drivers/video/fbdev/sm712fb.c b/drivers/video/fbdev/sm712fb.c
index a40d0ae7cb66..c39a2641182a 100644
--- a
Registers, including GPR70/74/75, don't have the same
side-effect, but overwriting to them is still questionable, as they are
not related to modesetting.
Stop writing to SR70/71/74/75 (a.k.a GPR70/71/74/75).
Signed-off-by: Yifeng Li
Cc: sta...@vger.kernel.org # v4.4+
---
drivers/video/fbdev/sm71
This commits add information about 32-bit color, 2D acceleration,
as well as adding additional, general information about the hardware
and many existing problems of the sm712fb driver.
Signed-off-by: Yifeng Li
---
Documentation/fb/sm712fb.txt | 123 +++
1 file
use a different wordsize.
Signed-off-by: Yifeng Li
---
drivers/video/fbdev/sm712.h | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/video/fbdev/sm712.h b/drivers/video/fbdev/sm712.h
index 99077e91ae10..942019dc816a 100644
--- a/drivers/video/fbdev/sm712.h
+++
t never listed, and are
useful to some users.
Signed-off-by: Yifeng Li
---
drivers/video/fbdev/sm712fb.c | 158 +++---
1 file changed, 31 insertions(+), 127 deletions(-)
diff --git a/drivers/video/fbdev/sm712fb.c b/drivers/video/fbdev/sm712fb.c
index 133e31f75d67..0cc
-bit word suitable for 2D Drawing Engine.
Yes, we can set info->pixmap.scan_align/buf_align = 4 and forget
about padding, but it's incompatible with cfb_imageblit() w/
depth == 1. In case we need to fallback (e.g. debugging), it would
be inconvenient, so we pad it manually.
Signed-off-by: Y
This commits update the Kconfig description of sm712fb,
and inform the user about the existence of documentation.
Signed-off-by: Yifeng Li
---
drivers/video/fbdev/Kconfig | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig
index
tions are taken verbatim.
This commit appends my name to the list of authors, and included
Miodrag Vallat's name and the ISC license of the original smfb.c
driver.
Signed-off-by: Yifeng Li
---
drivers/video/fbdev/sm712.h | 20
drivers/video/fbdev/sm71
I have working on the sm712fb driver for a while and have some familiarity
with this hardware, I'll be helping working on and testing problems of this
driver, so add myself to the MAINTAINERS file.
Signed-off-by: Yifeng Li
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --
ence
implementation for me.
Finally, during the development and testing of 2D acceleration, the
modesetting code of this driver received a minor cleanup, and many
issues about issues about the modesetting code and this driver in
general have been documented.
Yifeng Li (8):
fbdev: sm712fb: update co
re it caused an unaligned
memory access, which is illegal on MIPS, thus crashing the computer.
Signed-off-by: Yifeng Li
---
drivers/video/fbdev/sm712.h | 3 +
drivers/video/fbdev/sm712fb.c | 396 +-
2 files changed, 392 insertions(+), 7 deletions(-)
diff --git
26 matches
Mail list logo