Commit Graph

28 Commits (be2b61e4f1ec1e351733bebb7105629599034639)

Author SHA1 Message Date
Hauke Mehrtens fcbbec8eb2 kernel: Fix kmod-regmap split
Two regmap dependencies were wrong, this patch fixes them.
This was detected by the build bots.

Fixes: fd5c168701 ("kernel: Build: Split kmod-regmap")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 years ago
Hauke Mehrtens fd5c168701 kernel: Build: Split kmod-regmap
This reduces the needed modifications to the mainline Linux kernel and
also makes the regmap package work with an out of tree kernel which
does not have these modifications.

The regmap-core is only added when it is really build as a module.
The regmap-core is normally bool so it cannot be built as a module in an
unmodified kernel. When it is selected by on other kernel module it will
always be selected as build in and it also does not show up in
$(LINUX_DIR)/modules.builtin as it is not supposed to be a kernel module.
When it is not in $(LINUX_DIR)/modules.builtin the build system expects
it to be built as a .ko file.
Just check if the module is really there and only add it in that case.

This splits the regmap package into multiple packages, one for each bus type.
This way only the bus maps which are really needed have to be added.
This also splits the I2C, SPI and MMIO regmap into separate packages to not
require all these subsystems to build them, on an unmodified upstream kernel
this also causes problems in some situations.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
5 years ago
Mathias Kresin dda5d9b786 ramips: rename pwm kernel module
With kernel 4.14 the OpenWrt specific module name collides with the
upstream added module for Mediatek ARM Socs.

During addition of preliminary support for kernel 4.14, the config
symbol used by the out of tree driver was already renamed but the ramips
kernel package wasn't updated.

Fix the build error by updating the config and kernel module name for
the kernel package.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years ago
John Crispin 5117911d91 ramips: fix mt76x8 dependencies
The commit merging mt7628 and mt7688 failed to update some
dependencies.

Signed-off-by: John Crispin <john@phrozen.org>
7 years ago
Mathias Kresin 01819254af ramips: sound-mt7620: fix dependencies for kernel 4.9
With kernel 4.8 common used code was moved to a shared kmod. Add the
missing dependency to the shared snd-soc-simple-card-utils.ko.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years ago
Furong Xu a93a48328d ramips: kmod-sdhci-mt7620: switch dependence to kmod-mmc
mtk-mmc/mtk_sd.ko only depends on mmc_core and mmc_block.
And, we remove kmod-sdhci dependence assignment from all related target devices.

Signed-off-by: Furong Xu <xfr@outlook.com>
7 years ago
John Crispin c067011af8 ramips: add back the i2c-mt7621 module
mt7628/88 are still using this module.

Signed-off-by: John Crispin <john@phrozen.org>
7 years ago
Rosen Penev 80768ddccd ramips: Add I2C driver to the default kernel config
I made a commit that added the RTC driver to the kernel config with
the intent that it would fix hctosys. Unfortunately while the RTC
driver is in there, it's connected through I2C, the driver for which
comes in module form and is thus loaded late. After this commit, it
works fine.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
7 years ago
Sven Schwermer 5511c1c7c1 ramips: Use MT7621 I2C driver for MT7628/MT7688
The i2c-ramips driver does not work for the MT7628/MT7688 SoCs, the
i2c-mt7621 driver does.

Signed-off-by: Sven Schwermer <sven.schwermer@arcor.de>
8 years ago
Michael Lee 9062c4fe99 ramips: modify audio kernel module and add dma options
* add gdma and hsdma kernel modules
* i2s support all ramips targets except rt288x
* i2s need gdma to transfer data
* add simple audio kernel module. it support device tree binding

Signed-off-by: Michael Lee <igvtee@gmail.com>
8 years ago
Jo-Philipp Wich 5550d98015 ramips: fix kmod-sound-mt7620 packaging
Commit 9ff8928bb9 renamed the snd-soc-mt7620-i2s
driver and dropped snd-soc-mt7620-wm8960 which selected CONFIG_SND_SOC_WM8960
breaking all ramips builds due to undefined kernel config symbols.

Rework the kmod-sound-mt7620 package to explicitely select the
CONFIG_SND_SOC_WM8960 symbols and change it to bundle the renamed .ko file.

Also remove the @BROKEN flag and exclude it on the rt288x subtarget instead.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Álvaro Fernández Rojas 29b412b8c5 ramips: add kmod-pwm-mediatek for mt7628/mt7688
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Felix Fietkau 3c3fb1dfc0 ramips: delete the broken sound driver
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48318
8 years ago
Felix Fietkau 63aa7023d8 ramips: mark kmod-sound-mtk as broken, it does not compile properly
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48317
8 years ago
Felix Fietkau fa61e3fbba ramips: fix kernel config handling for mt7620/mt7628 sound module
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48316
8 years ago
John Crispin 7295e9fb8b ramips: add alsa support
add the SDK alsa driver. this has only been tested on mt7628/88 and wm8960.
mt7620 is only compile tested.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47205
9 years ago
John Crispin 37495247d2 ramips: make sd driver depend on mt7688
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46476
9 years ago
John Crispin 8c19f53007 ralink: MT7621 add i2c controller driver
ralink i2c driver is not working on MT7621 platform. Porting a new drivers from MTK's source code.

Signed-off-by: daixj <fl.service@t-firefly.com>

SVN-Revision: 44690
9 years ago
John Crispin 510ff1f1b8 ralink: merge the mt7620a/n subtargets
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43300
10 years ago
John Crispin ce1c580efb ralink: make the sdhci module build again
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43274
10 years ago
John Crispin 4ef1237545 ralink: drop dwc_otg support. dwc2 seems stable
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42617
10 years ago
John Crispin d203784841 ralink: add asoc modules
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39016
11 years ago
John Crispin 176b41d441 ralink: add package for mt7620 sdhci
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38553
11 years ago
John Crispin eb089abd28 ramips: add back dwc_otg driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37566
11 years ago
John Crispin ffe389c4c5 ralink: remove dwc_otg from modules.mk
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37498
11 years ago
John Crispin dd22304691 ramips: make the old dwc driver depend on v3.9
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37357
11 years ago
John Crispin a154693bab ralink: add i2c-ralink kmod info
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37200
11 years ago
Florian Fainelli 1627b2bb4b move rt305x-dwc driver to target specific modules.mk
SVN-Revision: 32864
12 years ago