iBoot/target/ipad4b/include/target/gpiodef.h

40 lines
1004 B
C

/*
* Copyright (C) 2012 - 2013 Apple Inc. All rights reserved.
*
* This document is the property of Apple Inc.
* It is considered confidential and proprietary.
*
* This document may not be reproduced or transmitted in any form,
* in whole or in part, without the express written permission of
* Apple Inc.
*/
#ifndef __TARGET_GPIODEF_H
#define __TARGET_GPIODEF_H
/* iPad4,x specific gpio -> pin mappings */
#include <platform/gpio.h>
/* define target-specific gpios in a generic fashion here. */
#define GPIO_LCD_PWR_EN GPIO(14, 6)
#define GPIO_RINGER_AB GPIO(0, 6)
/* Board Revision */
#define GPIO_BOARD_REV0 GPIO(1, 2)
#define GPIO_BOARD_REV1 GPIO(1, 3)
#define GPIO_BOARD_REV2 GPIO(1, 4)
/* which IICs to initialize */
#if SUB_TARGET_J85M || SUB_TARGET_J86M || SUB_TARGET_J87M
#define IICS_MASK (0xF)
#else
#define IICS_MASK (0xD)
#endif
#define TRISTAR_IIC_BUS (0)
/* D2089 watchdog tickle, 'KEEPACT' */
#define GPIO_WDOG_TICKLE GPIO(2, 6)
#endif /* ! __TARGET_GPIODEF_H */