blob: 6f3e686a1c6f3e3ebf9a8ca6d84852f5013e620d [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002 *
David Brazdil0f672f62019-12-10 10:32:29 +00003 * Arch specific extensions to struct device
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
5#ifndef __ASM_SH_DEVICE_H
6#define __ASM_SH_DEVICE_H
7
8#include <asm-generic/device.h>
9
10struct platform_device;
11/* allocate contiguous memory chunk and fill in struct resource */
12int platform_resource_setup_memory(struct platform_device *pdev,
13 char *name, unsigned long memsize);
14
15void plat_early_device_setup(void);
16
17#endif /* __ASM_SH_DEVICE_H */