CVS log for src/sys/arch/arm/nvidia/tegra_i2c.c
Up to [cvs.NetBSD.org] / src / sys / arch / arm / nvidia
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.26.14.1: download - view: text, markup, annotated - select for diffs
Mon Aug 9 00:30:07 2021 UTC (3 years, 6 months ago) by thorpej
Branches: thorpej-i2c-spi-conf2
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -3
lines
Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.
Revision 1.26.4.1: download - view: text, markup, annotated - select for diffs
Wed May 19 03:14:24 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +8 -3
lines
fdtbus_attach_i2cbus() is no longer anything other than a wrapper around
config_found(); just get rid of it and make its callers look like all of
the other I2C controller drivers.
Revision 1.23.8.2: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:17 2021 UTC (3 years, 10 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.23.8.1: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.8.1: +12 -11
lines
Sync with HEAD.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Jan 27 03:10:19 2021 UTC (4 years ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf-base,
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,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-1-RELEASE,
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,
bouyer-sunxi-drm,
HEAD
Branch point for: thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -9
lines
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.25: download - view: text, markup, annotated - select for diffs
Fri Jan 15 23:11:59 2021 UTC (4 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -4
lines
use fdtbus_intr_establish_xname
Revision 1.23.8.1: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:34:52 2021 UTC (4 years, 1 month ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -17
lines
Sync w/ HEAD.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Dec 23 16:02:11 2020 UTC (4 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -17
lines
Change fdtbus_register_i2c_controller() to directly register the i2c_tag_t,
rather than the device and a set of functions (the only of which was to
return the i2c_tag_t anyway). Previously, this assumed only a single
i2c controller node per device_t, which is not true with an i2c mux.
Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:30 2020 UTC (4 years, 10 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.1: +28 -39
lines
Merge changes from current as of 20200406
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Dec 22 23:40:49 2019 UTC (5 years, 1 month ago) by thorpej
Branches: 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
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +28 -39
lines
Use a separate lock (not the i2c bus lock) to synchronize with the
interrupt handler. This in all liklihood fixes a deadlock bug that
necessitated forcing I2C_F_POLL in tegra_i2c_exec() (someone who has
the hardware should test removing that line).
Also includes the changes for:
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.17.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:55 2019 UTC (5 years, 8 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +23 -34
lines
Sync with HEAD
Revision 1.16.10.4: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:38 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.16.10.3: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.10.3: +13 -7
lines
Ssync with HEAD
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Sep 25 22:23:22 2018 UTC (6 years, 4 months ago) by jmcneill
Branches: MAIN
CVS tags: phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
netbsd-9-base,
netbsd-9-4-RELEASE,
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,
isaki-audio2-base,
isaki-audio2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +13 -7
lines
Disallow 0-byte transfers and suppress timeout messages
Revision 1.16.10.3: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:27 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.16.10.2: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.10.2: +11 -11
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:23 2018 UTC (6 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-0906
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +9 -9
lines
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.20: download - view: text, markup, annotated - select for diffs
Sun Aug 5 15:37:10 2018 UTC (6 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -4
lines
Use PRIxBUSADDR and remove unnecessary cast
Revision 1.16.10.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:28 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.16.10.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.10.1: +5 -22
lines
Sync with HEAD
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jul 16 23:11:47 2018 UTC (6 years, 6 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-0728
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -3
lines
Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jul 1 21:18:00 2018 UTC (6 years, 7 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -21
lines
Use fdtbus_attach_i2cbus
Revision 1.16.10.1: download - view: text, markup, annotated - select for diffs
Mon May 21 04:35:59 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -6
lines
Sync with HEAD
Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed May 9 02:53:00 2018 UTC (6 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0625,
pgoyette-compat-0521
Branch point for: phil-wifi
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -6
lines
If we don't get informed (via device properties) of child I2C devices,
don't assign an empty array to iba.iba_child_devices, as it will prevent
indirect configuration of the I2C bus from occurring.
Tested on Raspberry Pi (bcm2835), identical logical fix replicated
(and compile-tested) elsewhere.
PR port-arm/53171
Revision 1.16.8.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:35:54 2017 UTC (7 years, 2 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.16.8.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.8.1: +501 -0
lines
update from HEAD
Revision 1.5.2.6: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:51:31 2017 UTC (7 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.2.5: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.5: +8 -3
lines
Sync with HEAD
Revision 1.16.8.1
Thu May 25 23:43:49 2017 UTC (7 years, 8 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.16: +0 -501
lines
file tegra_i2c.c was added on branch tls-maxphys on 2017-12-03 11:35:54 +0000
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu May 25 23:43:49 2017 UTC (7 years, 8 months ago) by jmcneill
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
pgoyette-compat-base,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek
Branch point for: tls-maxphys,
pgoyette-compat
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -3
lines
Match nvidia,tegra210-i2c and nvidia,tegra114-i2c compat strings.
Revision 1.5.2.5: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:25 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.2.4: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.4: +5 -5
lines
Sync with HEAD
Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Aug 8 14:40:57 2016 UTC (8 years, 6 months ago) by jakllsch
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3
lines
Send repeated start after command phase if there is any data phase
transfer, not just if the data phase a read operation.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Aug 8 14:36:56 2016 UTC (8 years, 6 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4
lines
Adjust data pointer using current, rather than upcoming, transfer length.
Revision 1.5.2.4: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:29:56 2016 UTC (8 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.2.3: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.3: +3 -2
lines
Sync with HEAD
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Feb 14 19:54:20 2016 UTC (9 years ago) by chs
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -2
lines
zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:31 2015 UTC (9 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.2: +106 -48
lines
Sync with HEAD (as of 26th Dec)
Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Dec 22 22:12:08 2015 UTC (9 years, 1 month ago) by jmcneill
Branches: MAIN
CVS tags: nick-nhusb-base-20151226
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -19
lines
tegra_car_* and tegra_i2c_dvc_write are no more
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Dec 22 22:10:36 2015 UTC (9 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +31 -30
lines
Switch Tegra over to fdt based clocks and reset controls.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Dec 16 19:46:55 2015 UTC (9 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +11 -14
lines
use of_getprop_uint32
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Dec 13 17:39:19 2015 UTC (9 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +95 -23
lines
Use fdt for device enumeration.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Nov 12 10:31:29 2015 UTC (9 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +7 -4
lines
Standard mode for I2C needs a source divider of 20, not 2.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Nov 11 12:28:15 2015 UTC (9 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -3
lines
only send repeat start if we are doing write-then-read
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Nov 11 11:32:01 2015 UTC (9 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +8 -7
lines
fix i2c periph clock, send repeat start for write-then-read xfers
Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:39:56 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +437 -0
lines
Sync with HEAD
Revision 1.5.2.1
Sun May 31 14:41:59 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.5: +0 -437
lines
file tegra_i2c.c was added on branch nick-nhusb on 2015-06-06 14:39:56 +0000
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun May 31 14:41:59 2015 UTC (9 years, 8 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-nhusb-base-20150921,
nick-nhusb-base-20150606
Branch point for: nick-nhusb
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +19 -2
lines
add external function for writing to dvc (I2C5) devices
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun May 17 01:26:22 2015 UTC (9 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +16 -2
lines
initialize FIFO TX/RX trigger levels, wait for MSTR_CONFIG_LOAD to clear after setting it
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat May 16 23:09:08 2015 UTC (9 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +12 -9
lines
fix source clock divisor, set MSTR_CONFIG_LOAD after updating config, reset controller on errors, read from rx fifo before waiting for xfer to complete
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat May 16 21:31:39 2015 UTC (9 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +121 -70
lines
Support transfers > 4-bytes long by reading and writing using the
controller's packet-based interface instead of non-packet ("normal") mode.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun May 10 23:50:21 2015 UTC (9 years, 9 months ago) by jmcneill
Branches: MAIN
Tegra I2C driver
CVSweb <webmaster@jp.NetBSD.org>