mips: Fix build by using the correct device-tree include path
Avoid dump_avail[] redefinition.Move dump_avail[] extern declaration and inlines into a new headervm/vm_dumpset.h. This fixes default gcc build for mips.Reviewed by: alc, scottphTested by: kev
Avoid dump_avail[] redefinition.Move dump_avail[] extern declaration and inlines into a new headervm/vm_dumpset.h. This fixes default gcc build for mips.Reviewed by: alc, scottphTested by: kevans (previous version)Sponsored by: The FreeBSD FoundationDifferential revision: https://reviews.freebsd.org/D26741
show more ...
mips: clean up empty lines in .c and .h files
Add dwc_otg_acpiCreate an acpi attachment for the DWC USB OTG device. This is present inthe Raspberry Pi 4 in the USB-C port normally used to power the board. Somefirmware presents the kernel wit
Add dwc_otg_acpiCreate an acpi attachment for the DWC USB OTG device. This is present inthe Raspberry Pi 4 in the USB-C port normally used to power the board. Somefirmware presents the kernel with ACPI tables rather than FDT so we needan ACPI attachment.Submitted by: Greg V <greg_unrelenting.technology>Approved by: hselasky (removal of All rights reserved)Differential Revision: https://reviews.freebsd.org/D25203
Print CPU informtion later in boot.Match other architectures and print CPU information duringcpu_startup(). In particular, this prints the information after themessage buffer is initialized whic
Print CPU informtion later in boot.Match other architectures and print CPU information duringcpu_startup(). In particular, this prints the information after themessage buffer is initialized which allows it to be retrieved afterboot via dmesg(8).While here, add some extern declarations to <machine/md_var.h> inplace of duplicated declarations in various source files.Reviewed by: brooksSponsored by: DARPADifferential Revision: https://reviews.freebsd.org/D24936
Move phys_avail definition into MI code. It is consumed in the MI layer anddoing so adds more flexibility with less redundant code.Reviewed by: jhb, markj, kibSponsored by: NetflixDifferential
Move phys_avail definition into MI code. It is consumed in the MI layer anddoing so adds more flexibility with less redundant code.Reviewed by: jhb, markj, kibSponsored by: NetflixDifferential Revision: https://reviews.freebsd.org/D21250
sys: Remove DEV_RANDOM device optionRemove 'device random' from kernel configurations that reference it (most).Replace perhaps mistaken 'nodevice random' in two MIPS configs with 'optionsRANDOM_L
sys: Remove DEV_RANDOM device optionRemove 'device random' from kernel configurations that reference it (most).Replace perhaps mistaken 'nodevice random' in two MIPS configs with 'optionsRANDOM_LOADABLE' instead. Document removal in UPDATING; update NOTES andrandom.4.Reviewed by: delphij, markm (previous version)Approved by: secteam(delphij)Differential Revision: https://reviews.freebsd.org/D19918
[mediatek] Add support for non-flash devices on the SPI bus of the Mediatek SoCs.The existing SPI support only worked for directly attached flash chips.it didn't implement clock programming or chi
[mediatek] Add support for non-flash devices on the SPI bus of the Mediatek SoCs.The existing SPI support only worked for directly attached flash chips.it didn't implement clock programming or chipselect. It also supportstransfers with unbalanced tx/rx command sizes.Submitted by: <[email protected]>Differential Revision: https://reviews.freebsd.org/D20101
Fix access to cpu_model[] in mtk_soc_set_cpu_model()There may be cases where cpu_model[] may not be 32bit aligned, so it isbetter to not try to access it as such in order to avoid unaligned access
Fix access to cpu_model[] in mtk_soc_set_cpu_model()There may be cases where cpu_model[] may not be 32bit aligned, so it isbetter to not try to access it as such in order to avoid unaligned access.Sponsored by: Smartcom - Bulgaria AD
Implement support for sysctl hw.model for Mediatek/Ralink SoCsThese SoCs have CHIPID registers, which store the Chip model, accordingto the manufacturer; make use of those in order to better ident
Implement support for sysctl hw.model for Mediatek/Ralink SoCsThese SoCs have CHIPID registers, which store the Chip model, accordingto the manufacturer; make use of those in order to better identifythe chip we're actually running on.If we're unable to read the CHIPID registers for some reason we willuse the string "unknown " as a value for hw.model.Reported by: [email protected]Sponsored by: Smartcom - Bulgaria AD
follow-up to r336635, update TAILQ to CK_SLIST for ie_handlersarm, mips and sparc64 were affected.
Use boot_parse_* to parse command line args and retire cut-n-pastecode that was substantially identical.Sponsored by: NetflixDifferential Revision: https://reviews.freebsd.org/D16205
Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_allocChange OF_getencprop_alloc semantics to be combination of malloc andOF_getencprop and return size of the property, not number o
Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_allocChange OF_getencprop_alloc semantics to be combination of malloc andOF_getencprop and return size of the property, not number of elementsallocated.For the use cases where number of elements is preferred introduceOF_getencprop_alloc_multi helper function that copies semanticsof OF_getencprop_alloc prior to this change.This is to make OF_getencprop_alloc and OF_getencprop_alloc_multifunction signatures consistent with OF_getencprop_alloc andOF_getencprop_alloc_multi.Functionality-wise this patch is mostly rename of OF_getencprop_allocto OF_getencprop_alloc_multi except two calls in ofw_bus_setup_iinfowhere 1 was used as a block size.
Clean up OF_getprop_alloc APIOF_getprop_alloc takes element size argument and returns number ofelements in the property. There are valid use cases for such behaviorbut mostly API consumers pass 1
Clean up OF_getprop_alloc APIOF_getprop_alloc takes element size argument and returns number ofelements in the property. There are valid use cases for such behaviorbut mostly API consumers pass 1 as element size to get stringproperties. What API users would expect from OF_getprop_alloc is to bea combination of malloc + OF_getprop with the same semantic of returnvalue. This patch modifies API signature to match these expectations.For the valid use cases with element size != 1 and to reducemodification scope new OF_getprop_alloc_multi function has beenintroduced that behaves the same way OF_getprop_alloc behaved prior tothis patch.Reviewed by: ian, manuDifferential Revision: https://reviews.freebsd.org/D14850
[mips] Pin control configuration for MediaTek RT2880RT2880 is MIPS4Kc SoC used in many SOHO routers. This commits adds GPIO pincontrol configuration of RT2880.Submitted by: Hiroki Mori <yamori83
[mips] Pin control configuration for MediaTek RT2880RT2880 is MIPS4Kc SoC used in many SOHO routers. This commits adds GPIO pincontrol configuration of RT2880.Submitted by: Hiroki Mori <[email protected]>Reviewed by: mizhka, sgalabovDifferential Revision: https://reviews.freebsd.org/D12648
[mediatek] [gpio] add PPS / interrupt support.Submitted by: Hiroki Mori <[email protected]>Reviewed by: mizhkaDifferential Revision: https://reviews.freebsd.org/D9784
[mips] [rt2880] Add oldest Ralink MIPS SOC RT2880 support code.* Target module have ic plus etherswitch ip175c.* Also add etherswitch support code on rt driver.Reviewed by: mizhkaDifferential R
[mips] [rt2880] Add oldest Ralink MIPS SOC RT2880 support code.* Target module have ic plus etherswitch ip175c.* Also add etherswitch support code on rt driver.Reviewed by: mizhkaDifferential Revision: https://reviews.freebsd.org/D10336
Convert PCIe Hot Plug to using pci_request_featureConvert PCIe hot plug support over to asking the firmware, if any, forpermission to use the HotPlug hardware. Implement pci_request_featurefor AC
Convert PCIe Hot Plug to using pci_request_featureConvert PCIe hot plug support over to asking the firmware, if any, forpermission to use the HotPlug hardware. Implement pci_request_featurefor ACPI. All other host pci connections to allowing all valid featurerequests.Sponsored by: Netflix
ofw_spi: Parse property for the SPI mode and CS polarity.As cs is stored in a uint32_t, use the last bit to store theactive high flag as it's unlikely that we will have that much CS.Reviewed by:
ofw_spi: Parse property for the SPI mode and CS polarity.As cs is stored in a uint32_t, use the last bit to store theactive high flag as it's unlikely that we will have that much CS.Reviewed by: loosMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D8614
Use the spibus accessor when applicable.MFC after: 3 days
Move intrng includes to the main MIPS includes file.Sponsored by: DARPA, AFRL
Use the new ofw_bus_node_is_compatible function in the mips code.Sponsored by: ABT Systems Ltd
Fix device delete child function.When detaching device trees parent devices must be detached prior todetaching its children. This is because parent devices can havepointers to the child devices i
Fix device delete child function.When detaching device trees parent devices must be detached prior todetaching its children. This is because parent devices can havepointers to the child devices in their softcs which are notinvalidated by device_delete_child(). This can cause use after freeissues and panic().Device drivers implementing trees, must ensure its detach functiondetaches or deletes all its children before returning.While at it remove now redundant device_detach() calls beforedevice_delete_child() and device_delete_children(), mostly inthe USB controller drivers.Tested by: Jan Henrik Sylvester <[email protected]>Reviewed by: jhbDifferential Revision: https://reviews.freebsd.org/D8070MFC after: 2 weeks
Build etherswitch support for appropriate Ralink/Mediatek SoCsEtherswitch support is built by default on all SoCs except RT3662/RT3883as they have no built-in switch and their configurations with
Build etherswitch support for appropriate Ralink/Mediatek SoCsEtherswitch support is built by default on all SoCs except RT3662/RT3883as they have no built-in switch and their configurations with externalswitches are not yet supported.Sponsored by: Smartcom - Bulgaria AD
Ralink: Add more SoC compatible stringsAdd more 'compatible' strings found in various LEDE DTS files.Reviewed by: adrianApproved by: adrian (mentor)Sponsored by: Smartcom - Bulgaria ADDifferen
Ralink: Add more SoC compatible stringsAdd more 'compatible' strings found in various LEDE DTS files.Reviewed by: adrianApproved by: adrian (mentor)Sponsored by: Smartcom - Bulgaria ADDifferential Revision: https://reviews.freebsd.org/D6432
123