1/*- 2 * Copyright (c) 2013 Ganbold Tsagaankhuu <ganbold@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * $FreeBSD: releng/11.0/sys/arm/rockchip/rk30xx_pmu.h 263711 2014-03-25 08:31:47Z ganbold $ 27 */ 28 29#ifndef _RK30_PMU_H_ 30#define _RK30_PMU_H_ 31 32#define RK30_PMU_BASE 0xF0004000 33 34#define PMU_WAKEUP_CFG0 0x00 35#define PMU_WAKEUP_CFG1 0x04 36#define PMU_PWRDN_CON 0x08 37#define PMU_PWRDN_ST 0x0c 38#define PMU_INT_CON 0x10 39#define PMU_INT_ST 0x14 40#define PMU_MISC_CON 0x18 41#define PMU_OSC_CNT 0x1c 42#define PMU_PLL_CNT 0x20 43#define PMU_PMU_CNT 0x24 44#define PMU_DDRIO_PWRON_CNT 0x28 45#define PMU_WAKEUP_RST_CLR_CNT 0x2c 46#define PMU_SCU_PWRDWN_CNT 0x30 47#define PMU_SCU_PWRUP_CNT 0x34 48#define PMU_MISC_CON1 0x38 49#define PMU_GPIO0_CON 0x3c 50#define PMU_SYS_REG0 0x40 51#define PMU_SYS_REG1 0x44 52#define PMU_SYS_REG2 0x48 53#define PMU_SYS_REG3 0x4c 54#define PMU_STOP_INT_DLY 0x60 55#define PMU_GPIO0A_PULL 0x64 56#define PMU_GPIO0B_PULL 0x68 57 58void rk30_pmu_gpio_pud(uint32_t pin, uint32_t state); 59 60#endif /* _RK30_PMU_H_ */ 61