/** @file\r
*\r
* Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.\r
-* Copyright (c) 2011, ARM Limited. All rights reserved.\r
-* \r
-* This program and the accompanying materials \r
-* are licensed and made available under the terms and conditions of the BSD License \r
-* which accompanies this distribution. The full text of the license may be found at \r
-* http://opensource.org/licenses/bsd-license.php \r
+* Copyright (c) 2011 - 2014, ARM Limited. All rights reserved.\r
*\r
-* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+* This program and the accompanying materials\r
+* are licensed and made available under the terms and conditions of the BSD License\r
+* which accompanies this distribution. The full text of the license may be found at\r
+* http://opensource.org/licenses/bsd-license.php\r
+*\r
+* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
*\r
**/\r
\r
\r
MMCHS_DEVICE_PATH gMMCDevicePath = {\r
{\r
- HARDWARE_DEVICE_PATH,\r
- HW_VENDOR_DP,\r
- (UINT8)(sizeof(VENDOR_DEVICE_PATH)),\r
- (UINT8)((sizeof(VENDOR_DEVICE_PATH)) >> 8),\r
- 0xb615f1f5, 0x5088, 0x43cd, 0x80, 0x9c, 0xa1, 0x6e, 0x52, 0x48, 0x7d, 0x00 \r
+ {\r
+ HARDWARE_DEVICE_PATH,\r
+ HW_VENDOR_DP,\r
+ { (UINT8)(sizeof(VENDOR_DEVICE_PATH)), (UINT8)((sizeof(VENDOR_DEVICE_PATH)) >> 8) },\r
+ },\r
+ { 0xb615f1f5, 0x5088, 0x43cd, { 0x80, 0x9c, 0xa1, 0x6e, 0x52, 0x48, 0x7d, 0x00 } }\r
},\r
{\r
END_DEVICE_PATH_TYPE,\r
END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
- sizeof (EFI_DEVICE_PATH_PROTOCOL),\r
- 0\r
+ { sizeof (EFI_DEVICE_PATH_PROTOCOL), 0 }\r
}\r
};\r
\r
MmioAnd32 (MMCHS_SYSCTL, ~CEN);\r
\r
// Set new clock frequency.\r
- MmioAndThenOr32 (MMCHS_SYSCTL, ~CLKD_MASK, NewCLKD << 6); \r
+ MmioAndThenOr32 (MMCHS_SYSCTL, ~CLKD_MASK, NewCLKD << 6);\r
\r
// Poll till Internal Clock Stable\r
while ((MmioRead32 (MMCHS_SYSCTL) & ICS_MASK) != ICS);\r
Data = VSEL_3_00V;\r
Status = gTPS65950->Write (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, VMMC1_DEDICATED_REG), 1, &Data);\r
ASSERT_EFI_ERROR(Status);\r
- \r
+\r
// After ramping up voltage, set VDDS stable bit to indicate that voltage level is stable.\r
MmioOr32 (CONTROL_PBIAS_LITE, (PBIASLITEVMODE0 | PBIASLITEPWRDNZ0 | PBIASSPEEDCTRL0 | PBIASLITEVMODE1 | PBIASLITEWRDNZ1));\r
\r
)\r
{\r
/* Note:\r
- * On our BeagleBoard the SD card WP pin is always read as TRUE. \r
+ * On our BeagleBoard the SD card WP pin is always read as TRUE.\r
* Probably something wrong with GPIO configuration.\r
* BeagleBoard-xM uses microSD cards so there is no write protect at all.\r
- * Hence commenting out SD card WP pin read status. \r
+ * Hence commenting out SD card WP pin read status.\r
*/\r
//return (MmioRead32 (GPIO1_BASE + GPIO_DATAIN) & BIT23) == BIT23;\r
return 0;\r
ASSERT_EFI_ERROR(Status);\r
\r
Status = gBS->InstallMultipleProtocolInterfaces (\r
- &Handle, \r
+ &Handle,\r
&gEfiMmcHostProtocolGuid, &gMMCHost,\r
NULL\r
);\r