Simon Glass | 4a56f10 | 2015-01-27 22:13:47 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <mmc.h> |
| 9 | #include <pci_ids.h> |
| 10 | #include <asm/post.h> |
| 11 | |
| 12 | static struct pci_device_id mmc_supported[] = { |
| 13 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SDIO }, |
| 14 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SDCARD }, |
| 15 | }; |
| 16 | |
| 17 | int cpu_mmc_init(bd_t *bis) |
| 18 | { |
Simon Glass | 4a56f10 | 2015-01-27 22:13:47 -0700 | [diff] [blame] | 19 | return pci_mmc_init("ValleyView SDHCI", mmc_supported, |
| 20 | ARRAY_SIZE(mmc_supported)); |
| 21 | } |
| 22 | |
| 23 | int arch_cpu_init(void) |
| 24 | { |
| 25 | int ret; |
| 26 | |
| 27 | post_code(POST_CPU_INIT); |
| 28 | #ifdef CONFIG_SYS_X86_TSC_TIMER |
| 29 | timer_set_base(rdtsc()); |
| 30 | #endif |
| 31 | |
| 32 | ret = x86_cpu_init_f(); |
| 33 | if (ret) |
| 34 | return ret; |
| 35 | |
| 36 | return 0; |
| 37 | } |