svn commit: r301497 - head/sys/dev/etherswitch/mtkswitch

2016-06-06 Thread Stanislav Galabov
Author: sgalabov Date: Mon Jun 6 10:07:57 2016 New Revision: 301497 URL: https://svnweb.freebsd.org/changeset/base/301497 Log: Remove erroneous lock assertions In mediatek etherswitch support, functions mtkswitch_reg_write32_mt7621 and mtkswitch_reg_read32_mt7621 are called without

svn commit: r300657 - head/sys/dev/ral

2016-05-25 Thread Stanislav Galabov
Author: sgalabov Date: Wed May 25 06:29:23 2016 New Revision: 300657 URL: https://svnweb.freebsd.org/changeset/base/300657 Log: Align radiotap structures in ral(4) Currently all radiotap structures in ral(4) are packed, but are not aligned, which causes ral based devices to crash when

svn commit: r300658 - head/sys/gnu/dts/mips

2016-05-25 Thread Stanislav Galabov
Author: sgalabov Date: Wed May 25 06:39:48 2016 New Revision: 300658 URL: https://svnweb.freebsd.org/changeset/base/300658 Log: Bring ralink/mediatek DTS files in sync with LEDE This is the last sync with LEDE Project dts files before 11.0. Obtained from:LEDE Project

svn commit: r300659 - in head/sys/mips: conf mediatek

2016-05-25 Thread Stanislav Galabov
Author: sgalabov Date: Wed May 25 06:47:28 2016 New Revision: 300659 URL: https://svnweb.freebsd.org/changeset/base/300659 Log: Build etherswitch support for appropriate Ralink/Mediatek SoCs Etherswitch support is built by default on all SoCs except RT3662/RT3883 as they have no built-in

svn commit: r296080 - in head/sys/boot: fdt uboot/fdt uboot/lib

2016-02-26 Thread Stanislav Galabov
Author: sgalabov Date: Fri Feb 26 08:16:44 2016 New Revision: 296080 URL: https://svnweb.freebsd.org/changeset/base/296080 Log: So far bsd.stand.mk wasn't included in the following files: sys/boot/fdt/Makefile sys/boot/uboot/fdt/Makefile sys/boot/uboot/lib/Makefile This causes

svn commit: r296079 - in head/sys/boot: ficl mips/beri/loader

2016-02-26 Thread Stanislav Galabov
Author: sgalabov Date: Fri Feb 26 08:06:25 2016 New Revision: 296079 URL: https://svnweb.freebsd.org/changeset/base/296079 Log: Currently BERI's loader is including the 32-bit version of the FICL MIPS sysdep.h (sys/boot/ficl/mips/sysdep.h) instead of the 64-bit version

svn commit: r296182 - in head/sys/boot: common fdt uboot/common uboot/lib

2016-02-28 Thread Stanislav Galabov
Author: sgalabov Date: Mon Feb 29 07:27:49 2016 New Revision: 296182 URL: https://svnweb.freebsd.org/changeset/base/296182 Log: These changes attempt to put things in order before the introduction of MIPS ubldr. The changes are mostly dealing with removing unnecessary casts from the

svn commit: r296183 - in head/sys/boot: . mips mips/uboot

2016-02-28 Thread Stanislav Galabov
Kernel name (possibly absolute path) +kernel="kernel"# /boot sub-directory containing kernel and modules +loader_conf_files="/boot/loader.conf /boot/loader.conf.local" +module_path="/boot/kernel;/boot/modules;/boot/dtb" +nextboot_conf="/boot/nextboot.conf" +nextboot_ena

svn commit: r296186 - head/sys/boot/common

2016-02-29 Thread Stanislav Galabov
Author: sgalabov Date: Mon Feb 29 09:03:07 2016 New Revision: 296186 URL: https://svnweb.freebsd.org/changeset/base/296186 Log: Fix build failure introduced by r296182 Approved by: adrian (mentor) Modified: head/sys/boot/common/dev_net.c Modified: head/sys/boot/common/dev_net.c

svn commit: r296059 - head/share/misc

2016-02-25 Thread Stanislav Galabov
sd.org\n2007/02/15"] +sgalabov [label="Stanislav Galabov\nsgala...@freebsd.org\n2016/02/24"] simon [label="Simon L. Nielsen\nsi...@freebsd.org\n2006/03/07"] sjg [label="Simon J. Gerraty\n...@freebsd.org\n2012/10/23"] skra [label="Svatopluk Kraus\ns...@freebsd.or

svn commit: r296564 - in head/sys/boot/uboot: common lib

2016-03-09 Thread Stanislav Galabov
Author: sgalabov Date: Wed Mar 9 11:45:48 2016 New Revision: 296564 URL: https://svnweb.freebsd.org/changeset/base/296564 Log: Improve U-Boot API detection Until now, ubldr has been trying to locate the U-Boot API using a hint address (U-Boot's current stack pointer), aligning it to

svn commit: r297675 - head/sys/mips/mediatek

2016-04-07 Thread Stanislav Galabov
/mediatek/mtk_gpio_v1.cThu Apr 7 15:11:24 2016 (r297675) @@ -0,0 +1,646 @@ +/*- + * Copyright 2016 Stanislav Galabov + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions

svn commit: r297668 - head/sys/mips/mediatek

2016-04-07 Thread Stanislav Galabov
@@ +/*- + * Copyright (c) 2016 Stanislav Galabov + * Copyright (c) 2015 Alexander Kabaev + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must

svn commit: r297669 - head/sys/mips/mediatek

2016-04-07 Thread Stanislav Galabov
Author: sgalabov Date: Thu Apr 7 11:16:32 2016 New Revision: 297669 URL: https://svnweb.freebsd.org/changeset/base/297669 Log: Initial import of Ralink/Mediatek MIPS SoC support #4 UART drivers. - uart_dev_mtk.[ch] are the old-style Mediatek/Ralink-specific UART driver as also

svn commit: r297670 - head/sys/mips/mediatek

2016-04-07 Thread Stanislav Galabov
00:00:00 1970 (empty, because file is newly added) +++ head/sys/mips/mediatek/mtk_dotg.c Thu Apr 7 11:20:03 2016 (r297670) @@ -0,0 +1,220 @@ +#include +__FBSDID("$FreeBSD$"); + +/*- + * Copyright (c) 2015-2016 Stanislav Galabov. All rights reserved. + * Copyright (c)

svn commit: r297671 - head/sys/mips/mediatek

2016-04-07 Thread Stanislav Galabov
ed: head/sys/mips/mediatek/mtk_spi_v1.h == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/mips/mediatek/mtk_spi_v1.h Thu Apr 7 11:21:42 2016 (r297671) @@ -0,0 +1,71 @@ +/*- + * Co

svn commit: r297646 - head/sys/dev/rt

2016-04-07 Thread Stanislav Galabov
+1,5 @@ /*- - * Copyright (c) 2015, Stanislav Galabov + * Copyright (c) 2015-2016, Stanislav Galabov * Copyright (c) 2014, Aleksandr A. Mityaev * Copyright (c) 2011, Aleksandr Rybalko * based on hard work @@ -54,6 +54,7 @@ __FBSDID("$FreeBSD$"); #include #include #include

Re: svn commit: r297717 - head/sys/mips/mediatek

2016-04-08 Thread Stanislav Galabov
> On Apr 8, 2016, at 19:11, John Baldwin <j...@freebsd.org> wrote: > >> On Friday, April 08, 2016 03:26:49 PM Stanislav Galabov wrote: >> Author: sgalabov >> Date: Fri Apr 8 15:26:49 2016 >> New Revision: 297717 >> URL: https://svnweb.freebsd.org/chang

svn commit: r297720 - head/sys/mips/mips

2016-04-08 Thread Stanislav Galabov
Author: sgalabov Date: Fri Apr 8 15:48:10 2016 New Revision: 297720 URL: https://svnweb.freebsd.org/changeset/base/297720 Log: Fix MIPS INTRNG omissions, add soft/hard interrupts with different names Reviewed by: kan Approved by: adrian (mentor) Differential Revision:

svn commit: r297714 - head/sys/mips/mediatek

2016-04-08 Thread Stanislav Galabov
Author: sgalabov Date: Fri Apr 8 15:13:38 2016 New Revision: 297714 URL: https://svnweb.freebsd.org/changeset/base/297714 Log: Fix wrong memory mapping In mtk_soc.c memory is mapped incorrectly for MT7621. This revision fixes this. Approved by: adrian (mentor) Sponsored by:

svn commit: r297715 - head/sys/mips/mediatek

2016-04-08 Thread Stanislav Galabov
Author: sgalabov Date: Fri Apr 8 15:20:58 2016 New Revision: 297715 URL: https://svnweb.freebsd.org/changeset/base/297715 Log: Disable USB PHY slew rate calibration for Mediatek SoCs for now USB on both MT7621 and MT7688 seems to work much better without doing slew rate calibration.

svn commit: r297718 - head/sys/mips/mediatek

2016-04-08 Thread Stanislav Galabov
Author: sgalabov Date: Fri Apr 8 15:28:12 2016 New Revision: 297718 URL: https://svnweb.freebsd.org/changeset/base/297718 Log: Introduce better locking for mtk_gpio_v[12] drivers Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision:

svn commit: r297716 - head/sys/mips/mediatek

2016-04-08 Thread Stanislav Galabov
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/mips/mediatek/mtk_xhci.c Fri Apr 8 15:22:30 2016 (r297716) @@ -0,0 +1,298 @@ +#include +__FBSDID("$FreeBSD$"); + +/*- + * Copyright (c) 2015

svn commit: r297717 - head/sys/mips/mediatek

2016-04-08 Thread Stanislav Galabov
) @@ -0,0 +1,1489 @@ +/*- + * Copyright (c) 2016 Stanislav Galabov. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright

svn commit: r297849 - head/sys/mips/include

2016-04-12 Thread Stanislav Galabov
Author: sgalabov Date: Tue Apr 12 07:18:48 2016 New Revision: 297849 URL: https://svnweb.freebsd.org/changeset/base/297849 Log: Define PCI_RES_BUS for MIPS. This is done as part of the work on D5908, but as a separate commit. Approved by: adrian (mentor) Sponsored by: Smartcom -

svn commit: r297850 - head/sys/mips/mediatek

2016-04-12 Thread Stanislav Galabov
Author: sgalabov Date: Tue Apr 12 07:21:22 2016 New Revision: 297850 URL: https://svnweb.freebsd.org/changeset/base/297850 Log: Move Mediatek/Ralink PCIe to NEW_PCIB This revision fixes minor issues and moves the Mediatek/Ralink PCIe support to use NEW_PCIB.

svn commit: r297665 - head/sys/mips/mips

2016-04-07 Thread Stanislav Galabov
Author: sgalabov Date: Thu Apr 7 10:48:26 2016 New Revision: 297665 URL: https://svnweb.freebsd.org/changeset/base/297665 Log: Bring MIPS INTRNG support back up again, in line with D5370 Reviewed by: kan Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD

svn commit: r297666 - head/sys/mips/mediatek

2016-04-07 Thread Stanislav Galabov
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/mips/mediatek/fdt_reset.c Thu Apr 7 11:02:49 2016 (r297666) @@ -0,0 +1,125 @@ +/*- + * Copyright (c) 2016 Stanislav Galabov + * Copyright (c) 2014 Ian Lepore <i...@freebsd.

svn commit: r297667 - head/sys/mips/mediatek

2016-04-07 Thread Stanislav Galabov
ck.c Thu Apr 7 11:08:50 2016 (r297667) @@ -0,0 +1,156 @@ +/*- + * Copyright (c) 2016 Stanislav Galabov + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redis

svn commit: r296492 - head/sys/conf

2016-03-08 Thread Stanislav Galabov
Author: sgalabov Date: Tue Mar 8 08:57:53 2016 New Revision: 296492 URL: https://svnweb.freebsd.org/changeset/base/296492 Log: Add MIPS_INTRNG to sys/conf/options.mips This was somehow missed in the commit of https://reviews.freebsd.org/D5182 although it was in the original diff

svn commit: r296378 - head/sys/boot/common

2016-03-03 Thread Stanislav Galabov
Author: sgalabov Date: Fri Mar 4 05:36:53 2016 New Revision: 296378 URL: https://svnweb.freebsd.org/changeset/base/296378 Log: Fix ubldr build failure on mipsn32 and mipsn32el targets. Approved by: adrian (mentor) Modified: head/sys/boot/common/Makefile.inc Modified:

svn commit: r297534 - head/sys/dev/flash

2016-04-04 Thread Stanislav Galabov
Author: sgalabov Date: Mon Apr 4 06:55:48 2016 New Revision: 297534 URL: https://svnweb.freebsd.org/changeset/base/297534 Log: Enable 4-byte address support for the mx25l family of SPI flash devices. Introduce 2 new flags: - FL_ENABLE_4B_ADDR (forces the use of 4-byte addresses) -

svn commit: r298500 - head/sys/boot/fdt/dts/mips

2016-04-22 Thread Stanislav Galabov
Author: sgalabov Date: Sat Apr 23 04:24:30 2016 New Revision: 298500 URL: https://svnweb.freebsd.org/changeset/base/298500 Log: Reduce the FreeBSD specific DTS files for Mediatek/Ralink The introduction of palmbus and previous work allows us to cut the differences between FreeBSD and

svn commit: r298498 - head/sys/mips/mediatek

2016-04-22 Thread Stanislav Galabov
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/mips/mediatek/palmbus.cSat Apr 23 04:21:18 2016 (r298498) @@ -0,0 +1,81 @@ +/*- + * Copyright (c) 2016 Stanislav Galabov. + * All rights reserved. + * + * Redistribution and use in source and binary forms

svn commit: r298499 - head/sys/mips/mediatek

2016-04-22 Thread Stanislav Galabov
Author: sgalabov Date: Sat Apr 23 04:22:38 2016 New Revision: 298499 URL: https://svnweb.freebsd.org/changeset/base/298499 Log: Use cpu_establish_hardintr in mtk_intr_gic This allows us to come closer to OpenWRT vanilla DTS files. Approved by: adrian (mentor) Sponsored by: Smartcom

svn commit: r298497 - head/sys/mips/mediatek

2016-04-22 Thread Stanislav Galabov
Author: sgalabov Date: Sat Apr 23 04:19:42 2016 New Revision: 298497 URL: https://svnweb.freebsd.org/changeset/base/298497 Log: Minor pinctrl fixes for Mediatek/Ralink Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision:

svn commit: r298501 - head/sys/mips/mediatek

2016-04-22 Thread Stanislav Galabov
Author: sgalabov Date: Sat Apr 23 04:27:01 2016 New Revision: 298501 URL: https://svnweb.freebsd.org/changeset/base/298501 Log: Remove uart_dev_mtk_ns8250 The purpose of this file was to simply detect the UART speed before attaching the actual ns8250 driver so that we don't have to

svn commit: r300196 - head/sys/mips/mediatek

2016-05-19 Thread Stanislav Galabov
Author: sgalabov Date: Thu May 19 06:29:43 2016 New Revision: 300196 URL: https://svnweb.freebsd.org/changeset/base/300196 Log: Ralink: Add more SoC compatible strings Add more 'compatible' strings found in various LEDE DTS files. Reviewed by: adrian Approved by: adrian (mentor)

svn commit: r300012 - head/sys/dev/etherswitch/mtkswitch

2016-05-17 Thread Stanislav Galabov
Author: sgalabov Date: Tue May 17 06:30:46 2016 New Revision: 300012 URL: https://svnweb.freebsd.org/changeset/base/300012 Log: Fix issues with mt762x etherswitch driver Fix issues that crept in with initial import. Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD

svn commit: r300013 - in head/sys: boot/fdt/dts/mips gnu/dts/mips

2016-05-17 Thread Stanislav Galabov
Author: sgalabov Date: Tue May 17 06:42:24 2016 New Revision: 300013 URL: https://svnweb.freebsd.org/changeset/base/300013 Log: Import LEDE dts files for Ralink/Mediatek This is an import of the reworked LEDE dts files. Besides other things they make it easier for us to reuse. The

svn commit: r300014 - in head/sys: boot/fdt/dts/mips mips/mediatek

2016-05-17 Thread Stanislav Galabov
Author: sgalabov Date: Tue May 17 06:45:25 2016 New Revision: 300014 URL: https://svnweb.freebsd.org/changeset/base/300014 Log: Add proper PCIe init for MT7628/MT7688 SoCs PCIe PHY needs different initialization on MT7628/MT7688 SoCs than it does on MT7620. However, LEDE (and OpenWRT)

svn commit: r299910 - head/sys/dev/etherswitch/mtkswitch

2016-05-16 Thread Stanislav Galabov
+1,668 @@ +/*- + * Copyright (c) 2016 Stanislav Galabov. + * Copyright (c) 2011-2012 Stefan Bethke. + * Copyright (c) 2012 Adrian Chadd. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following

svn commit: r299155 - head/sys/mips/mediatek

2016-05-05 Thread Stanislav Galabov
Author: sgalabov Date: Fri May 6 05:24:10 2016 New Revision: 299155 URL: https://svnweb.freebsd.org/changeset/base/299155 Log: mtk_spi cleanup commented printfs Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision:

svn commit: r299154 - head/sys/mips/mediatek

2016-05-05 Thread Stanislav Galabov
Author: sgalabov Date: Fri May 6 05:22:25 2016 New Revision: 299154 URL: https://svnweb.freebsd.org/changeset/base/299154 Log: mtk_gpio fixes Allow output pins to be read and input pins to be set. Fix bugs where we were trying to access the gpio softc before doing device_get_softc.

svn commit: r298061 - head/sys/conf

2016-04-15 Thread Stanislav Galabov
Author: sgalabov Date: Fri Apr 15 15:28:23 2016 New Revision: 298061 URL: https://svnweb.freebsd.org/changeset/base/298061 Log: Change the fdt_static_dtb.S dependency fdt_static_dtb.S dependency in sys/conf/files is currently set as: $S/boot/fdt/dts/${MACHINE}/${FDT_DTS_FILE} This

svn commit: r298057 - head/sys/mips/conf

2016-04-15 Thread Stanislav Galabov
Author: sgalabov Date: Fri Apr 15 15:20:41 2016 New Revision: 298057 URL: https://svnweb.freebsd.org/changeset/base/298057 Log: In order to build a kernel with one of these configs the user should do the following: 1. Give the appropriate board dts file to be used by either: 1.1. edit

svn commit: r298059 - in head/sys: dev/rt mips/mediatek

2016-04-15 Thread Stanislav Galabov
Author: sgalabov Date: Fri Apr 15 15:24:42 2016 New Revision: 298059 URL: https://svnweb.freebsd.org/changeset/base/298059 Log: Mediatek/Ralink: Get our drivers closer to OpenWRT dts definitions This revision gets our Mediatek/Ralink drivers closer to OpenWRT's dts definitions, so we can

svn commit: r298060 - head/sys/dev/flash

2016-04-15 Thread Stanislav Galabov
Author: sgalabov Date: Fri Apr 15 15:26:31 2016 New Revision: 298060 URL: https://svnweb.freebsd.org/changeset/base/298060 Log: Make mx25l compatible with jedec,spi-nor as well A lot of dts files define the SPI flashes supported by mx25l as compatible with 'jedec,spi-nor', so we add this

svn commit: r298058 - head/sys/mips/mediatek

2016-04-15 Thread Stanislav Galabov
Author: sgalabov Date: Fri Apr 15 15:22:28 2016 New Revision: 298058 URL: https://svnweb.freebsd.org/changeset/base/298058 Log: Remove unneeded initialization in mtk_xhci.c This is actually initialized properly within xhci.c, so it's better to not initialize it in mtk_xhci.c

svn commit: r298065 - in head/sys: conf mips/include

2016-04-15 Thread Stanislav Galabov
Author: sgalabov Date: Fri Apr 15 15:44:02 2016 New Revision: 298065 URL: https://svnweb.freebsd.org/changeset/base/298065 Log: Make NIRQ configurable for MIPS Submitted by: kan Reviewed by: kan Approved by: adrian (mentor) Differential Revision:

svn commit: r298062 - head/sys/boot/fdt/dts/mips

2016-04-15 Thread Stanislav Galabov
Author: sgalabov Date: Fri Apr 15 15:36:09 2016 New Revision: 298062 URL: https://svnweb.freebsd.org/changeset/base/298062 Log: Import Mediatek/Ralink dtsi patches against OpenWRT dtsi files This revision suggests dtsi patches to be used with the original OpenWRT dtsi files so we can

svn commit: r298127 - head/sys/mips/mediatek

2016-04-16 Thread Stanislav Galabov
Author: sgalabov Date: Sat Apr 16 19:44:41 2016 New Revision: 298127 URL: https://svnweb.freebsd.org/changeset/base/298127 Log: Add support for boot arguments specification via fdt Add suppport for passing boot arguments via FDT for mediatek/ralink SoCs. This was taken from kan's work on

svn commit: r298126 - head/sys/mips/conf

2016-04-16 Thread Stanislav Galabov
Author: sgalabov Date: Sat Apr 16 19:42:54 2016 New Revision: 298126 URL: https://svnweb.freebsd.org/changeset/base/298126 Log: Change MIPS_INTRNG to INTRNG in MEDIATEK_BASE config Revision 298068 changed MIPS_INTRNG and ARM_INTRNG to simply INTRNG. MEDIATEK_BASE config was missed by

svn commit: r298128 - head/sys/gnu/dts/mips

2016-04-16 Thread Stanislav Galabov
Author: sgalabov Date: Sat Apr 16 20:01:08 2016 New Revision: 298128 URL: https://svnweb.freebsd.org/changeset/base/298128 Log: Import Mediatek/Ralink dts files from OpenWRT Import original OpenWRT dts files after executing the following script on them: for f in `ls [mr]t*.dtsi`; do

svn commit: r298345 - head/sys/gnu/dts/mips

2016-04-20 Thread Stanislav Galabov
Author: sgalabov Date: Wed Apr 20 14:29:03 2016 New Revision: 298345 URL: https://svnweb.freebsd.org/changeset/base/298345 Log: Change OpenWRT imported dtsi files Change '#include ' to '/include/ "fbsd-*"' in [rm]t*.dtsi Basically the pre-import work on OpenWRT's dts/dtsi

svn commit: r298347 - head/sys/dev/flash

2016-04-20 Thread Stanislav Galabov
Author: sgalabov Date: Wed Apr 20 14:33:00 2016 New Revision: 298347 URL: https://svnweb.freebsd.org/changeset/base/298347 Log: Modify mx25l FDT compatible device handling If we cannot establish compatibility by only looking at the compat_data we also check the flash_devices structure's

svn commit: r298350 - in head/sys: dev/rt mips/mediatek

2016-04-20 Thread Stanislav Galabov
Author: sgalabov Date: Wed Apr 20 14:47:16 2016 New Revision: 298350 URL: https://svnweb.freebsd.org/changeset/base/298350 Log: Add compat strings used by OpenWRT to some Mediatek/Ralink drivers Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision:

svn commit: r298346 - head/sys/boot/fdt/dts/mips

2016-04-20 Thread Stanislav Galabov
Author: sgalabov Date: Wed Apr 20 14:31:01 2016 New Revision: 298346 URL: https://svnweb.freebsd.org/changeset/base/298346 Log: Include resets and clocks properties for PCI in FreeBSD RT3883 dtsi file This change is required so that RT3662/RT3883 PCI can function correctly Approved

svn commit: r298348 - head/sys/mips/mediatek

2016-04-20 Thread Stanislav Galabov
ctrl.h == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/mips/mediatek/mtk_pinctrl.hWed Apr 20 14:35:00 2016 (r298348) @@ -0,0 +1,354 @@ +/*- + * Copyright (c) 2016 St

svn commit: r298349 - head/sys/mips/mediatek

2016-04-20 Thread Stanislav Galabov
Author: sgalabov Date: Wed Apr 20 14:36:45 2016 New Revision: 298349 URL: https://svnweb.freebsd.org/changeset/base/298349 Log: Rework mtk_gpio_v1 driver This revision makes the mtk_gpio_v1 driver read its register map property from the OpenWRT dts files. Approved by: adrian

svn commit: r298185 - head/sys/mips/mediatek

2016-04-18 Thread Stanislav Galabov
Author: sgalabov Date: Mon Apr 18 06:15:58 2016 New Revision: 298185 URL: https://svnweb.freebsd.org/changeset/base/298185 Log: Allow RT3350 CPU clock to be detected as part of RT3050/RT3052 detection OpenWRT's dts files treat RT3050/RT3052/RT3350 within the same SoC dtsi file, so we

svn commit: r298397 - in head/sys/mips: conf mediatek

2016-04-21 Thread Stanislav Galabov
Author: sgalabov Date: Thu Apr 21 07:40:03 2016 New Revision: 298397 URL: https://svnweb.freebsd.org/changeset/base/298397 Log: Rework Mediatek/Ralink configuration files Only compile what each SoC needs and get rid of MEDIATEK generic config. Approved by: adrian (mentor) Sponsored

svn commit: r313343 - head/sys/arm/arm

2017-02-06 Thread Stanislav Galabov
Author: sgalabov Date: Mon Feb 6 14:58:24 2017 New Revision: 313343 URL: https://svnweb.freebsd.org/changeset/base/313343 Log: sys/arm/arm/identcpu-v4.c: fix identify_arm_cpu() identify_arm_cpu() in sys/arm/arm/identcpu-v4.c incorrectly uses a u_int8_t variable to store the result of

Re: svn commit: r313343 - head/sys/arm/arm

2017-02-08 Thread Stanislav Galabov
rl; >int i; > > Regards, > Ronald. > > > On Mon, 06 Feb 2017 15:58:24 +0100, Stanislav Galabov <sgala...@freebsd.org> > wrote: > >> Author: sgalabov >> Date: Mon Feb 6 14:58:24 2017 >> New Revision: 313343 >> URL: https://svnwe

svn commit: r313988 - head/sys/dev/etherswitch/mtkswitch

2017-02-20 Thread Stanislav Galabov
Author: sgalabov Date: Mon Feb 20 08:10:41 2017 New Revision: 313988 URL: https://svnweb.freebsd.org/changeset/base/313988 Log: etherswitch: Fix RT305x vlan group operation Fix an issue which prevents proper operation (addition/removal of members) of RT305x vlan groups. Tested by:

svn commit: r313465 - head/sys/dev/rt

2017-02-08 Thread Stanislav Galabov
Author: sgalabov Date: Thu Feb 9 07:29:07 2017 New Revision: 313465 URL: https://svnweb.freebsd.org/changeset/base/313465 Log: Set GDMA1 Frames Destination Port to Port 0 (CPU) Some U-Boot versions do not initialize MT7620's Frame Engine. Then it is not possible to receive packets from

svn commit: r305527 - in head/sys/mips: include mips

2016-09-07 Thread Stanislav Galabov
Author: sgalabov Date: Wed Sep 7 09:31:10 2016 New Revision: 305527 URL: https://svnweb.freebsd.org/changeset/base/305527 Log: Fix MIPS INTRNG (both FDT and non-FDT) behaviour broken by r304459 More changes to MIPS may be required, as commented in D7692, but this revision aims to

svn commit: r308406 - head/sys/arm/arm

2016-11-07 Thread Stanislav Galabov
Author: sgalabov Date: Mon Nov 7 10:54:56 2016 New Revision: 308406 URL: https://svnweb.freebsd.org/changeset/base/308406 Log: Only include sys/boot.h if LINUX_BOOT_ABI is defined Only include sys/boot.h if LINUX_BOOT_ABI is defined in sys/arm/arm/machdep.c Not doing this prevents

svn commit: r308415 - head/sys/arm/include

2016-11-07 Thread Stanislav Galabov
Author: sgalabov Date: Mon Nov 7 11:35:14 2016 New Revision: 308415 URL: https://svnweb.freebsd.org/changeset/base/308415 Log: Generate an error if machine/armreg.h is included without sys/cdefs.h machine/armreg.h requires access to the __ARM_ARCH macro, which is not always properly

svn commit: r321776 - head/usr.bin/calendar/calendars

2017-07-31 Thread Stanislav Galabov
@@ 06/06 Alan Eldridge <al...@freebsd.org> died in Denver, Colorado, 2003 06/07 Jimmy Olgeni <olg...@freebsd.org> born in Milano, Italy, 1976 06/07 Benjamin Close <ben...@freebsd.org> born in Adelaide, Australia, 1978 +06/09 Stanislav Galabov <sgala...@freebsd.org> born

svn commit: r340476 - head/sys/mips/mediatek

2018-11-16 Thread Stanislav Galabov
Author: sgalabov Date: Fri Nov 16 11:17:18 2018 New Revision: 340476 URL: https://svnweb.freebsd.org/changeset/base/340476 Log: Implement support for sysctl hw.model for Mediatek/Ralink SoCs These SoCs have CHIPID registers, which store the Chip model, according to the manufacturer; make

svn commit: r340613 - head/sys/mips/mediatek

2018-11-18 Thread Stanislav Galabov
Author: sgalabov Date: Mon Nov 19 06:48:48 2018 New Revision: 340613 URL: https://svnweb.freebsd.org/changeset/base/340613 Log: 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 is better to not try to access it as

svn commit: r358693 - head/sys/dev/rt

2020-03-06 Thread Stanislav Galabov
Author: sgalabov Date: Fri Mar 6 08:50:18 2020 New Revision: 358693 URL: https://svnweb.freebsd.org/changeset/base/358693 Log: Add Gigabit Ethernet support for RT3883 and RT2880 Ralink/Mediatek SoCs Submitted by: yamori...@yahoo.co.jp Reported by: yamori...@yahoo.co.jp Reviewed by: