Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
- +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
- @@ -1596,6 +1596,8 @@
- .expected_cpu_id = 0x6358,
- .has_uart0 = 1,
- + .has_uart1 = 1,
- +
- .has_pci = 1,
- .has_ohci0 = 1,
- .has_ehci0 = 1,
- @@ -1625,6 +1627,8 @@
- .expected_cpu_id = 0x6358,
- .has_uart0 = 1,
- + .has_uart1 = 1,
- +
- .has_pci = 1,
- .has_ohci0 = 1,
- .has_ehci0 = 1,
- --- a/arch/mips/bcm63xx/boards/board_common.c
- +++ b/arch/mips/bcm63xx/boards/board_common.c
- @@ -122,9 +122,19 @@
- else if (BCMCPU_IS_6358())
- val |= GPIO_MODE_6358_ENET1_MII_CLK_INV;
- }
- +
- + if (board.has_uart1) {
- + if (BCMCPU_IS_6358())
- + printk("Enabling GPIO29 (TXD) as UART1\n");
- + val |= GPIO_MODE_6358_UART1;
- + bcm_gpio_writel(bcm_gpio_readl(GPIO_CTL_LO_REG)|0x20000000, GPIO_CTL_LO_REG);
- + printk("GPIO_CTL_LO_REG = 0x%x \n", bcm_gpio_readl(GPIO_CTL_LO_REG));
- + }
- bcm_gpio_writel(val, GPIO_MODE_REG);
- +
- +
- #if IS_ENABLED(CONFIG_USB)
- if (BCMCPU_IS_6318() && (board.has_ehci0 || board.has_ohci0)) {
- val = bcm_gpio_readl(GPIO_PINMUX_SEL0_6318);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement