mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 18:30:55 +07:00
4df49d9e1f
* Initialise CMT1 timer using DT -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJUUG1xAAoJENfPZGlqN0++kNQP/1pfyx9m1XnBqj5Xt6GldxLp /5nUzU/q/JgSW457NGiigPdYC9z4yELknL00PYbM1pCvJJAtGnpdcnFUku8JPyiE 0YrLCRT/JZk0a1MlDJ3Ve0osaefyEoK0LmFWvnJJgm672gE3/sUlDfg4CmmOJqer 4c0sgz7xS1xU1xuciyvhIaZ7gZ8sz1k5ZXm3em8uwG+uHWE+JQl6BGiup+9XMGaS MYjTpL9Vlgz2LH8VZHrnkTbrfeZwT/ufwf12GkXw3nGEvVcVcU2SHPbiHJckETsz 7w4Jaf5fY/fjHHGbocnbCVH9a4VHqy5pI3pm3Gr8dRqM6s/9oEw50rrXqeFvdjNN 5SQVoRzScghh+t1bESrf3r3h8dSdCwfkwKkn5SsQZLpJfnvxHUXe1yf3Bvwsklv/ 4U3FmisHDurCCHWyGxEdnAhsUOQT+lbpi+tKuaSCVxwfawiAHCK5hAIRVHGNm0Zr hwq28Rrfxd5Nd1z/LREm3ObQCPMyaFm1x3Zd4sGNjoRq6yElf52+O9jW52gAwrqi 9WObGI7fgIZj5/o8ZDxZl02JnKvRTHuOLWNAnJtDnjtktAxNZsZns7IYK4RA/aIv bmDJLUquQWaUkl6gYFXIOUd3nqi4cy54aAsUtwIbjGsVS/bosSb2hqWm6EHnIP/j IrtOo8W2PlC7pPsvJ+jH =Htuq -----END PGP SIGNATURE----- Merge tag 'renesas-r8a73a4-dt-timers-for-v3.19' into dt-for-v3.19.base Renesas ARM Based SoC r8a73a4 DT Timers Updates for v3.19 * Initialise CMT1 timer using DT
61 lines
1.5 KiB
C
61 lines
1.5 KiB
C
/*
|
|
* APE6EVM board support
|
|
*
|
|
* Copyright (C) 2013 Renesas Solutions Corp.
|
|
* Copyright (C) 2013 Magnus Damm
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; version 2 of the License.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#include <linux/gpio.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/of_platform.h>
|
|
#include <linux/pinctrl/machine.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/sh_clk.h>
|
|
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include "common.h"
|
|
#include "r8a73a4.h"
|
|
|
|
static void __init ape6evm_add_standard_devices(void)
|
|
{
|
|
|
|
struct clk *parent;
|
|
struct clk *mp;
|
|
|
|
r8a73a4_clock_init();
|
|
|
|
/* MP clock parent = extal2 */
|
|
parent = clk_get(NULL, "extal2");
|
|
mp = clk_get(NULL, "mp");
|
|
BUG_ON(IS_ERR(parent) || IS_ERR(mp));
|
|
|
|
clk_set_parent(mp, parent);
|
|
clk_put(parent);
|
|
clk_put(mp);
|
|
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
|
}
|
|
|
|
static const char *ape6evm_boards_compat_dt[] __initdata = {
|
|
"renesas,ape6evm-reference",
|
|
NULL,
|
|
};
|
|
|
|
DT_MACHINE_START(APE6EVM_DT, "ape6evm")
|
|
.init_early = shmobile_init_delay,
|
|
.init_machine = ape6evm_add_standard_devices,
|
|
.init_late = shmobile_init_late,
|
|
.dt_compat = ape6evm_boards_compat_dt,
|
|
MACHINE_END
|