ARM: s3c24xx: move s3cmci pinctrl handling into board files
Rather than call the internal s3c_gpio_cfgall_range() function through a platform header, move the code into the set_power callback that is already exported by the board, and add a default implementation. In DT mode, the code already does not set the pin config, so nothing changes there. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Link: https://lore.kernel.org/r/20200806182059.2431-29-krzk@kernel.org [krzk: Rebase and correct set_power in mach-h1940.c] Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
This commit is contained in:

committed by
Krzysztof Kozlowski

parent
673085f450
commit
f67f6c00c7
@@ -35,6 +35,7 @@ struct s3c24xx_mci_pdata {
|
||||
unsigned long ocr_avail;
|
||||
void (*set_power)(unsigned char power_mode,
|
||||
unsigned short vdd);
|
||||
struct gpio_desc *bus[6];
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -44,6 +45,7 @@ struct s3c24xx_mci_pdata {
|
||||
* Copy the platform data supplied by @pdata so that this can be marked
|
||||
* __initdata.
|
||||
*/
|
||||
extern void s3c24xx_mci_def_set_power(unsigned char power_mode, unsigned short vdd);
|
||||
extern void s3c24xx_mci_set_platdata(struct s3c24xx_mci_pdata *pdata);
|
||||
|
||||
#endif /* _ARCH_NCI_H */
|
||||
|
Reference in New Issue
Block a user