| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * intel-mid.h: Intel MID specific setup code |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * (C) Copyright 2009 Intel Corporation |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or |
|---|
| 7 | | - * modify it under the terms of the GNU General Public License |
|---|
| 8 | | - * as published by the Free Software Foundation; version 2 |
|---|
| 9 | | - * of the License. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | #ifndef _ASM_X86_INTEL_MID_H |
|---|
| 12 | 8 | #define _ASM_X86_INTEL_MID_H |
|---|
| .. | .. |
|---|
| 47 | 43 | |
|---|
| 48 | 44 | #define sfi_device(i) \ |
|---|
| 49 | 45 | static const struct devs_id *const __intel_mid_sfi_##i##_dev __used \ |
|---|
| 50 | | - __attribute__((__section__(".x86_intel_mid_dev.init"))) = &i |
|---|
| 46 | + __section(".x86_intel_mid_dev.init") = &i |
|---|
| 51 | 47 | |
|---|
| 52 | 48 | /** |
|---|
| 53 | 49 | * struct mid_sd_board_info - template for SD device creation |
|---|
| .. | .. |
|---|
| 92 | 88 | return (intel_mid_identify_cpu() == INTEL_MID_CPU_CHIP_PENWELL); |
|---|
| 93 | 89 | } |
|---|
| 94 | 90 | |
|---|
| 91 | +extern void intel_scu_devices_create(void); |
|---|
| 92 | +extern void intel_scu_devices_destroy(void); |
|---|
| 93 | + |
|---|
| 95 | 94 | #else /* !CONFIG_X86_INTEL_MID */ |
|---|
| 96 | 95 | |
|---|
| 97 | 96 | #define intel_mid_identify_cpu() 0 |
|---|
| 98 | 97 | #define intel_mid_has_msic() 0 |
|---|
| 98 | + |
|---|
| 99 | +static inline void intel_scu_devices_create(void) { } |
|---|
| 100 | +static inline void intel_scu_devices_destroy(void) { } |
|---|
| 99 | 101 | |
|---|
| 100 | 102 | #endif /* !CONFIG_X86_INTEL_MID */ |
|---|
| 101 | 103 | |
|---|
| .. | .. |
|---|
| 118 | 120 | |
|---|
| 119 | 121 | #define SFI_MTMR_MAX_NUM 8 |
|---|
| 120 | 122 | #define SFI_MRTC_MAX 8 |
|---|
| 121 | | - |
|---|
| 122 | | -extern void intel_scu_devices_create(void); |
|---|
| 123 | | -extern void intel_scu_devices_destroy(void); |
|---|
| 124 | 123 | |
|---|
| 125 | 124 | /* VRTC timer */ |
|---|
| 126 | 125 | #define MRST_VRTC_MAP_SZ 1024 |
|---|