mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-10-01 00:00:50 +02:00
Create a function to be called very early (before the krait-regulator driver probes) to switch a cpu in BHS mode. Since we have not yet probed yet, use the base address passed in to do the necessary writes. Change-Id: I1cb1659f1e31e52b9d209427887230ee922aef80 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
29 lines
978 B
C
29 lines
978 B
C
/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef __KRAIT_REGULATOR_H__
|
|
#define __KRAIT_REGULATOR_H__
|
|
|
|
#define KRAIT_REGULATOR_DRIVER_NAME "krait-power-regulator"
|
|
|
|
/**
|
|
* krait_power_init - driver initialization function
|
|
*
|
|
* This function registers the krait-power-regulator platform driver. This
|
|
* should be called from appropriate initialization code. Returns 0 on
|
|
* success and error on failure.
|
|
*/
|
|
int __init krait_power_init(void);
|
|
void secondary_cpu_hs_init(void *base_ptr);
|
|
|
|
#endif
|