History log of /src/sys/arch/arm/broadcom/bcm2835_spi.c |
Revision | | Date | Author | Comments |
1.14 |
| 10-Sep-2025 |
thorpej | Encapsulate what's needed to attach a SPI bus into a spibus_attach() inline.
|
1.13 |
| 03-Sep-2023 |
tnn | bcm2835_spi: guard against too large clock divider and clamp if necessary
|
1.12 |
| 07-May-2022 |
skrll | Remove unnecessary gotos and label. Same code before and after.
|
1.11 |
| 07-Aug-2021 |
thorpej | branches: 1.11.2; Merge thorpej-cfargs2.
|
1.10 |
| 24-Apr-2021 |
thorpej | branches: 1.10.2; 1.10.8; 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?).
|
1.9 |
| 29-Jan-2021 |
skrll | branches: 1.9.2; fdtbus_intr_establish -> fdtbus_intr_establish_xname
|
1.8 |
| 27-Jan-2021 |
thorpej | 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.
|
1.7 |
| 04-Aug-2020 |
kardel | branches: 1.7.2; Use mutex for lwp/interrupt coordination. using splX() simply does not work on multiprocessor systems.
fixes PR kern/55506
|
1.6 |
| 13-Aug-2019 |
tnn | ensure spibus_attach_args is zero'ed
|
1.5 |
| 10-Dec-2017 |
skrll | branches: 1.5.4; 1.5.8; 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
|
1.4 |
| 29-Jul-2015 |
skrll | When expanding an inline function make sure you get the argument order correct!
Now there's no functional change to expanding bcm2835_intr_establish
|
1.3 |
| 29-Jul-2015 |
skrll | Expand the bcm2835_intr_establish inline.
No functional change.
|
1.2 |
| 07-Oct-2014 |
skrll | branches: 1.2.2; IPL_BIO -> IPL_VM
No functional change. No code change... It's the same thing!
|
1.1 |
| 05-Jan-2013 |
jakllsch | branches: 1.1.2; 1.1.4; 1.1.8; Add driver for BCM2835 SPI0 controller.
|
1.1.8.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.1.8.2 |
| 25-Feb-2013 |
tls | resync with head
|
1.1.8.1 |
| 05-Jan-2013 |
tls | file bcm2835_spi.c was added on branch tls-maxphys on 2013-02-25 00:28:25 +0000
|
1.1.4.2 |
| 13-Feb-2013 |
riz | Pull up following revision(s) (requested by skrll in ticket #813):
etc/MAKEDEV.tmpl 1.160 etc/etc.evbarm/MAKEDEV.conf 1.9 external/broadcom/rpi-firmware/dist/LICENCE.broadcom 1.1 external/broadcom/rpi-firmware/dist/bootcode.bin 1.1 external/broadcom/rpi-firmware/dist/bootcode.bin 1.2 external/broadcom/rpi-firmware/dist/fixup.dat 1.1 external/broadcom/rpi-firmware/dist/fixup.dat 1.2 external/broadcom/rpi-firmware/dist/fixup_cd.dat 1.1 external/broadcom/rpi-firmware/dist/fixup_cd.dat 1.2 external/broadcom/rpi-firmware/dist/start.elf 1.1 external/broadcom/rpi-firmware/dist/start.elf 1.2 external/broadcom/rpi-firmware/dist/start_cd.elf 1.1 external/broadcom/rpi-firmware/dist/start_cd.elf 1.2 sys/arch/arm/broadcom/bcm2835_bsc.c 1.1 via patch sys/arch/arm/broadcom/bcm2835_bscreg.h 1.1 via patch sys/arch/arm/broadcom/bcm2835_dotg.c 1.1 via patch sys/arch/arm/broadcom/bcm2835_emmc.c 1.7 via patch sys/arch/arm/broadcom/bcm2835_genfb.c 1.4 via patch sys/arch/arm/broadcom/bcm2835_gpio_subr.c 1.2 via patch sys/arch/arm/broadcom/bcm2835_gpio_subr.h 1.1 via patch sys/arch/arm/broadcom/bcm2835_gpioreg.h 1.1 via patch sys/arch/arm/broadcom/bcm2835_intr.c 1.3 via patch sys/arch/arm/broadcom/bcm2835_mbox.c 1.5 via patch sys/arch/arm/broadcom/bcm2835_mbox.h 1.4 via patch sys/arch/arm/broadcom/bcm2835_obio.c 1.17 via patch sys/arch/arm/broadcom/bcm2835_pm.c 1.2 via patch sys/arch/arm/broadcom/bcm2835_rng.c 1.3 via patch sys/arch/arm/broadcom/bcm2835_space.c 1.5 via patch sys/arch/arm/broadcom/bcm2835_spi.c 1.1 via patch sys/arch/arm/broadcom/bcm2835_spireg.h 1.1 via patch sys/arch/arm/broadcom/bcm2835_tmr.c 1.3 via patch sys/arch/arm/broadcom/bcm2835reg.h 1.10 via patch sys/arch/arm/broadcom/files.bcm2835 1.14 via patch sys/arch/evbarm/conf/RPI 1.23 via patch sys/arch/evbarm/conf/files.rpi 1.3 via patch sys/arch/evbarm/conf/mk.rpi 1.2 via patch sys/arch/evbarm/conf/std.rpi 1.4 via patch sys/arch/evbarm/rpi/rpi_machdep.c 1.34 via patch sys/arch/evbarm/rpi/rpi_start.S 1.7 via patch sys/arch/evbarm/rpi/rpi_vcmbox.c 1.2 via patch sys/arch/evbarm/rpi/vcio.h 1.1 via patch sys/arch/evbarm/rpi/vcprop.h 1.7 via patch sys/conf/files patch sys/dev/sdmmc/sdhc.c 1.43 sys/dev/sdmmc/sdhcvar.h 1.13 sys/dev/usb/dwc_otg.c 1.45 via patch sys/dev/usb/dwc_otgreg.h 1.5 via patch sys/dev/usb/dwc_otgvar.h 1.11 via patch sys/dev/usb/files.usb 1.126 via patch sys/dev/usb/if_smsc.c 1.7 via patch sys/dev/usb/if_smscreg.h 1.1 via patch sys/dev/usb/if_smscvar.h 1.1 via patch sys/dev/usb/usbdevices.config patch sys/dev/usb/usbdevs 1.633 via patch sys/dev/usb/usbdevs.h regen sys/dev/usb/usbdevs_data.h regen sys/dev/wscons/wsconsio.h 1.105,1.107 via patch sys/dev/wscons/wsdisplayvar.h 1.50 sys/dev/wscons/wsdisplay_util.c 1.2 sys/dev/videomode/edid.c 1.12 via patch
Greatly improved Raspberry Pi support. USB and onboard Ethernet should work. [skrll, ticket #813]
|
1.1.4.1 |
| 05-Jan-2013 |
riz | file bcm2835_spi.c was added on branch netbsd-6 on 2013-02-13 01:36:14 +0000
|
1.1.2.2 |
| 23-Jan-2013 |
yamt | sync with head
|
1.1.2.1 |
| 05-Jan-2013 |
yamt | file bcm2835_spi.c was added on branch yamt-pagecache on 2013-01-23 00:05:41 +0000
|
1.2.2.1 |
| 22-Sep-2015 |
skrll | Sync with HEAD
|
1.5.8.1 |
| 11-Aug-2020 |
martin | Pull up following revision(s) (requested by 1043):
sys/dev/spi/spivar.h: revision 1.10 sys/arch/arm/broadcom/bcm2835_spi.c: revision 1.7 sys/dev/spi/spi.c: revision 1.15
Use mutex for lwp/interrupt coordination. using splX() simply does not work on multiprocessor systems.
fixes PR kern/55506
|
1.5.4.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.7.2.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|
1.9.2.1 |
| 23-Mar-2021 |
thorpej | Convert config_found_ia() call sites where the device only carries a single interface attribute to bare config_found() calls.
|
1.10.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|
1.10.2.1 |
| 18-May-2021 |
thorpej | Pass the controller devhandle along to the "spi" instance.
|
1.11.2.1 |
| 09-Aug-2021 |
thorpej | Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2, which is based on a newer HEAD revision.
|