The NetBSD Project

CVS log for src/sys/arch/arm/sunxi/sunxi_hdmi.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / sunxi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.14.16.3 / (download) - annotate - [select for diffs], Sun Oct 16 17:11:05 2022 UTC (17 months, 4 weeks ago) by bouyer
Branch: bouyer-sunxi-drm
Changes since 1.14.16.2: +3 -2 lines
Diff to previous 1.14.16.2 (colored) to branchpoint 1.14 (colored)

Propagate videomode back to tcon

Revision 1.14.16.2 / (download) - annotate - [select for diffs], Sun Oct 16 14:56:04 2022 UTC (17 months, 4 weeks ago) by bouyer
Branch: bouyer-sunxi-drm
Changes since 1.14.16.1: +409 -190 lines
Diff to previous 1.14.16.1 (colored) to branchpoint 1.14 (colored)

Work in progress: convert sunxi_hdmi to drm

Revision 1.14.16.1 / (download) - annotate - [select for diffs], Sun Oct 2 10:37:12 2022 UTC (18 months, 1 week ago) by bouyer
Branch: bouyer-sunxi-drm
Changes since 1.14: +23 -29 lines
Diff to previous 1.14 (colored)

Patch from Robert Swindells: start converting the A20 console driver to
drm2.
It builds but panics at boot because of missing helper functions for
debe.

Revision 1.10.8.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:19 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.10: +9 -8 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jan 27 03:10:20 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, HEAD
Branch point for: bouyer-sunxi-drm
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Rename of_match_compat_data() to of_compatible_match().  Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jan 27 02:09:39 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Use DEVICE_COMPAT_EOL.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 25 14:20:39 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.11: +3 -4 lines
Diff to previous 1.11 (colored)

Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jan 18 02:35:49 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.10: +9 -7 lines
Diff to previous 1.10 (colored)

Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:38 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.4.2.1: +33 -54 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.10 / (download) - annotate - [select for diffs], Mon Dec 23 18:20:02 2019 UTC (4 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

No need to use I2C_F_POLL here.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Dec 23 00:24:02 2019 UTC (4 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

When deciding to delay (rather than kpause), pay attention to
I2C_F_POLL, not 'cold'.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Dec 22 23:23:30 2019 UTC (4 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +9 -33 lines
Diff to previous 1.7 (colored)

Cleanup i2c bus acquire / release, centralizing all of the logic into
iic_acquire_bus() / iic_release_bus().  "acquire" and "release" hooks
no longer need to be provided by back-end controller drivers (only if
they need special handling, e.g. powering on the i2c controller).
This results in the removal of a bunch of rendundant code from each
back-end controller driver.

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 19 10:54:26 2019 UTC (4 years, 8 months ago) by bouyer
Branch: MAIN
CVS Tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.6: +23 -20 lines
Diff to previous 1.6 (colored)

Don't allocate edid informations on stack, it's too large (struct edid_info is
near 3KB), and causes a stack overflow, corrupting proc0's struct pcb.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:56 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Sync with HEAD

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:37 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Merge the [pgoyette-compat] branch

Revision 1.3.2.4 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:27 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.3.2.3: +3 -3 lines
Diff to previous 1.3.2.3 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.5 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:24 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.3.2.3 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:40 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.3.2.2: +38 -24 lines
Diff to previous 1.3.2.2 (colored) to branchpoint 1.3 (colored)

Sync with HEAD

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jun 1 17:18:44 2018 UTC (5 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.3: +38 -24 lines
Diff to previous 1.3 (colored)

Defer display hardware reset to pipeline activation. This way, if we have a
pipeline setup which we can't manage, the simple framebuffer will keep working.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Sat Apr 7 04:12:12 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.3.2.1: +1229 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored)

Sync with HEAD.  77 conflicts resolved - all of them $NetBSD$

Revision 1.3.2.1, Tue Apr 3 16:17:59 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.3: +0 -1229 lines
FILE REMOVED

file sunxi_hdmi.c was added on branch pgoyette-compat on 2018-04-07 04:12:12 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Tue Apr 3 16:17:59 2018 UTC (6 years ago) by bouyer
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407
Branch point for: pgoyette-compat
Changes since 1.2: +11 -2 lines
Diff to previous 1.2 (colored)

disable all clocks at end of attach function, and re-enable ahb and mod only
in activate function.
enable ram gate (in debe) and video plls (in tcon) only when the video output
is enabled. Saves about 20mw when both video outputs are off.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 3 13:38:13 2018 UTC (6 years ago) by bouyer
Branch: MAIN
Changes since 1.1: +4 -5 lines
Diff to previous 1.1 (colored)

A10 and A20 should have the same display hardware, so consistenly support
sun4i-a10 the same way as sun7i-a20.
This would need to be tested on a real A10.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Apr 3 12:52:16 2018 UTC (6 years ago) by bouyer
Branch: MAIN

work in progress on porting graphics drivers from arm/allwinner to fdt.
sunxidebe: display backend drivers
sunxitcon: lcd controller driver
sunxihdmi: hdmi controller driver
sunxidep: display engine pipeline driver. Its role is only to parse the
   fdt display-engine node, and activate de backend drivers based on the
   content of allwinner,pipelines

So far HDMI and lvds output works, in dual-framebuffer mode.
It has only been tested on A20. It should be OK on the A10 too, but
will likely need more work for other SoCs.
Console is not handled yet, and it conflicts with the simplefb driver if
it has been activated by u-boot.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>