From c0270eedf1bf1e7bcbe33f6ccde4ebf2a9f1178e Mon Sep 17 00:00:00 2001 From: Gokul Sriram Palanisamy Date: Fri, 9 Mar 2018 17:43:53 +0530 Subject: [PATCH] Revert "ipq40xx: Disable audio clock registers in u-boot" This reverts commit 0f64876e84de14e1330ca460687879491a99369c. Change-Id: I7439b0e1b240a5ef885a69539d08dcbaabd9d45c Signed-off-by: Gokul Sriram Palanisamy --- board/qca/arm/common/board_init.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/board/qca/arm/common/board_init.c b/board/qca/arm/common/board_init.c index 8733d47a4a..55fc612f32 100644 --- a/board/qca/arm/common/board_init.c +++ b/board/qca/arm/common/board_init.c @@ -37,15 +37,6 @@ env_t *env_ptr; char *env_name_spec; int (*saveenv)(void); -#define ADSS_AUDIO_RXM_CBCR_REG 0x0770012C -#define ADSS_AUDIO_RXB_CBCR_REG 0x0770010C -#define ADSS_AUDIO_TXB_CBCR_REG 0x0770014C -#define ADSS_AUDIO_SPDIF_CBCR_REG 0x07700154 -#define ADSS_AUDIO_SPDIF_DIV2_CBCR_REG 0x0770015C -#define ADSS_AUDIO_TXM_CBCR_REG 0x0770016C -#define ADSS_AUDIO_PCM_CBCR_REG 0x077001AC -#define ADSS_AUDIO_SPDIF_IN_FAST_CBCR_REG 0x077001EC - loff_t board_env_offset; loff_t board_env_range; loff_t board_env_size; @@ -66,25 +57,6 @@ void board_pci_deinit(void) return 0; } -/* - * The audio block is out of reset by default due to which the - * audio clock blocks are also turned on. When audio TLMM is - * enabled in kernel, the clocks will also be available at the - * pins which causes pop noise during kernel bootup. - * To avoid this, the clocks are turned off in u-boot. - */ -static void disable_audio_clks(void) -{ - writel(0, ADSS_AUDIO_RXM_CBCR_REG); - writel(0, ADSS_AUDIO_RXB_CBCR_REG); - writel(0, ADSS_AUDIO_TXB_CBCR_REG); - writel(0, ADSS_AUDIO_SPDIF_CBCR_REG); - writel(0, ADSS_AUDIO_SPDIF_DIV2_CBCR_REG); - writel(0, ADSS_AUDIO_TXM_CBCR_REG); - writel(0, ADSS_AUDIO_PCM_CBCR_REG); - writel(0, ADSS_AUDIO_SPDIF_IN_FAST_CBCR_REG); -} - int board_init(void) { int ret; @@ -200,7 +172,6 @@ int board_init(void) } aquantia_phy_reset_init(); - disable_audio_clks(); return 0; }