pmc: Move rail power function to its own object

This commit is contained in:
CTCaer
2020-07-18 00:42:53 +03:00
parent 88fa4fa861
commit 45ca2938f5
5 changed files with 65 additions and 41 deletions

View File

@@ -1,6 +1,7 @@
/*
* Copyright (c) 2018 naehrwert
* Copyright (c) 2018 st4rk
* Copyright (c) 2018-2020 CTCaer
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
@@ -18,6 +19,8 @@
#ifndef _PMC_H_
#define _PMC_H_
#include <utils/types.h>
/*! PMC registers. */
#define APBDEV_PMC_CNTRL 0x0
#define PMC_CNTRL_MAIN_RST (1 << 4)
@@ -84,4 +87,6 @@
#define APBDEV_PMC_SCRATCH190 0x818
#define APBDEV_PMC_SCRATCH200 0x840
int pmc_enable_partition(u32 part, int enable);
#endif