pinmux: Rename frdm_k64f pinmux driver to k64

The k64 pinmux driver can be used for any k64 board, not just frdm_k64f,
therefore renaming the driver accordingly.

Change-Id: I45e96d4a5ff6aa859d0f57fe098e44a8ae5283d1
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2016-10-09 09:56:23 -05:00 committed by Anas Nashif
commit 342e09c463
9 changed files with 15 additions and 18 deletions

View file

@ -0,0 +1,57 @@
/* pinmux_dev_k64.c - Pinmux dev driver for Freescale K64 */
/*
* Copyright (c) 2016 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <device.h>
#include <init.h>
#include <nanokernel.h>
#include <pinmux.h>
#include <soc.h>
#include <sys_io.h>
#include <pinmux/k64/pinmux.h>
static int fsl_k64_dev_set(struct device *dev, uint32_t pin,
uint32_t func)
{
ARG_UNUSED(dev);
return _fsl_k64_set_pin(pin, func);
}
static int fsl_k64_dev_get(struct device *dev, uint32_t pin,
uint32_t *func)
{
ARG_UNUSED(dev);
return _fsl_k64_get_pin(pin, func);
}
static struct pinmux_driver_api api_funcs = {
.set = fsl_k64_dev_set,
.get = fsl_k64_dev_get
};
int pinmux_fsl_k64_initialize(struct device *port)
{
return 0;
}
/* must be initialized after GPIO */
DEVICE_AND_API_INIT(pmux, CONFIG_PINMUX_DEV_NAME, &pinmux_fsl_k64_initialize,
NULL, NULL,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&api_funcs);