From patchwork Sat Dec 2 02:34:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 10088427 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 84E1F6037E for ; Sat, 2 Dec 2017 02:38:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7382C28A98 for ; Sat, 2 Dec 2017 02:38:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 681FF29DE5; Sat, 2 Dec 2017 02:38:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6782828A98 for ; Sat, 2 Dec 2017 02:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=1Gp9A8H8M0tBcphXOlExzepoXO3SSgwLLIzyFIxk/80=; b=lq4hSdzx7CtBBlh3zUi4XeKBtO THb91Al7EMmFMKBhd3aQA/XpCxmL/g3K1UKGMsWy11RpQ2rFEGSjN8hFn07WKJvEdwWvNDTYI7cDS 5fGH4ZGI8f06iMXsTGdT0fX9084oi0HimqTrKRlGmHQmgpsWyk6xeVJdeklye2fzDNWFCVPvkI5pW vRSRYNRnP1QYMCUsYZztfr7Yq3dqklIbt0i9LYRnIvFzaN8xqB5pNDbipoxPK/MUiD4Lpm+DFBhte QDSe5IOzoO3kym+Z08sSc2r/5JrejtMxK8UbrQaMspvBo2SE1zYmMdOMUtEsFZxzwrIEEoyW9ZSrQ MWpem2dg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eKxgs-0004rl-Ey; Sat, 02 Dec 2017 02:38:06 +0000 Received: from vern.gendns.com ([206.190.152.46]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eKxfa-0003Bz-V5 for linux-arm-kernel@lists.infradead.org; Sat, 02 Dec 2017 02:36:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lP+LjtxjPJ0+esFY1eVkY+ND1d85LLErcYWbLfLou/0=; b=Gai/yeWLzN+xnHRXOiRSi0Y/F iFX6VcL2uXqIiA3QTsdJL+o8HB1kWS099LnRN9VbfKzAqvQsqis9L7aTtqbZR9pPuRUp31Kbyhh7Y fSBeufxiTL3SjmD6Kp87EzZ0N55Di1sMM3/2dDRgrmobNm/wuB7z0eciLavcOkXzmQKlnZchUOs7x rCFyB7Yfkd4RCwVY/iGeK3MPVygMOtlngmxwC1LPU0Pe9JQQOuh50tnVzCiSW5P4XP63mL2jf/Vko CtjTYXcYK2pTySrzmxrMN92tBVvdLkDJXuHeWx2IjdLMgb3xo0mE5mDbxSGtIPLzEoUvYpKJ7oCrV a0p8Hs1NA==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:46626 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89) (envelope-from ) id 1eKxco-000na0-6G; Fri, 01 Dec 2017 21:33:54 -0500 From: David Lechner To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 1/6] ARM: davinci: clean up map_io functions Date: Fri, 1 Dec 2017 20:34:09 -0600 Message-Id: <1512182054-17410-2-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512182054-17410-1-git-send-email-david@lechnology.com> References: <1512182054-17410-1-git-send-email-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171201_183647_152945_6665D23F X-CRM114-Status: GOOD ( 11.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Sekhar Nori , David Lechner , Kevin Hilman MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This cleans up the map_io functions in the board init files for mach-davinci. Most of the boards had a wrapper function around _init(). This wrapper is removed and the function is used directly. Additionally, the _init() functions are renamed to _map_io() to match the field name. Signed-off-by: David Lechner --- arch/arm/mach-davinci/board-da830-evm.c | 7 +------ arch/arm/mach-davinci/board-da850-evm.c | 7 +------ arch/arm/mach-davinci/board-dm355-evm.c | 7 +------ arch/arm/mach-davinci/board-dm355-leopard.c | 7 +------ arch/arm/mach-davinci/board-dm365-evm.c | 7 +------ arch/arm/mach-davinci/board-dm644x-evm.c | 8 +------- arch/arm/mach-davinci/board-dm646x-evm.c | 14 ++------------ arch/arm/mach-davinci/board-mityomapl138.c | 7 +------ arch/arm/mach-davinci/board-neuros-osd2.c | 7 +------ arch/arm/mach-davinci/board-omapl138-hawk.c | 7 +------ arch/arm/mach-davinci/board-sffsdr.c | 7 +------ arch/arm/mach-davinci/da830.c | 2 +- arch/arm/mach-davinci/da850.c | 2 +- arch/arm/mach-davinci/da8xx-dt.c | 2 +- arch/arm/mach-davinci/davinci.h | 8 ++++---- arch/arm/mach-davinci/dm355.c | 2 +- arch/arm/mach-davinci/dm365.c | 2 +- arch/arm/mach-davinci/dm644x.c | 2 +- arch/arm/mach-davinci/dm646x.c | 8 +++++++- arch/arm/mach-davinci/include/mach/da8xx.h | 4 ++-- 20 files changed, 31 insertions(+), 86 deletions(-) diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index f673cd7..db656d4 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c @@ -629,14 +629,9 @@ static int __init da830_evm_console_init(void) console_initcall(da830_evm_console_init); #endif -static void __init da830_evm_map_io(void) -{ - da830_init(); -} - MACHINE_START(DAVINCI_DA830_EVM, "DaVinci DA830/OMAP-L137/AM17x EVM") .atag_offset = 0x100, - .map_io = da830_evm_map_io, + .map_io = da830_map_io, .init_irq = cp_intc_init, .init_time = davinci_timer_init, .init_machine = da830_evm_init, diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index cbde003..7333ade 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -1472,14 +1472,9 @@ static int __init da850_evm_console_init(void) console_initcall(da850_evm_console_init); #endif -static void __init da850_evm_map_io(void) -{ - da850_init(); -} - MACHINE_START(DAVINCI_DA850_EVM, "DaVinci DA850/OMAP-L138/AM18x EVM") .atag_offset = 0x100, - .map_io = da850_evm_map_io, + .map_io = da850_map_io, .init_irq = cp_intc_init, .init_time = davinci_timer_init, .init_machine = da850_evm_init, diff --git a/arch/arm/mach-davinci/board-dm355-evm.c b/arch/arm/mach-davinci/board-dm355-evm.c index 62e7bc3..da462e7 100644 --- a/arch/arm/mach-davinci/board-dm355-evm.c +++ b/arch/arm/mach-davinci/board-dm355-evm.c @@ -314,11 +314,6 @@ static struct platform_device *davinci_evm_devices[] __initdata = { &davinci_nand_device, }; -static void __init dm355_evm_map_io(void) -{ - dm355_init(); -} - static int dm355evm_mmc_get_cd(int module) { if (!gpio_is_valid(dm355evm_mmc_gpios)) @@ -414,7 +409,7 @@ static __init void dm355_evm_init(void) MACHINE_START(DAVINCI_DM355_EVM, "DaVinci DM355 EVM") .atag_offset = 0x100, - .map_io = dm355_evm_map_io, + .map_io = dm355_map_io, .init_irq = davinci_irq_init, .init_time = davinci_timer_init, .init_machine = dm355_evm_init, diff --git a/arch/arm/mach-davinci/board-dm355-leopard.c b/arch/arm/mach-davinci/board-dm355-leopard.c index be99724..21fd713 100644 --- a/arch/arm/mach-davinci/board-dm355-leopard.c +++ b/arch/arm/mach-davinci/board-dm355-leopard.c @@ -174,11 +174,6 @@ static struct platform_device *davinci_leopard_devices[] __initdata = { &davinci_nand_device, }; -static void __init dm355_leopard_map_io(void) -{ - dm355_init(); -} - static int dm355leopard_mmc_get_cd(int module) { if (!gpio_is_valid(leopard_mmc_gpio)) @@ -269,7 +264,7 @@ static __init void dm355_leopard_init(void) MACHINE_START(DM355_LEOPARD, "DaVinci DM355 leopard") .atag_offset = 0x100, - .map_io = dm355_leopard_map_io, + .map_io = dm355_map_io, .init_irq = davinci_irq_init, .init_time = davinci_timer_init, .init_machine = dm355_leopard_init, diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c index e75741f..4ec759b 100644 --- a/arch/arm/mach-davinci/board-dm365-evm.c +++ b/arch/arm/mach-davinci/board-dm365-evm.c @@ -714,11 +714,6 @@ static void __init evm_init_cpld(void) /* REVISIT export switches: NTSC/PAL (SW5.6), EXTRA1 (SW5.2), etc */ } -static void __init dm365_evm_map_io(void) -{ - dm365_init(); -} - static struct spi_eeprom at25640 = { .byte_len = SZ_64K / 8, .name = "at25640", @@ -772,7 +767,7 @@ static __init void dm365_evm_init(void) MACHINE_START(DAVINCI_DM365_EVM, "DaVinci DM365 EVM") .atag_offset = 0x100, - .map_io = dm365_evm_map_io, + .map_io = dm365_map_io, .init_irq = davinci_irq_init, .init_time = davinci_timer_init, .init_machine = dm365_evm_init, diff --git a/arch/arm/mach-davinci/board-dm644x-evm.c b/arch/arm/mach-davinci/board-dm644x-evm.c index b07c9b1..8f6e9ea 100644 --- a/arch/arm/mach-davinci/board-dm644x-evm.c +++ b/arch/arm/mach-davinci/board-dm644x-evm.c @@ -725,12 +725,6 @@ static struct platform_device *davinci_evm_devices[] __initdata = { &rtc_dev, }; -static void __init -davinci_evm_map_io(void) -{ - dm644x_init(); -} - static int davinci_phy_fixup(struct phy_device *phydev) { unsigned int control; @@ -815,7 +809,7 @@ static __init void davinci_evm_init(void) MACHINE_START(DAVINCI_EVM, "DaVinci DM644x EVM") /* Maintainer: MontaVista Software */ .atag_offset = 0x100, - .map_io = davinci_evm_map_io, + .map_io = dm644x_map_io, .init_irq = davinci_irq_init, .init_time = davinci_timer_init, .init_machine = davinci_evm_init, diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c index cb0a41e..f0e2762 100644 --- a/arch/arm/mach-davinci/board-dm646x-evm.c +++ b/arch/arm/mach-davinci/board-dm646x-evm.c @@ -716,16 +716,6 @@ static void __init evm_init_i2c(void) } #endif -#define DM6467T_EVM_REF_FREQ 33000000 - -static void __init davinci_map_io(void) -{ - dm646x_init(); - - if (machine_is_davinci_dm6467tevm()) - davinci_set_refclk_rate(DM6467T_EVM_REF_FREQ); -} - #define DM646X_EVM_PHY_ID "davinci_mdio-0:01" /* * The following EDMA channels/slots are not being used by drivers (for @@ -795,7 +785,7 @@ static __init void evm_init(void) MACHINE_START(DAVINCI_DM6467_EVM, "DaVinci DM646x EVM") .atag_offset = 0x100, - .map_io = davinci_map_io, + .map_io = dm646x_map_io, .init_irq = davinci_irq_init, .init_time = davinci_timer_init, .init_machine = evm_init, @@ -806,7 +796,7 @@ MACHINE_END MACHINE_START(DAVINCI_DM6467TEVM, "DaVinci DM6467T EVM") .atag_offset = 0x100, - .map_io = davinci_map_io, + .map_io = dm646x_map_io, .init_irq = davinci_irq_init, .init_time = davinci_timer_init, .init_machine = evm_init, diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c index b73ce7b..9ea2628 100644 --- a/arch/arm/mach-davinci/board-mityomapl138.c +++ b/arch/arm/mach-davinci/board-mityomapl138.c @@ -561,14 +561,9 @@ static int __init mityomapl138_console_init(void) console_initcall(mityomapl138_console_init); #endif -static void __init mityomapl138_map_io(void) -{ - da850_init(); -} - MACHINE_START(MITYOMAPL138, "MityDSP-L138/MityARM-1808") .atag_offset = 0x100, - .map_io = mityomapl138_map_io, + .map_io = da850_map_io, .init_irq = cp_intc_init, .init_time = davinci_timer_init, .init_machine = mityomapl138_init, diff --git a/arch/arm/mach-davinci/board-neuros-osd2.c b/arch/arm/mach-davinci/board-neuros-osd2.c index 0c02aaa..6f4e7dc 100644 --- a/arch/arm/mach-davinci/board-neuros-osd2.c +++ b/arch/arm/mach-davinci/board-neuros-osd2.c @@ -154,11 +154,6 @@ static struct platform_device *davinci_ntosd2_devices[] __initdata = { &ntosd2_leds_dev, }; -static void __init davinci_ntosd2_map_io(void) -{ - dm644x_init(); -} - static struct davinci_mmc_config davinci_ntosd2_mmc_config = { .wires = 4, }; @@ -225,7 +220,7 @@ static __init void davinci_ntosd2_init(void) MACHINE_START(NEUROS_OSD2, "Neuros OSD2") /* Maintainer: Neuros Technologies */ .atag_offset = 0x100, - .map_io = davinci_ntosd2_map_io, + .map_io = dm644x_map_io, .init_irq = davinci_irq_init, .init_time = davinci_timer_init, .init_machine = davinci_ntosd2_init, diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c index a3e7807..0fdb7b7 100644 --- a/arch/arm/mach-davinci/board-omapl138-hawk.c +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c @@ -325,14 +325,9 @@ static int __init omapl138_hawk_console_init(void) console_initcall(omapl138_hawk_console_init); #endif -static void __init omapl138_hawk_map_io(void) -{ - da850_init(); -} - MACHINE_START(OMAPL138_HAWKBOARD, "AM18x/OMAP-L138 Hawkboard") .atag_offset = 0x100, - .map_io = omapl138_hawk_map_io, + .map_io = da850_map_io, .init_irq = cp_intc_init, .init_time = davinci_timer_init, .init_machine = omapl138_hawk_init, diff --git a/arch/arm/mach-davinci/board-sffsdr.c b/arch/arm/mach-davinci/board-sffsdr.c index d85accf..3c1059a 100644 --- a/arch/arm/mach-davinci/board-sffsdr.c +++ b/arch/arm/mach-davinci/board-sffsdr.c @@ -125,11 +125,6 @@ static struct platform_device *davinci_sffsdr_devices[] __initdata = { &davinci_sffsdr_nandflash_device, }; -static void __init davinci_sffsdr_map_io(void) -{ - dm644x_init(); -} - static __init void davinci_sffsdr_init(void) { struct davinci_soc_info *soc_info = &davinci_soc_info; @@ -148,7 +143,7 @@ static __init void davinci_sffsdr_init(void) MACHINE_START(SFFSDR, "Lyrtech SFFSDR") .atag_offset = 0x100, - .map_io = davinci_sffsdr_map_io, + .map_io = dm644x_map_io, .init_irq = davinci_irq_init, .init_time = davinci_timer_init, .init_machine = davinci_sffsdr_init, diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c index bd88470..2e249f0 100644 --- a/arch/arm/mach-davinci/da830.c +++ b/arch/arm/mach-davinci/da830.c @@ -1214,7 +1214,7 @@ static struct davinci_soc_info davinci_soc_info_da830 = { .emac_pdata = &da8xx_emac_pdata, }; -void __init da830_init(void) +void __init da830_map_io(void) { davinci_common_init(&davinci_soc_info_da830); diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 07d6f0e..056b148 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -1369,7 +1369,7 @@ static struct davinci_soc_info davinci_soc_info_da850 = { .sram_len = SZ_128K, }; -void __init da850_init(void) +void __init da850_map_io(void) { unsigned int v; diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index f06db67..92c7c34 100644 --- a/arch/arm/mach-davinci/da8xx-dt.c +++ b/arch/arm/mach-davinci/da8xx-dt.c @@ -95,7 +95,7 @@ static const char *const da850_boards_compat[] __initconst = { }; DT_MACHINE_START(DA850_DT, "Generic DA850/OMAP-L138/AM18x") - .map_io = da850_init, + .map_io = da850_map_io, .init_time = davinci_timer_init, .init_machine = da850_init_machine, .dt_compat = da850_boards_compat, diff --git a/arch/arm/mach-davinci/davinci.h b/arch/arm/mach-davinci/davinci.h index c62b90c..d550717 100644 --- a/arch/arm/mach-davinci/davinci.h +++ b/arch/arm/mach-davinci/davinci.h @@ -82,7 +82,7 @@ int davinci_gpio_register(struct resource *res, int size, void *pdata); int davinci_init_wdt(void); /* DM355 function declarations */ -void dm355_init(void); +void dm355_map_io(void); void dm355_init_spi0(unsigned chipselect_mask, const struct spi_board_info *info, unsigned len); void dm355_init_asp1(u32 evt_enable); @@ -90,7 +90,7 @@ int dm355_init_video(struct vpfe_config *, struct vpbe_config *); int dm355_gpio_register(void); /* DM365 function declarations */ -void dm365_init(void); +void dm365_map_io(void); void dm365_init_asp(void); void dm365_init_vc(void); void dm365_init_ks(struct davinci_ks_platform_data *pdata); @@ -101,13 +101,13 @@ int dm365_init_video(struct vpfe_config *, struct vpbe_config *); int dm365_gpio_register(void); /* DM644x function declarations */ -void dm644x_init(void); +void dm644x_map_io(void); void dm644x_init_asp(void); int dm644x_init_video(struct vpfe_config *, struct vpbe_config *); int dm644x_gpio_register(void); /* DM646x function declarations */ -void dm646x_init(void); +void dm646x_map_io(void); void dm646x_init_mcasp0(struct snd_platform_data *pdata); void dm646x_init_mcasp1(struct snd_platform_data *pdata); int dm646x_init_edma(struct edma_rsv_info *rsv); diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c index bd50367..88c3c80 100644 --- a/arch/arm/mach-davinci/dm355.c +++ b/arch/arm/mach-davinci/dm355.c @@ -1039,7 +1039,7 @@ void __init dm355_init_asp1(u32 evt_enable) platform_device_register(&dm355_asp1_device); } -void __init dm355_init(void) +void __init dm355_map_io(void) { davinci_common_init(&davinci_soc_info_dm355); davinci_map_sysmod(); diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index 8be04ec..f979180 100644 --- a/arch/arm/mach-davinci/dm365.c +++ b/arch/arm/mach-davinci/dm365.c @@ -1162,7 +1162,7 @@ void __init dm365_init_rtc(void) platform_device_register(&dm365_rtc_device); } -void __init dm365_init(void) +void __init dm365_map_io(void) { davinci_common_init(&davinci_soc_info_dm365); davinci_map_sysmod(); diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index b437c37..80048c0 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c @@ -927,7 +927,7 @@ void __init dm644x_init_asp(void) platform_device_register(&dm644x_asp_device); } -void __init dm644x_init(void) +void __init dm644x_map_io(void) { davinci_common_init(&davinci_soc_info_dm644x); davinci_map_sysmod(); diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index da21353..b3be5c8 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c @@ -17,6 +17,7 @@ #include #include +#include #include #include @@ -952,11 +953,16 @@ int __init dm646x_init_edma(struct edma_rsv_info *rsv) return IS_ERR(edma_pdev) ? PTR_ERR(edma_pdev) : 0; } -void __init dm646x_init(void) +#define DM6467T_EVM_REF_FREQ 33000000 + +void __init dm646x_map_io(void) { davinci_common_init(&davinci_soc_info_dm646x); davinci_map_sysmod(); davinci_clk_init(davinci_soc_info_dm646x.cpu_clks); + + if (machine_is_davinci_dm6467tevm()) + davinci_set_refclk_rate(DM6467T_EVM_REF_FREQ); } static int __init dm646x_init_devices(void) diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h index 93ff156..c760c1b 100644 --- a/arch/arm/mach-davinci/include/mach/da8xx.h +++ b/arch/arm/mach-davinci/include/mach/da8xx.h @@ -86,8 +86,8 @@ extern unsigned int da850_max_speed; #define DA8XX_SHARED_RAM_BASE 0x80000000 #define DA8XX_ARM_RAM_BASE 0xffff0000 -void da830_init(void); -void da850_init(void); +void da830_map_io(void); +void da850_map_io(void); int da830_register_edma(struct edma_rsv_info *rsv); int da850_register_edma(struct edma_rsv_info *rsv[2]);