RE: [PATCH 1/5] can: flexcan: add platform data for ColdFire

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Angelo Dureghello <angelo@xxxxxxxxxxxxxxxx>
> Sent: 2021年6月9日 4:46
> To: gerg@xxxxxxxxxxxxxx; wg@xxxxxxxxxxxxxx; mkl@xxxxxxxxxxxxxx
> Cc: geert@xxxxxxxxxxxxxx; linux-m68k@xxxxxxxxxxxxxxx;
> linux-can@xxxxxxxxxxxxxxx; Joakim Zhang <qiangqing.zhang@xxxxxxx>;
> Angelo Dureghello <angelo@xxxxxxxxxxxxxxxx>
> Subject: [PATCH 1/5] can: flexcan: add platform data for ColdFire
> 
> Add platform data object for ColdFire architecture.
> 
> Signed-off-by: Angelo Dureghello <angelo@xxxxxxxxxxxxxxxx>
> ---
>  include/linux/platform_data/flexcan-mcf.h | 27 +++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>  create mode 100644 include/linux/platform_data/flexcan-mcf.h
> 
> diff --git a/include/linux/platform_data/flexcan-mcf.h
> b/include/linux/platform_data/flexcan-mcf.h
> new file mode 100644
> index 000000000000..71fe1a9df084
> --- /dev/null
> +++ b/include/linux/platform_data/flexcan-mcf.h

Should locate CAN header file here? include/linux/can/platform/

Best Regards,
Joakim Zhang
> @@ -0,0 +1,27 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
> +/*
> + * Flexcan options for ColdFire family
> + *
> + * Copyright (C) 2021  Angelo Dureghello <angelo@xxxxxxxxxxxxxxxx>
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License
> + * version 2 as published by the Free Software Foundation.
> + *
> + * 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 _PLAT_FLEXCAN_MCF_H
> +#define _PLAT_FLEXCAN_MCF_H
> +
> +struct mcf_flexcan_platform_data {
> +	int stop_mode;
> +	int clk_src;
> +	int clock_frequency;
> +	bool big_endian;
> +};
> +
> +#endif /* _PLAT_FLEXCAN_MCF_H */
> --
> 2.31.1





[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux