Coldfire generic GPIO (m68knommu)
RFC 14/14 Coldfire generic GPIO (m68knommu)
hooks for implementing pinmux...
Signed-off-by Steven King <[email protected]>
arch/m68k/include/asm/pinmux.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* Coldfire generic GPIO pinmux support. +* +* (C) Copyright 2009, Steven King <[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; version 2 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +*/ + +#ifndef pinmux_h +#define pinmux_h + +#define MCFPINMUX_NONE -1 + +extern int mcf_pinmux_request (unsigned ,unsigned ); +extern void mcf_pinmux_release (unsigned ,unsigned ); + +static inline int mcf_pinmux_is_valid (unsigned pinmux) +{ +return pinmux !=MCFPINMUX_NONE ; +} + +#endif +
(quoted diff) +0 -0
b/arch/m68knommu/platform/coldfire/pinmux.c
new file mode 100644
index 0000000..8c62b82
arch/m68knommu/platform/coldfire/pinmux.c new file +28 -0
@@ -0,0 +1,28 @@ +/* +* Coldfire generic GPIO pinmux support. +* +* (C) Copyright 2009, Steven King <[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; version 2 of the License. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +*/ + +#include <linux/kernel.h> + +#include <asm/pinmux.h> + +int mcf_pinmux_request (unsigned pinmux,unsigned func) +{ +return 0 ; +} + +void mcf_pinmux_release (unsigned pinmux,unsigned func) +{ +}