syscon.h (ac94b7bcbed9a5ee71f6fb9a507c72abf601cb8a) | syscon.h (04ecf36ba60f41f695095226e53310b4acaebf1e) |
---|---|
1/* 2 * Copyright (c) 2015 Google, Inc 3 * Written by Simon Glass <sjg@chromium.org> 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8#ifndef __SYSCON_H --- 9 unchanged lines hidden (view full) --- 18}; 19 20/* So far there are no ops so this is a placeholder */ 21struct syscon_ops { 22}; 23 24#define syscon_get_ops(dev) ((struct syscon_ops *)(dev)->driver->ops) 25 | 1/* 2 * Copyright (c) 2015 Google, Inc 3 * Written by Simon Glass <sjg@chromium.org> 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8#ifndef __SYSCON_H --- 9 unchanged lines hidden (view full) --- 18}; 19 20/* So far there are no ops so this is a placeholder */ 21struct syscon_ops { 22}; 23 24#define syscon_get_ops(dev) ((struct syscon_ops *)(dev)->driver->ops) 25 |
26#if CONFIG_IS_ENABLED(OF_PLATDATA) 27/* 28 * We don't support 64-bit machines. If they are so resource-contrained that 29 * they need to use OF_PLATDATA, something is horribly wrong with the 30 * education of our hardware engineers. 31 */ 32struct syscon_base_platdata { 33 u32 reg[2]; 34}; 35#endif 36 |
|
26/** 27 * syscon_get_regmap() - Get access to a register map 28 * 29 * @dev: Device to check (UCLASS_SCON) 30 * @info: Returns regmap for the device 31 * @return 0 if OK, -ve on error 32 */ 33struct regmap *syscon_get_regmap(struct udevice *dev); --- 37 unchanged lines hidden --- | 37/** 38 * syscon_get_regmap() - Get access to a register map 39 * 40 * @dev: Device to check (UCLASS_SCON) 41 * @info: Returns regmap for the device 42 * @return 0 if OK, -ve on error 43 */ 44struct regmap *syscon_get_regmap(struct udevice *dev); --- 37 unchanged lines hidden --- |