From patchwork Mon Jul 18 10:34:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9234387 X-Patchwork-Delegate: kvalo@adurom.com 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 743326075D for ; Mon, 18 Jul 2016 10:35:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64311263DC for ; Mon, 18 Jul 2016 10:35:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58C3F26B41; Mon, 18 Jul 2016 10:35:00 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F11C3263DC for ; Mon, 18 Jul 2016 10:34:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752234AbcGRKee (ORCPT ); Mon, 18 Jul 2016 06:34:34 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:33357 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752160AbcGRKed (ORCPT ); Mon, 18 Jul 2016 06:34:33 -0400 Received: by mail-lf0-f65.google.com with SMTP id f93so11040104lfi.0; Mon, 18 Jul 2016 03:34:32 -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-transfer-encoding; bh=Og6ENTRbIqtNlspoOd+caxQHxHo5G+8EDz7VDsHHXss=; b=lwEa5DiD8f0ye22bcrVOlFJ1G/aECzxljyxY8RfIywikHy9iyS0zMAlQ47TipOSlXn tM93PM9xMynI7S6MDOCt2aV/2mW1SF3o65MtJa/FwC3F83tz4Z1gXcjwOuK3SMgeUZ4G ajIQ4wVZYzAk1fln6RaLqhVvpJL+6Dk4iXKGUDBcLmP3Fg/B4inezvArNlx6K95osvWA KpmCoeLd13Nf3iRAGFi+NO6wA5TMguQQRuefzQ+zgebM+pYEWQOvvHo8iRNS5PQ/s6xB Mg7DYWS30czrvcL5e4a7VxFJ+LIsJYpsITizPHef8ePXe4jJBhSL4n/eIhXtm/nRgBwl SegQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Og6ENTRbIqtNlspoOd+caxQHxHo5G+8EDz7VDsHHXss=; b=kjg/qpmDIQYYHOtQAss7ZU8x+uJEHNbxw1W4jiVHRRyuEKfCfGmj1U9eKt6h/Aa2CW tqTmjFKXTuJxYrB+7wrxpPZcgbGkcfma5pcSwHBzZ5ckjyn+gI9tmgqHhsNcko4y/jJ4 GZaxFnvDZWaRGaItYqTmbjaOhL+P3IrsjZM2BMg51HQwL7VciJf8VXVDhtcHfn7HLj1A UVly1FlOKjaq287SntU8aYeU1zAWT8g5ymrwiqdnGsOwK47hbkN4qnu9knNR91BO+obD eHuE+Ssq6vaBlcQxTJPaJNIDSWNmB0jj3H9KNPA086AFgb+aleqWurRhaPBSyYsn9OdS nm6w== X-Gm-Message-State: ALyK8tKGdwGQn/XipapIUTNF/2xBt4N6BC//cbmUbiLy/Ha6rnxTTHoZ2w7SR1etHwxUDQ== X-Received: by 10.25.145.211 with SMTP id t202mr10057053lfd.208.1468838071158; Mon, 18 Jul 2016 03:34:31 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id h68sm2483115ljh.38.2016.07.18.03.34.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2016 03:34:30 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo , linux-wireless@vger.kernel.org Cc: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] bcma: allow enabling serial flash support on non-MIPS SoCs Date: Mon, 18 Jul 2016 12:34:14 +0200 Message-Id: <1468838054-17014-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP So far we had only MIPS devices with serial flash connected to the SoC's ChipCommon. ARM devices got a separated SPI controller and weere using standard SPI drivers. This has changed with the wireless SoC BCM47189B0. It's ARM based but has serial flash attached just like older devices. This allows using existing driver with these devices. Signed-off-by: Rafał Miłecki --- drivers/bcma/Kconfig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/bcma/Kconfig b/drivers/bcma/Kconfig index efdc2ae..b5c48a8 100644 --- a/drivers/bcma/Kconfig +++ b/drivers/bcma/Kconfig @@ -76,9 +76,16 @@ config BCMA_PFLASH default y config BCMA_SFLASH - bool - depends on BCMA_DRIVER_MIPS + bool "ChipCommon-attached serial flash support" + depends on BCMA_HOST_SOC default y + help + Some cheap devices have serial flash connected to the ChipCommon + instead of independent SPI controller. It requires using a separated + driver that implements ChipCommon specific interface communication. + + Enabling this symbol will let bcma recognize serial flash and register + it as platform device. config BCMA_NFLASH bool