History

Merge tag 'm68knommu-for-v7.3' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu

Pull m68knommu updates from Greg Ungerer: "This includes a couple more new defconfigs to improve test build coverage, changes to use the more correct linux/gpio/legacy.h and platform setup for the reset device of the ColdFire 5441x SoC hardware. - new defconfigs for 2 more ColdFire boards - change to use linux/gpio/legacy.h - add platform setup for reset device of the 5441x SoC boards" * tag 'm68knommu-for-v7.3' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68k: coldfire/5441x: register mcf-rcm-reset platform device m68k/coldfire: replace linux/gpio.h inclusions m68k: defconfig: add config for M5282EVB board m68k: defconfig: add config for M52358EVB board

Linus Torvalds committed 2 months ago

Commit 874b43b2 parents 1b78070 de0dab25 files · +130 −2Browse files

Unified · Split

5 files
  1. arch/m68k/coldfire/device.c +1 −1
  2. arch/m68k/coldfire/m5441x.c +25 −0
  3. arch/m68k/configs/m5235evb_defconfig +52 −0
  4. arch/m68k/configs/m5282evb_defconfig +51 −0
  5. arch/m68k/include/asm/mcfgpio.h +1 −1
arch/m68k/coldfire/device.c+1−1
@@ -12,7 +12,7 @@ · 11 unmodified lines
12#include <linux/init.h>12#include <linux/init.h>
13#include <linux/io.h>13#include <linux/io.h>
14#include <linux/spi/spi.h>14#include <linux/spi/spi.h>
15#include <linux/gpio.h>15#include <linux/gpio/legacy.h>
16#include <linux/fec.h>16#include <linux/fec.h>
17#include <linux/dmaengine.h>17#include <linux/dmaengine.h>
18#include <asm/traps.h>18#include <asm/traps.h>
arch/m68k/coldfire/m5441x.c+25−0
@@ -11,6 +11,7 @@ · 10 unmodified lines
11#include <linux/init.h>11#include <linux/init.h>
12#include <linux/io.h>12#include <linux/io.h>
13#include <linux/clk.h>13#include <linux/clk.h>
14#include <linux/platform_device.h>
14#include <asm/machdep.h>15#include <asm/machdep.h>
15#include <asm/coldfire.h>16#include <asm/coldfire.h>
16#include <asm/mcfsim.h>17#include <asm/mcfsim.h>
@@ -242,6 +243,30 @@ static void __init m5441x_fec_init(void) · 225 unmodified lines
242 mcf_write8(0x03, MCFGPIO_PAR_FEC);243 mcf_write8(0x03, MCFGPIO_PAR_FEC);
243}244}
244 245
246/*
247 * Reset Controller Module status register. Exposed to userspace as
248 * /sys/devices/platform/mcf-rcm-reset/power_on_reason by the mcf-rcm-reset
249 * driver (drivers/power/reset/mcf-rcm-reset.c).
250 */
251static struct resource m5441x_rcm_resource[] = {
252 {
253 .start = MCF_RSR,
254 .end = MCF_RSR,
255 .flags = IORESOURCE_MEM,
256 },
257};
258
259static int __init m5441x_rcm_init(void)
260{
261 struct platform_device *pdev;
262
263 pdev = platform_device_register_simple("mcf-rcm-reset", -1,
264 m5441x_rcm_resource,
265 ARRAY_SIZE(m5441x_rcm_resource));
266 return PTR_ERR_OR_ZERO(pdev);
267}
268arch_initcall(m5441x_rcm_init);
269
245void __init config_BSP(char *commandp, int size)270void __init config_BSP(char *commandp, int size)
246{271{
247 m5441x_clk_init();272 m5441x_clk_init();
arch/m68k/configs/m5235evb_defconfig+52−0
@@ -0,0 +1,52 @@
1CONFIG_LOG_BUF_SHIFT=14
2CONFIG_EXPERT=y
3# CONFIG_FUTEX is not set
4# CONFIG_EPOLL is not set
5# CONFIG_SIGNALFD is not set
6# CONFIG_TIMERFD is not set
7# CONFIG_EVENTFD is not set
8# CONFIG_AIO is not set
9# CONFIG_KALLSYMS is not set
10# CONFIG_MMU is not set
11CONFIG_M523x=y
12CONFIG_M5235EVB=y
13CONFIG_RAMBASE=0x00000000
14CONFIG_RAMSIZE=0x01000000
15CONFIG_VECTORBASE=0x00000000
16CONFIG_IPSBAR=0x40000000
17CONFIG_KERNELBASE=0x00020000
18CONFIG_MODULES=y
19CONFIG_MODULE_UNLOAD=y
20CONFIG_BINFMT_FLAT=y
21# CONFIG_VM_EVENT_COUNTERS is not set
22CONFIG_NET=y
23CONFIG_PACKET=y
24CONFIG_UNIX=y
25CONFIG_INET=y
26# CONFIG_INET_DIAG is not set
27# CONFIG_IPV6 is not set
28# CONFIG_FW_LOADER is not set
29CONFIG_MTD=y
30CONFIG_MTD_BLOCK=y
31CONFIG_MTD_RAM=y
32CONFIG_MTD_UCLINUX=y
33CONFIG_BLK_DEV_RAM=y
34CONFIG_NETDEVICES=y
35CONFIG_FEC=y
36# CONFIG_INPUT is not set
37# CONFIG_SERIO is not set
38# CONFIG_VT is not set
39# CONFIG_UNIX98_PTYS is not set
40CONFIG_SERIAL_MCF=y
41CONFIG_SERIAL_MCF_CONSOLE=y
42# CONFIG_HWMON is not set
43# CONFIG_USB_SUPPORT is not set
44CONFIG_EXT2_FS=y
45# CONFIG_FILE_LOCKING is not set
46# CONFIG_DNOTIFY is not set
47CONFIG_ROMFS_FS=y
48CONFIG_ROMFS_BACKED_BY_MTD=y
49# CONFIG_NETWORK_FILESYSTEMS is not set
50# CONFIG_SLUB_DEBUG is not set
51CONFIG_BOOTPARAM=y
52CONFIG_BOOTPARAM_STRING="root=/dev/mtdblock0"
arch/m68k/configs/m5282evb_defconfig+51−0
@@ -0,0 +1,51 @@
1CONFIG_LOG_BUF_SHIFT=14
2CONFIG_EXPERT=y
3# CONFIG_FUTEX is not set
4# CONFIG_EPOLL is not set
5# CONFIG_SIGNALFD is not set
6# CONFIG_TIMERFD is not set
7# CONFIG_EVENTFD is not set
8# CONFIG_AIO is not set
9# CONFIG_KALLSYMS is not set
10# CONFIG_MMU is not set
11CONFIG_M528x=y
12CONFIG_RAMBASE=0x00000000
13CONFIG_RAMSIZE=0x00800000
14CONFIG_VECTORBASE=0x00000000
15CONFIG_IPSBAR=0x40000000
16CONFIG_KERNELBASE=0x00020000
17CONFIG_MODULES=y
18CONFIG_MODULE_UNLOAD=y
19CONFIG_BINFMT_FLAT=y
20# CONFIG_VM_EVENT_COUNTERS is not set
21CONFIG_NET=y
22CONFIG_PACKET=y
23CONFIG_UNIX=y
24CONFIG_INET=y
25# CONFIG_INET_DIAG is not set
26# CONFIG_IPV6 is not set
27# CONFIG_FW_LOADER is not set
28CONFIG_MTD=y
29CONFIG_MTD_BLOCK=y
30CONFIG_MTD_RAM=y
31CONFIG_MTD_UCLINUX=y
32CONFIG_BLK_DEV_RAM=y
33CONFIG_NETDEVICES=y
34CONFIG_FEC=y
35# CONFIG_INPUT is not set
36# CONFIG_SERIO is not set
37# CONFIG_VT is not set
38# CONFIG_UNIX98_PTYS is not set
39CONFIG_SERIAL_MCF=y
40CONFIG_SERIAL_MCF_CONSOLE=y
41# CONFIG_HWMON is not set
42# CONFIG_USB_SUPPORT is not set
43CONFIG_EXT2_FS=y
44# CONFIG_FILE_LOCKING is not set
45# CONFIG_DNOTIFY is not set
46CONFIG_ROMFS_FS=y
47CONFIG_ROMFS_BACKED_BY_MTD=y
48# CONFIG_NETWORK_FILESYSTEMS is not set
49# CONFIG_SLUB_DEBUG is not set
50CONFIG_BOOTPARAM=y
51CONFIG_BOOTPARAM_STRING="root=/dev/mtdblock0"
arch/m68k/include/asm/mcfgpio.h+1−1
@@ -16,7 +16,7 @@ int __mcfgpio_request(unsigned gpio); · 15 unmodified lines
16void __mcfgpio_free(unsigned gpio);16void __mcfgpio_free(unsigned gpio);
17 17
18#ifdef CONFIG_GPIOLIB18#ifdef CONFIG_GPIOLIB
19#include <linux/gpio.h>19#include <linux/gpio/legacy.h>
20#else20#else
21 21
22/* our alternate 'gpiolib' functions */22/* our alternate 'gpiolib' functions */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t