From: plagnioj@jcrosoft.com (Jean-Christophe PLAGNIOL-VILLARD)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 6/6] ARM: bcm476x: Instantiate console UART
Date: Sun, 7 Oct 2012 22:03:00 +0200 [thread overview]
Message-ID: <20121007200300.GH12801@game.jcrosoft.org> (raw)
In-Reply-To: <20121007015407.840781689@gmail.com>
On 03:53 Sun 07 Oct , Domenico Andreoli wrote:
> From: Domenico Andreoli <domenico.andreoli@linux.com>
>
> The BCM476x sports standard PL011 UARTs which are fully described and
> put to use with these few changes.
>
> Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com>
> ---
> arch/arm/Kconfig.debug | 16 ++++++++++++++++
> arch/arm/boot/dts/bcm476x.dtsi | 23 ++++++++++++++++++++++-
> 2 files changed, 38 insertions(+), 1 deletion(-)
>
> Index: b/arch/arm/boot/dts/bcm476x.dtsi
> ===================================================================
> --- a/arch/arm/boot/dts/bcm476x.dtsi
> +++ b/arch/arm/boot/dts/bcm476x.dtsi
> @@ -5,7 +5,7 @@
> model = "Broadcom BCM476x";
>
> chosen {
> - bootargs = "earlyprintk";
> + bootargs = "console=ttyAMA1";
> };
>
> amba {
> @@ -41,5 +41,26 @@
> interrupt-controller;
> #interrupt-cells = <1>;
> };
> +
> + uart0 at c0000 {
> + compatible = "brcm,bcm476x-pl011", "arm,pl011", "arm,primecell";
why brcm specific compatible did broadcom customised the IP?
> + reg = <0xc0000 0x1000>;
> + interrupt-parent = <&vic0>;
> + interrupts = <14>;
> + };
> +
> + uart1 at c1000 {
> + compatible = "brcm,bcm476x-pl011", "arm,pl011", "arm,primecell";
> + reg = <0xc1000 0x1000>;
> + interrupt-parent = <&vic0>;
> + interrupts = <15>;
> + };
> +
> + uart2 at b2000 {
> + compatible = "brcm,bcm476x-pl011", "arm,pl011", "arm,primecell";
> + reg = <0xb2000 0x1000>;
> + interrupt-parent = <&vic0>;
> + interrupts = <16>;
> + };
> };
> };
> Index: b/arch/arm/Kconfig.debug
> ===================================================================
> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
this should come with the debug patch
> @@ -89,6 +89,18 @@ choice
> bool "Kernel low-level debugging on 9263 and 9g45"
> depends on HAVE_AT91_DBGU1
>
> + config DEBUG_BCM476X_UART0
> + depends on ARCH_BCM476X
> + bool "Kernel low-level debugging on BCM476x UART 0"
> +
> + config DEBUG_BCM476X_UART1
> + depends on ARCH_BCM476X
> + bool "Kernel low-level debugging on BCM476x UART 1"
> +
> + config DEBUG_BCM476X_UART2
> + depends on ARCH_BCM476X
> + bool "Kernel low-level debugging on BCM476x UART 2"
> +
> config DEBUG_CLPS711X_UART1
> bool "Kernel low-level debugging messages via UART1"
> depends on ARCH_CLPS711X
> @@ -404,6 +416,8 @@ endchoice
>
> config DEBUG_LL_INCLUDE
> string
> + default "debug/bcm476x.S" if DEBUG_BCM476X_UART0 || \
> + DEBUG_BCM476X_UART1 || DEBUG_BCM476X_UART2
> default "debug/icedcc.S" if DEBUG_ICEDCC
> default "debug/highbank.S" if DEBUG_HIGHBANK_UART
> default "debug/mvebu.S" if DEBUG_MVEBU_UART
> @@ -416,6 +430,8 @@ config DEBUG_LL_INCLUDE
>
> config UNCOMPRESS_INCLUDE
> string
> + default "debug/bcm476x-uncompress.h" if DEBUG_BCM476X_UART0 || \
> + DEBUG_BCM476X_UART1 || DEBUG_BCM476X_UART2
> default "debug/icedcc-uncompress.h" if DEBUG_ICEDCC
> default "debug/mvebu-uncompress.h" if DEBUG_MVEBU_UART
> default "debug/tegra-uncompress.h" if DEBUG_TEGRA_UART
Best Regards,
J.
>
> _______________________________________________
> devicetree-discuss mailing list
> devicetree-discuss at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/devicetree-discuss
next prev parent reply other threads:[~2012-10-07 20:03 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-07 1:53 [PATCH 0/6] ARM: Add support for Broadcom BCM476x SoCs Domenico Andreoli
2012-10-07 1:53 ` [PATCH 1/6] ARM: bcm476x: Add infrastructure Domenico Andreoli
2012-10-07 19:57 ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-07 22:54 ` Domenico Andreoli
2012-10-08 13:13 ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-09 2:37 ` Stephen Warren
2012-10-09 11:50 ` Domenico Andreoli
2012-10-08 11:50 ` Florian Fainelli
2012-10-09 2:41 ` Stephen Warren
2012-10-08 12:14 ` Thomas Petazzoni
2012-10-09 11:52 ` Domenico Andreoli
2012-10-09 2:48 ` Stephen Warren
2012-10-09 11:54 ` Domenico Andreoli
2012-10-09 3:08 ` Stephen Warren
2012-10-09 11:55 ` Domenico Andreoli
2012-10-09 9:18 ` Arnd Bergmann
2012-10-09 22:58 ` Domenico Andreoli
2012-10-10 6:29 ` Arnd Bergmann
2012-10-12 7:06 ` Domenico Andreoli
2012-10-12 7:26 ` Thomas Petazzoni
2012-10-12 8:03 ` Arnd Bergmann
2012-10-12 8:12 ` Thomas Petazzoni
2012-10-12 10:48 ` Arnd Bergmann
2012-10-12 11:01 ` Thomas Petazzoni
2012-10-12 11:17 ` Arnd Bergmann
2012-10-07 1:53 ` [PATCH 2/6] ARM: bcm476x: Add system timer Domenico Andreoli
2012-10-08 11:50 ` Florian Fainelli
2012-10-09 2:43 ` Stephen Warren
2012-10-09 23:04 ` Domenico Andreoli
2012-10-07 1:53 ` [PATCH 3/6] ARM: bcm476x: Add sched clock Domenico Andreoli
2012-10-09 2:54 ` Stephen Warren
2012-10-07 1:53 ` [PATCH 4/6] ARM: bcm476x: Add stub clock driver Domenico Andreoli
2012-10-09 3:00 ` Stephen Warren
2012-10-12 14:52 ` Mike Turquette
2012-10-12 15:28 ` Domenico Andreoli
2012-10-07 1:53 ` [PATCH 5/6] ARM: bcm476x: Add restart hook Domenico Andreoli
2012-10-07 1:53 ` [PATCH 6/6] ARM: bcm476x: Instantiate console UART Domenico Andreoli
2012-10-07 20:03 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2012-10-07 23:14 ` Domenico Andreoli
2012-10-09 3:06 ` Stephen Warren
2012-10-09 23:37 ` Domenico Andreoli
2012-10-07 5:22 ` [PATCH 0/6] ARM: Add support for Broadcom BCM476x SoCs Stephen Warren
2012-10-07 10:14 ` Domenico Andreoli
2012-10-09 2:44 ` Stephen Warren
2012-10-09 23:57 ` Domenico Andreoli
2012-10-07 19:47 ` Olof Johansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121007200300.GH12801@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).