mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
mips: bmips: add bcm6345-clk driver support for BCM6358
This driver can control up to 32 clocks. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
5357eb95c0
commit
70789bd2a5
2 changed files with 31 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <dt-bindings/clock/bcm6358-clock.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include "skeleton.dtsi"
|
||||
|
||||
|
@ -43,6 +44,12 @@
|
|||
clock-frequency = <50000000>;
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
||||
periph_clk: periph-clk {
|
||||
compatible = "brcm,bcm6345-clk";
|
||||
reg = <0xfffe0004 0x4>;
|
||||
#clock-cells = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
pflash: nor@1e000000 {
|
||||
|
|
24
include/dt-bindings/clock/bcm6358-clock.h
Normal file
24
include/dt-bindings/clock/bcm6358-clock.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
|
||||
*
|
||||
* Derived from linux/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef __DT_BINDINGS_CLOCK_BCM6358_H
|
||||
#define __DT_BINDINGS_CLOCK_BCM6358_H
|
||||
|
||||
#define BCM6358_CLK_ENET 4
|
||||
#define BCM6358_CLK_ADSL 5
|
||||
#define BCM6358_CLK_PCM 8
|
||||
#define BCM6358_CLK_SPI 9
|
||||
#define BCM6358_CLK_USBS 10
|
||||
#define BCM6358_CLK_SAR 11
|
||||
#define BCM6358_CLK_EMUSB 17
|
||||
#define BCM6358_CLK_ENET0 18
|
||||
#define BCM6358_CLK_ENET1 19
|
||||
#define BCM6358_CLK_USBSU 20
|
||||
#define BCM6358_CLK_EPHY 21
|
||||
|
||||
#endif /* __DT_BINDINGS_CLOCK_BCM6358_H */
|
Loading…
Reference in a new issue