History log of /netbsd-src/sys/arch/arm/broadcom/bcm2835_spi.c (Results 1 – 13 of 13)
Revision Date Author Comments
# e187ab08 03-Sep-2023 tnn <tnn@NetBSD.org>

bcm2835_spi: guard against too large clock divider and clamp if necessary


# a4352293 07-May-2022 skrll <skrll@NetBSD.org>

Remove unnecessary gotos and label. Same code before and after.


# c7fb772b 07-Aug-2021 thorpej <thorpej@NetBSD.org>

Merge thorpej-cfargs2.


# 2685996b 24-Apr-2021 thorpej <thorpej@NetBSD.org>

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 a

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?).

show more ...


# bd99f6a8 29-Jan-2021 skrll <skrll@NetBSD.org>

fdtbus_intr_establish -> fdtbus_intr_establish_xname


# 6e54367a 27-Jan-2021 thorpej <thorpej@NetBSD.org>

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 c

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.

show more ...


# 37614169 04-Aug-2020 kardel <kardel@NetBSD.org>

Use mutex for lwp/interrupt coordination. using splX() simply does not work
on multiprocessor systems.

fixes PR kern/55506


# 9555f417 13-Aug-2019 tnn <tnn@NetBSD.org>

ensure spibus_attach_args is zero'ed


# ee91b1e5 10-Dec-2017 skrll <skrll@NetBSD.org>

FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs re

FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.

The kernel image that the RPI firmware boots is now netbsd.img in the
kernel build directory.

XXX fdtbus_get_reg needs reworking

show more ...


# 679cf186 29-Jul-2015 skrll <skrll@NetBSD.org>

When expanding an inline function make sure you get the argument order
correct!

Now there's no functional change to expanding bcm2835_intr_establish


# 2503df91 29-Jul-2015 skrll <skrll@NetBSD.org>

Expand the bcm2835_intr_establish inline.

No functional change.


# 0fe4d97e 07-Oct-2014 skrll <skrll@NetBSD.org>

IPL_BIO -> IPL_VM

No functional change. No code change... It's the same thing!


# 74dad322 05-Jan-2013 jakllsch <jakllsch@NetBSD.org>

Add driver for BCM2835 SPI0 controller.