From patchwork Thu Oct 1 20:36:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= X-Patchwork-Id: 525296 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 95F1E140D69 for ; Fri, 2 Oct 2015 06:38:57 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=oHyFjwMm; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 502B828BD70; Thu, 1 Oct 2015 22:35:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id AA90728BBE4 for ; Thu, 1 Oct 2015 22:35:03 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 1 Oct 2015 22:35:03 +0200 (CEST) Received: by wicfx3 with SMTP id fx3so7346104wic.1 for ; Thu, 01 Oct 2015 13:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=N/azFxD9TGC2Hb9Ml0jlZCCuR9psnL1SspE1gsWjM8w=; b=oHyFjwMmEEb0/9nYjl0dE42DKsazIR2Wt+8TsstxQidS/IOV/I1tsuzk6PC2QVgxUH TCOmhmk14FN3IKmgi12TLR+M1LKufMeG6WACTBAmQp16hTGspndyc+RL49GIMoPgXVpo C8KSBmDPmKJxOcrGGdO1Xfx/kirD0jA8KVnpoNUXVtq8yMq9fKSgdUM3Mp8z5v/HJyXI TRMR0OrdBGXkQFFzw5+mK2tYp7PByUh/otjFyBRlGJ/D1gYIC6+SKw2S0IhBq/m2QPmK FRLjHzXnfBTBRbtwIuOgFc/rbeyZs/a4T/PZz6ucithRpCATe/XbMr3NZ5Ms3k/b3j2v h0JA== X-Received: by 10.180.91.194 with SMTP id cg2mr743041wib.72.1443731785817; Thu, 01 Oct 2015 13:36:25 -0700 (PDT) Received: from skynet.lan (199.Red-83-53-107.dynamicIP.rima-tde.net. [83.53.107.199]) by smtp.gmail.com with ESMTPSA id xt1sm7866081wjb.32.2015.10.01.13.36.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Oct 2015 13:36:25 -0700 (PDT) From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= To: openwrt-devel@lists.openwrt.org, blogic@openwrt.org Date: Thu, 1 Oct 2015 22:36:19 +0200 Message-Id: <1443731780-13238-3-git-send-email-noltari@gmail.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Subject: [OpenWrt-Devel] [PATCH 3/4] brcm2708: add support for device tree overlays X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Álvaro Fernández Rojas --- target/linux/brcm2708/image/Makefile | 7 +++++++ target/linux/brcm2708/image/config.txt | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile index 7a68c50..3744cac 100644 --- a/target/linux/brcm2708/image/Makefile +++ b/target/linux/brcm2708/image/Makefile @@ -21,6 +21,12 @@ else endef endif +define Image/Prepare + rm -rf $(KDIR)/overlays + mkdir -p $(KDIR)/overlays + $(CP) $(DTS_DIR)/overlays/*.dtb $(KDIR)/overlays/ +endef + ### Image scripts ### define Build/gen-cfg cat config.txt > $@.config @@ -41,6 +47,7 @@ define Build/boot-img mcopy -i $@.boot $@.config ::config.txt mcopy -i $@.boot $(word 1,$^) ::kernel.img mcopy -i $@.boot $(DTS_DIR)/$(DEVICE_DTS).dtb ::$(DEVICE_DTS).dtb + mcopy -s -i $@.boot $(KDIR)/overlays :: endef define Build/sdcard-img diff --git a/target/linux/brcm2708/image/config.txt b/target/linux/brcm2708/image/config.txt index f66f6bc..1fb880f 100644 --- a/target/linux/brcm2708/image/config.txt +++ b/target/linux/brcm2708/image/config.txt @@ -927,3 +927,12 @@ init_uart_clock=3000000 ################################################################################ dtparam=random=on,watchdog=on,audio=on,i2c0=on,i2c1=on,spi=on + +#dtoverlay=hifiberry-amp-overlay +#dtoverlay=hifiberry-dac-overlay +#dtoverlay=hifiberry-dacplus-overlay +#dtoverlay=hifiberry-digi-overlay +#dtoverlay=iqaudio-dac-overlay +#dtoverlay=iqaudio-dacplus-overlay +#dtoverlay=raspidac3-overlay +#dtoverlay=rpi-proto-overlay