blob: f9889ccd9abc3d4f33cedcfdd036f8222758358e [file] [log] [blame]
/*
* Copyright (c) 2010-2012 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* EXYNOS - SATA PHY controller definition
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#define EXYNOS5_SATA_RESET 0x4
#define RESET_CMN_RST_N (1 << 1)
#define LINK_RESET 0xF0000
#define EXYNOS5_SATA_MODE0 0x10
#define EXYNOS5_SATA_CTRL0 0x14
#define CTRL0_P0_PHY_CALIBRATED_SEL (1 << 9)
#define CTRL0_P0_PHY_CALIBRATED (1 << 8)
#define EXYNOS5_SATA_PHSATA_CTRLM 0xE0
#define PHCTRLM_REF_RATE (1 << 1)
#define PHCTRLM_HIGH_SPEED (1 << 0)
#define EXYNOS5_SATA_PHSATA_STATM 0xF0
#define PHSTATM_PLL_LOCKED (1 << 0)
#define SATA_PHY_CON_RESET 0xF003F
#define SATA_PHY_PMU_EN 0x1