The NetBSD Project

CVS log for src/sys/arch/arm/sociox/sni_i2c.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 24 08:08:05 2022 UTC (2 years ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

s/interupt/interrupt/ in comments.
also add missing RCS ID in bcm53xx_reg.h and fix one more typo in there.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Dec 22 02:32:53 2021 UTC (2 years, 3 months ago) by nisimura
Branch: MAIN
Changes since 1.13: +49 -7 lines
Diff to previous 1.13 (colored)


add register definitions. the design is BCM2835 I2C look-a-like.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Dec 21 06:00:45 2021 UTC (2 years, 3 months ago) by nisimura
Branch: MAIN
Changes since 1.12: +24 -22 lines
Diff to previous 1.12 (colored)


improve consistency when attach error cases.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Mon Aug 9 00:30:07 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf2
Changes since 1.12: +7 -3 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Aug 7 16:18:45 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base
Branch point for: thorpej-i2c-spi-conf2
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Merge thorpej-cfargs2.

Revision 1.11.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 16:51:29 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Adapt to CFARGS().

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Wed May 19 03:14:24 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.11: +8 -3 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

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.11 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:28 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf, thorpej-cfargs2
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:18 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.8.2.1: +8 -7 lines
Diff to previous 1.8.2.1 (colored) next main 1.9 (colored)

Sync with HEAD.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Tue Mar 23 07:14:44 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jan 27 03:10:19 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.9: +8 -7 lines
Diff to previous 1.9 (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.8.2.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:34:53 2021 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.8: +3 -16 lines
Diff to previous 1.8 (colored)

Sync w/ HEAD.

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

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.8 / (download) - annotate - [select for diffs], Mon Jun 1 00:00:37 2020 UTC (3 years, 10 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored)

Oops, missed a line in the last change.

Revision 1.7 / (download) - annotate - [select for diffs], Sun May 31 23:55:18 2020 UTC (3 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +2 -9 lines
Diff to previous 1.6 (colored)

Remove superfluous checking for a "disable" property in the device_t
properties dictionary.

Revision 1.6.4.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:37 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.6.4.1: +340 -0 lines
Diff to previous 1.6.4.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.6.4.1, Wed Mar 25 23:20:38 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.6: +0 -340 lines
FILE REMOVED

file sni_i2c.c was added on branch phil-wifi on 2020-04-13 08:03:37 +0000

Revision 1.6 / (download) - annotate - [select for diffs], Wed Mar 25 23:20:38 2020 UTC (4 years ago) by nisimura
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Branch point for: phil-wifi
Changes since 1.5: +25 -23 lines
Diff to previous 1.5 (colored)

DRT about config messages

Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 25 22:15:53 2020 UTC (4 years ago) by nisimura
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

better boot messaging, redo

Revision 1.4 / (download) - annotate - [select for diffs], Wed Mar 25 22:11:00 2020 UTC (4 years ago) by nisimura
Branch: MAIN
Changes since 1.3: +79 -87 lines
Diff to previous 1.3 (colored)

better boot messaging

Revision 1.3 / (download) - annotate - [select for diffs], Wed Mar 18 07:49:01 2020 UTC (4 years ago) by nisimura
Branch: MAIN
Changes since 1.2: +238 -12 lines
Diff to previous 1.2 (colored)

enrich I2C driver realities to work a bit

Revision 1.2 / (download) - annotate - [select for diffs], Wed Mar 18 05:02:48 2020 UTC (4 years ago) by nisimura
Branch: MAIN
Changes since 1.1: +3 -4 lines
Diff to previous 1.1 (colored)

use correct compatible designation

Revision 1.1 / (download) - annotate - [select for diffs], Wed Mar 18 03:33:49 2020 UTC (4 years ago) by nisimura
Branch: MAIN

new skelton files for SC2A11 eMMC and I2C

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>