Commit Graph

269868 Commits

Author SHA1 Message Date
martin c30febe7d6 Pull up following revision(s) (requested by msaitoh in ticket #651):
sys/dev/pci/if_mcx.c: revision 1.8
	sys/dev/pci/if_mcx.c: revision 1.9

- Change IFM_10G_T(10GBase-T) entry to IFM_10G_CR1(10GBASE-CR1)
- Add the following entries:
	20GBASE-KR2
	56GBASE-R4
	100GBASE-LR4
	100BaseTX
	1000baseT
	10GBase-T
Set if_baudrate.
2020-01-26 11:17:11 +00:00
martin b6e92bef63 Pull up the following (via patch), requested by msaitoh in ticket #650:
sys/dev/pci/if_wm.c			1.650, 1.652-1.654
	sys/dev/pci/if_wmreg.h			1.116-1.117

- Set CTRL_ILOS(Invert loss of signal) bit correctly on 82580
  port 1, 2, 3 and newer chips. This change fixes a bug that some
  fiber, serdes or SFP devices don't detect the link status correctly.
- Simplify code by using "struct mii_data *mii" more. No functional
  change.
- MSI-X doesn't use sc->sc_icr variable, so move the code into
  non-MSI-X part. No functional change intended.
- Modify debug printfs a bit.
- Rename macro.
- Use __BIT()
- Fix comment. Add comment.
- KNF.
2020-01-26 11:13:27 +00:00
martin 3ba0477766 Pull up following revision(s) (requested by msaitoh in ticket #649):
sys/dev/mii/ihphy.c: revision 1.15

 Remove extra 10ms delay in ihphy_reset(). The delay are in if_wm.c side.
It's required for hardware full reset and it't not requred on soft reset.

 When ihphy.c was added in 9 years ago, some workaround code were not in
if_wm.c yet and the initialization code was not good.
2020-01-26 11:11:13 +00:00
martin ead075f9f9 Pull up the following (via patch), requested by msaitoh in ticket #648
sys/dev/pci/ixgbe/if_bypass.c		1.5
	sys/dev/pci/ixgbe/ixgbe_osdep.c		1.5
	sys/dev/pci/ixgbe/ix_txrx.c		1.58-1.60
	sys/dev/pci/ixgbe/ixgbe.c		1.220-1.221
	sys/dev/pci/ixgbe/ixgbe.h		1.60-1.2
	sys/dev/pci/ixgbe/ixgbe_api.c		1.24
	sys/dev/pci/ixgbe/ixgbe_common.c	1.26
	sys/dev/pci/ixgbe/ixgbe_netbsd.c	1.11-1.12
	sys/dev/pci/ixgbe/ixgbe_osdep.h		1.24
	sys/dev/pci/ixgbe/ixgbe_phy.c		1.19
	sys/dev/pci/ixgbe/ixgbe_82598.c		1.14
	sys/dev/pci/ixgbe/ixv.c			1.142,1.144

- Free RX structure correctly when detaching.
- Remove unused code.
- Fix some typos in comment.
- Remove extra spaces.
- KNF.
2020-01-26 11:03:17 +00:00
martin c592185caf Pull up following revision(s) (requested by ad in ticket #647):
lib/libpthread/pthread_rwlock.c: revision 1.37 (patch)
	lib/libpthread/pthread_misc.c: revision 1.16
	lib/libpthread/pthread.c: revision 1.154
	lib/libpthread/pthread_int.h: revision 1.98
	lib/libpthread/pthread_cond.c: revision 1.66
	lib/libpthread/pthread_mutex.c: revision 1.66

Rip out some very ambitious optimisations around pthread_mutex that are
don't buy much.  This stuff is hard enough to get right in the kernel let
alone userspace, and I don't trust that it's right.
2020-01-26 10:55:16 +00:00
martin 4b4a5dea31 Tickets #645 and #646 2020-01-24 20:21:53 +00:00
martin c7485b1868 Pull up following revision(s) (requested by roy in ticket #646):
sbin/route/route.c: revision 1.164
	sbin/route/route.c: revision 1.165

route: Decode the correct flags for interface address messages
route: address flags are more useful than interface flags for address msgs
2020-01-24 20:13:45 +00:00
martin 1ae116d6a3 Pull up following revision(s) (requested by roy in ticket #645):
sys/netinet/if_arp.c: revision 1.292

arp: find source address then target address when processing input

This fixes the case where another host having a duplicate ip address
starts using it right away without probing for it's availability.

While here, prefer ifatoia over a strict cast.
2020-01-24 18:57:02 +00:00
martin 4a90082c00 Tickets #642, #643, #644 2020-01-23 10:15:40 +00:00
martin 1029d245d8 Pull up following revision(s) (requested by knakahara in ticket #644):
sys/netinet/ip_encap.c: revision 1.72

Fix PR security/54881.  Pointed out by ohishi@IIJ, thanks.
2020-01-23 10:14:30 +00:00
martin 828b95c642 Pull up following revision(s) (requested by knakahara in ticket #643):
sys/dev/pci/if_wm.c: revision 1.661

fix softint_disestablish() in wm_detach().

ok by msaitoh@n.o
XXX pullup-8, pullup-9
2020-01-23 10:10:57 +00:00
martin e9ab7ffbf7 Pull up following revision(s) (requested by sevan in ticket #642):
usr.bin/calendar/calendars/calendar.birthday: revision 1.36

Add Terry Jones, once clarified who wasn't the messiah, but a very
naughty boy
2020-01-23 10:09:01 +00:00
martin a3ac33b989 Fix another patch mishap from ticket #616 2020-01-21 19:54:55 +00:00
martin dc1afcdc18 Ticket #641 2020-01-21 18:24:01 +00:00
martin 089ce0cabc Pull up following revision(s) (requested by maya in ticket #641):
sys/dev/dm/device-mapper.c: revision 1.60

dm(8) doesn't cause problems on suspend, don't block it.
Tested by Matthias Petermann, thanks!
2020-01-21 18:22:51 +00:00
martin f1dceff2b9 Ammend ticket #638 for additional changes 2020-01-21 17:25:03 +00:00
martin 03af0a5258 iconv needs const args on this branch (ticket #638) 2020-01-21 17:22:59 +00:00
martin 003fe7fce9 Ticket #623 2020-01-21 16:46:07 +00:00
martin 336f4b8266 Tickets #616 - #622, #624 - #639 2020-01-21 15:55:41 +00:00
martin c8fdba52af Pull up following revision(s) (requested by pgoyette in ticket #639):
sys/conf/files: revision 1.1254

COMPAT_43 requires COMPAT_60
2020-01-21 15:53:39 +00:00
martin 85e157360a Pull up the following, requested by christos in ticket #638:
external/bsd/libarchive/dist/test_utils/test_common.h up to 1.1
	external/bsd/libarchive/dist/test_utils/test_main.c up to 1.1
	external/bsd/libarchive/dist/test_utils/test_utils.c up to 1.1
	external/bsd/libarchive/dist/test_utils/test_utils.h up to 1.1
	external/bsd/libarchive/prepare-import.sh       up to 1.5
	external/bsd/libarchive/dist/libarchive/archive.h up to 1.5
	external/bsd/libarchive/dist/libarchive/archive_private.h up to 1.2
	external/bsd/libarchive/dist/libarchive/archive_util.c up to 1.2
	external/bsd/libarchive/dist/libarchive/archive_write_disk_posix.c up to 1.4
	external/bsd/libarchive/dist/libarchive/test/test_archive_write_set_format_filter_by_ext.c up to 1.2
	external/bsd/libarchive/dist/libarchive/test/test_read_disk_directory_traversals.c up to 1.2
	external/bsd/libarchive/dist/libarchive/test/test_read_format_7zip.c up to 1.2
	external/bsd/libarchive/dist/libarchive/test/test_sparse_basic.c up to 1.2
	external/bsd/libarchive/dist/libarchive/test/test_write_disk_secure.c up to 1.3
	external/bsd/libarchive/dist/libarchive/test/test_write_disk_secure744.c up to 1.2
	external/bsd/libarchive/dist/libarchive/test/test_write_disk_secure746.c up to 1.2
	external/bsd/libarchive/dist/libarchive/test/test_write_format_zip_file.c up to 1.2
	external/bsd/libarchive/dist/libarchive/test/test_write_format_zip_file_zip64.c up to 1.2
	external/bsd/libarchive/dist/tar/bsdtar.c       up to 1.2
	external/bsd/libarchive/dist/tar/test/test_copy.c up to 1.2
	external/bsd/libarchive/dist/tar/test/test_option_U_upper.c up to 1.2
	external/bsd/libarchive/dist/tar/test/test_symlink_dir.c up to 1.2
	external/bsd/libarchive/include/config_netbsd.h up to 1.11
	external/bsd/libarchive/lib/libarchive/Makefile up to 1.11

- atomic extraction
- preserve existing symlinks
2020-01-21 15:48:51 +00:00
martin 9df9687221 Pull up following revision(s) (requested by tsutsui in ticket #637):
sys/dev/sun/kbd.c: revision 1.71

Fix panic on sun3 when any key is typed when kbd is not console. PR/54873
Should be pulled up to netbsd-9.
2020-01-21 15:44:24 +00:00
martin e481e933b8 Pull up following revision(s) (requested by tsutsui in ticket #636):
sys/arch/sun3/include/pmap.h: revision 1.33
	sys/arch/sun3/include/pmap3.h: revision 1.50
	sys/arch/sun3/include/pmap3x.h: revision 1.30

Fix "modload nfsserver" failure on sun3.  PR/54869
sun3 port has two definitions for different pmaps for sun3 (pmap3.h)
and sun3x (pmap3x.h) and they are selected by _SUN3_ or _SUN3X_ macro,
but neither of them is defined on module builds so common exported
definitions required by module(7) should be in a common header,
i.e. pmap.h.

Should be pulled up to netbsd-9.
2020-01-21 15:41:43 +00:00
martin fbce5c784a Pull up following revision(s) (requested by nia in ticket #635):
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.27
	share/man/man4/pckbd.4: revision 1.22
	sys/dev/hid/hidkbdmap.c: revision 1.2

Support the combination of KB_SWAPCTRLCAPS and UK layout.
Note some more layouts that work with KB_SWAPCTRLCAPS.
2020-01-21 15:39:02 +00:00
martin d241c7a9f8 Pull up following revision(s) (requested by jmcneill in ticket #634):
sys/external/bsd/drm2/dist/drm/radeon/radeon_vce.c: revision 1.4

Fix loading TAHITI VCE firmware.
2020-01-21 15:35:39 +00:00
martin 6156b52ae4 Apply patch, requested by pgoyette in ticket #633:
PR kern/54874: fix load failure of the exec_aout kernel module.
2020-01-21 15:33:33 +00:00
martin ba72500e05 Pull up following revision(s) (requested by kre in ticket #632):
distrib/miniroot/install.sub: revision 1.52

The idiom

	set $whatever
	while [ $# - gt 10 ]; do shift 10; done
	eval echo \$$#

fails when $# turns out to be 10 (or any multiple), it would need
to be instead

	while [ $# -ge 10 ]; do shift 9; done

but there hasn't been a shell that cannot handle ${10} (etc) correctly
in a very long time, so let's just use that instead (properly quoted,
in case IFS happens to contain a digit for some bizarre reason).

We should also "set -f" / "set +f" (or better, restore the prev setting of -f)
around the "set $whatever" part, but if that was ever going to cause a problem
here, it would have already, so leave that for now.
2020-01-21 15:26:46 +00:00
martin 9c54512d3b Pull up following revision(s) (requested by nonaka in ticket #631):
sys/arch/i386/stand/efiboot/devopen.c: revision 1.10
	sys/arch/i386/stand/efiboot/devopen.c: revision 1.11

fix indent.

x86 efiboot: Fixed the problem that /EFI/NetBSD/boot.cfg could not be loaded.
2020-01-21 15:22:21 +00:00
martin 5dca6076d9 Pull up following revision(s) (requested by simonb in ticket #630):
sys/dev/ic/ahcisatavar.h: revision 1.24
	sys/dev/pci/ahcisata_pci.c: revision 1.57
	sys/dev/ic/ahcisata_core.c: revision 1.81

Add new AHCI_QUIRK_BADNCQ quick for controllers that have issues with
NCQ on (some) drives.  Enable this quirk for ATI (AMD) SB600/SB700
controllers.  Alternate fix for kern/54790 and kern/54855.
ok jdolecek@, tested on my SB700 chipset and tsutsui's SB600 chipset.
2020-01-21 15:19:51 +00:00
martin 7c9b24a10d Pull up the following, requested by msaitoh in ticket #629:
sys/dev/pci/pcireg.h			1.148
	sys/dev/pci/pci_subr.c			1.218-1.219

- Fix a bug that the virtual channel extended configuration's
  arbitration phase register can't be decoded correctly.
- Fix typo.
2020-01-21 15:15:23 +00:00
martin eeb9f0d030 Pull up following revision(s) (requested by msaitoh in ticket #628):
sys/dev/usb/if_urlreg.h: revision 1.16

URL_TCR_IFG0 is not bit 4 but bit3. From OpenBSD.
2020-01-21 15:12:05 +00:00
martin 394bd0e1b9 Pull up following revision(s) (requested by msaitoh in ticket #627):
sys/dev/pci/if_stgereg.h: revision 1.7

 Fix address of STGE_MaxFrameSize. Same as other OSes.
2020-01-21 15:10:51 +00:00
martin d90f02ad9e Fix misapplied patch in previous (ticket #616) 2020-01-21 15:05:51 +00:00
martin e84cae6184 Pull up following revision(s) (requested by msaitoh in ticket #626):
sys/arch/amd64/conf/GENERIC: revision 1.552
	sys/dev/pci/if_casreg.h: revision 1.2
	sys/dev/pci/if_cas.c: revision 1.37
	share/man/man4/cas.4: revision 1.4
	sys/dev/pci/if_casvar.h: revision 1.7

 Update supported device list with part number. From FreeBSD.

 Fix a bug that the driver sometimes incorrectly attach gentbi(4) instead of
gphyter(4) on non-fiber device.

Tested with Sun Quad GigaSwift Ethernet UTP (QGE) (part no. 501-6522) on
amd64. On this environment, the problem frequently had occurred. I also
tested with other 4 cas(4) variants.

 Add cas(4).
2020-01-21 11:55:57 +00:00
martin 05f8aff5d6 Pull up following revision(s) (requested by taca in ticket #625):
sys/dev/usb/xhci.c: revision 1.115

Acquire bus lock (if not polling) when changing xfer status, resetting
the timeout and ringing the doorbell in the start methods.
2020-01-21 11:43:27 +00:00
martin bbce61439c Pull up following revision(s) (requested by ryo in ticket #624):
sys/arch/aarch64/aarch64/bus_space_asm_generic.S: revision 1.2

Fix mis-incrementing pointer size in bus_space_read_region_{4,8}
pointed out by jmcneill@. thanks.
2020-01-21 11:40:17 +00:00
martin 954a937501 Pull up following revision(s) (requested by pgoyette in ticket #623):
sys/arch/x86/x86/cpu.c: revision 1.181

If "application processors" were skipped/disabled at boot time (due to
RB_MD1 being set), don't try to examine the featurebus info, since it
was never retrieved.  Addresses kern/54815

XXX pullup-9
2020-01-21 11:36:36 +00:00
martin 180e77dfef Pull up following revision(s) (requested by tsutsui in ticket #622):
distrib/miniroot/install.sub: revision 1.50
	distrib/miniroot/install.sub: revision 1.51

Fix miniroot installation failure on network configuration.  PR/54833

No particular comment in the PR.
Should be pulled up to netbsd-9.

Fix "[: SMALL test, no fallback usage" error on miniroot installation.

Avoid and replace use of '-a', '(' and ')' operatos marked obsolescent
by modern POSIX.1-2017:

 https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_128_16

as suggested by kre@ in PR/54835.

Should be pulled up to netbsd-9.
2020-01-21 11:30:28 +00:00
martin 09dac0d30e Pull up following revision(s) (requested by sevan in ticket #621):
share/man/man9/callout.9: revision 1.29

Update callout_halt() to match src/sys/sys/callout.h
2020-01-21 11:21:52 +00:00
martin ae3075ff2e Pull up following revision(s) (requested by isaki in ticket #620):
sys/dev/audio/audio.c: revision 1.39

Fix an resource leak on audiobell close.
audioclose() freed audio_file_t structure, but only audiobellclose
didn't pass there.  I change that all of freeing audio_file_t is done
by each *_close().
2020-01-21 11:19:19 +00:00
martin e480821bb6 Pull up following revision(s) (requested by isaki in ticket #619):
sys/dev/audio/audio.c: revision 1.37

Move mutex_exit() correct place to protect sc_async_mixer.
Thanks maxv@!
2020-01-21 11:17:58 +00:00
martin ad27b8fa71 Pull up following revision(s) (requested by ryo in ticket #618):
sys/arch/aarch64/aarch64/fault.c: revision 1.11
	sys/arch/aarch64/aarch64/pmap.c: revision 1.61

fix behaviour mmap()/mprotect() when passed only PROT_EXEC.
when mmap()/mprotect() with only PROT_EXEC, syscall will be successful,
but the page actually hadn't been mapped.
it should be mapped with PROT_READ|PROT_EXEC implicitly. (r-x)
2020-01-21 11:15:52 +00:00
martin c005686c46 Pull up following revision(s) (requested by ryo in ticket #617):
sys/arch/aarch64/aarch64/aarch64_machdep.c: revision 1.37
	sys/arch/aarch64/aarch64/locore.S: revision 1.50

fix panic when modload.

panic: kernel diagnostic assertion "!pmap_extract(pmap_kernel(), loopva, NULL)" failed: file "../../../../uvm/uvm_km.c", line 674 loopva=0xffffffc001000000'

The space allocated by bootpage_alloc() is only used as a physical page
for pagetable pages, so there is no need to map it with KVA.
And kernend_extra should not have consumed any KVA space.
2020-01-21 11:11:00 +00:00
martin eb0953832d Regen (for ticket #616) 2020-01-21 10:40:52 +00:00
martin 64d998e3b5 Pull up following revision(s) (requested by mrg in ticket #616):
sys/dev/ic/anx_dp.c: revision 1.2
	sys/arch/evbarm/conf/GENERIC64: revision 1.126
	sys/dev/ic/anx_dp.h: revision 1.1
	sys/arch/evbarm/conf/GENERIC64: revision 1.128
	sys/dev/ic/anx_dp.h: revision 1.2
	sys/dev/fdt/dwcmmc_fdt.c: revision 1.9
	sys/dev/i2c/cwfg.c: revision 1.1
	sys/conf/files: revision 1.1247
	sys/dev/fdt/pwm_backlight.c: revision 1.5
	sys/dev/fdt/pwm_backlight.c: revision 1.6
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.14
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.15
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.16
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.17
	sys/dev/ic/dwc_mmc.c: revision 1.20
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.18
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.19
	sys/dev/usb/usbdevs: revision 1.775
	sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.4
	sys/dev/fdt/simple_amplifier.c: revision 1.1
	sys/dev/i2c/files.i2c: revision 1.105
	sys/arch/evbarm/conf/GENERIC64: revision 1.117
	sys/arch/evbarm/conf/GENERIC64: revision 1.118
	sys/dev/i2c/files.i2c: revision 1.107
	sys/dev/fdt/files.fdt: revision 1.49
	sys/arch/arm/rockchip/rk_anxdp.c: revision 1.1
	sys/dev/ic/dwc_mmc_var.h: revision 1.9
	sys/dev/i2c/rkpmic.c: revision 1.4
	sys/arch/arm/rockchip/rk_anxdp.c: revision 1.2
	sys/dev/i2c/rkpmic.c: revision 1.5
	sys/dev/i2c/rkpmic.c: revision 1.6
	sys/arch/arm/rockchip/rk_vop.c: revision 1.4
	sys/arch/arm/rockchip/rk_vop.c: revision 1.5
	sys/dev/i2c/rkpmic.c: revision 1.8
	sys/arch/arm/dts/rk3399-pinebook-pro.dts: revision 1.1
	sys/dev/usb/ums.c: revision 1.96 (via patch)
	sys/arch/arm/rockchip/rk_pwm.c: revision 1.3
	sys/arch/arm/dts/rk3399-pinebook-pro.dts: revision 1.2
	sys/dev/i2c/es8316ac.c: revision 1.1
	sys/dev/fdt/dwcmmc_fdt.c: revision 1.10
	sys/dev/i2c/es8316ac.c: revision 1.2
	sys/dev/fdt/fdt_panel.c: revision 1.1
	sys/dev/ic/dwc_mmc.c: revision 1.18
	sys/dev/fdt/fdt_panel.c: revision 1.2
	sys/dev/ic/dwc_mmc.c: revision 1.19
	sys/arch/arm/dts/rk3399-rockpro64.dts: revision 1.10
	sys/dev/fdt/fdt_port.c: revision 1.5
	sys/dev/ic/dwc_mmc_var.h: revision 1.10
	sys/dev/fdt/fdt_port.c: revision 1.6
	sys/arch/evbarm/conf/GENERIC64: revision 1.122
	sys/dev/ic/dwc_mmc_var.h: revision 1.11
	sys/dev/fdt/files.fdt: revision 1.50
	sys/arch/evbarm/conf/GENERIC64: revision 1.123
	sys/arch/arm/rockchip/rk_i2s.c: revision 1.2
	sys/arch/arm/rockchip/files.rockchip: revision 1.23
	sys/arch/evbarm/conf/GENERIC64: revision 1.124
	sys/dev/ic/anx_dp.c: revision 1.1

rkpmic: add RTC support; register w/ todr(9)
rkpmic: correct delay
Add support for SDIO interrupts.
fix copy/paste error in mux_pll_src_cpll_gpll_ppll_parents[]
add RK3399 eDP clocks
add RK3399 DisplayPort clocks
style fix/KNF
rk3399_cru: implement dclk_vop0_frac and dclk_vop1_frac
Move drm_encoder from rkvop(4) to the SoC-layer output pipe drivers (rk_dwhdmi).
rkvop: set stride using virtual framebuffer width instead of display mode
rk3399_cru: Reparent dclk_vop[01] to gpll via dclk_vop[01]_frac.
The previous source of dclk_vop[01] was vpll via dclk_vop[01]_div.
vpll is apparently used directly as a pixel clock source for the
HDMI PHY, and we don't want the other VOP's dclk changing out from
under it because we can't handle finding a replacement clock source
with the right rate yet.
gpll happens to run at 594MHz, which works well as a basis for pixel
clocks.
Linux suggests that the source clock of the fractional divider needs
to be more than twenty times greater than the resulting clock (or some
intermediate clock?) for output stability.  This may not be the case
with 594MHz and the common pixel clocks I see used by displays in my
area of the wild, but it works for now.
add Analogix DisplayPort core driver
add Rockchip (RK3399) glue for Analogix DisplayPort core
add anxdp(4)
Add another panel@fdt driver, this time for DRM-style panels.
To do: migrate away from other panel driver.
enable panel at fdt drivers
paper over the rkpwm get_conf function that otherwise doesn't seem to
let things work
add template bits for optional eDP panel on RockPro64
Abort panel driver attach if required regulator is missing.
Add clk provider
Add Pinebook Pro dts, from Manjaro Linux.
877ca0e728/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts
+ rk3399-pinebook-pro.dts
Attach mmcpwrseq resource earlier
dwcmmc improvements:
 - Use mmcpwrseq resources if available
 - Only set 4- or 8-bit mode if specified in the dt properties
 - Add quirk for implementations with inverted power enable logic
 - Support switching signal voltage between 1.8V and 3.3V
 - Fix a clock divider issue on Rockchip SoCs
Fix performance regression with previous
Quiet chatty printfs
No need to print all supported levels at attach, print the range and total number of steps
Disable SPI for now (rkspi driver hangs at boot)
Add driver for simple-audio-amplifier binding
Add driver for Everest Semi ES8316 Low Power Audio CODEC
add es8316, simpleamp
Avoid sleeping while the audio intr lock is held.
If the rockchip,system-power-controller property is present, try to power off with the PMIC
Add HAILUCK keyboard (product 1e)
Add a quirk for the HAILUCK USB keyboard / touchpad device with product 1e.
The keyboard does not function properly unless the touchpad's intr endpoint
is active.
Add driver for CellWise CW2015 Fuel Gauge IC.
add cwfg
Emit PMFE_DISPLAY_{ON,OFF} events in response to DPMS requests.
If the backlight node does not have an enable gpio, set the lowest duty
cycle to turn the display off instead.
Attach psci as early as possible. This allows other power controllers to
register their own poweroff / reset callbacks with a higher preference.
Add 2000 MHz to available armclkb rates
Remove debug printfs
2020-01-21 10:39:58 +00:00
snj fca2615e99 614 2020-01-09 17:18:43 +00:00
snj 370ed7bcdb Pull up following revision(s) (requested by martin in ticket #614):
sys/arch/aarch64/aarch64/cpu.c: 1.32
	sys/arch/arm/arm32/cpu.c: 1.138
	sys/dev/fdt/fdtbus.c: 1.31

When attaching the first fdtbus, use the root "comptabile" (or failing that:
"model") property to set the cpu model (in userland aka sysctl hw.model).
When attaching the first cpu, do not overwrite a cpu model if it already
had been set.
2020-01-09 17:16:47 +00:00
martin bdff8d76f3 Ticket #613 2020-01-09 11:17:46 +00:00
martin 41021cccc9 Pull up following revision(s) (requested by mrg in ticket #613):
sys/arch/arm/rockchip/rk_vop.c: revision 1.6

in rk_vop_dpms() set or unset the VOP_STANDBY_EN bit in VOP_SYS_CTRL
depending on the dpms mode requested.

this makes pinebook pro display actually turn off when dpms asks.
2020-01-09 11:16:53 +00:00
martin e0f854f2ae Ticket #610 2020-01-08 11:52:24 +00:00