Skip to content

Commit

Permalink
Merge pull request #83 from 96boards/revert-62-revert-61-rtc
Browse files Browse the repository at this point in the history
Revert "Revert "Rtc""
  • Loading branch information
ldts committed Jun 2, 2015
2 parents f3aa113 + e2a0a18 commit 6089e5b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm64/boot/dts/hi6220.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@
status = "disabled";
};

rtc0: rtc@170000 {
compatible = "arm,pl031", "arm,primecell";
reg = <0x0 0xf8003000 0x0 0x1000>;
interrupts = <0 12 4>;
clocks = <&clock_ao HI6220_RTC0_PCLK>;
clock-names = "apb_pclk";
};

dma0: dma@f7370000 {
compatible = "hisilicon,k3-dma-1.0";
reg = <0x0 0xf7370000 0x0 0x1000>;
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/configs/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ CONFIG_LEDS_TRIGGER_CPU=y
CONFIG_SWITCH=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_DRV_EFI=y
CONFIG_RTC_DRV_PL031=y
CONFIG_RTC_DRV_XGENE=y
CONFIG_DMADEVICES=y
CONFIG_HISI300_EDMAC=y
Expand Down
2 changes: 2 additions & 0 deletions drivers/clk/hisilicon/clk-hi6220.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ static struct hisi_gate_clock hi6220_separated_gate_clks_ao[] __initdata = {
{ HI6220_TIMER7_PCLK, "timer7_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 22, 0, },
{ HI6220_TIMER8_PCLK, "timer8_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 23, 0, },
{ HI6220_UART0_PCLK, "uart0_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 24, 0, },
{ HI6220_RTC0_PCLK, "rtc0_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 25, 0, },
{ HI6220_RTC1_PCLK, "rtc1_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 26, 0, },
};

static struct hisi_clock_data *clk_data_ao;
Expand Down
2 changes: 2 additions & 0 deletions include/dt-bindings/clock/hi6220-clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
#define HI6220_TIMER7_PCLK 38
#define HI6220_TIMER8_PCLK 39
#define HI6220_UART0_PCLK 40
#define HI6220_RTC0_PCLK 41
#define HI6220_RTC1_PCLK 42

#define HI6220_AO_NR_CLKS 48

Expand Down

0 comments on commit 6089e5b

Please sign in to comment.