Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
targets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Feed
targets
Commits
f380b140
Commit
f380b140
authored
6 months ago
by
Mikhail Kshevetskiy
Browse files
Options
Downloads
Patches
Plain Diff
airoha: add en7581_emmc board variant (based on en7581_kite)
parent
d4d38918
No related branches found
No related tags found
1 merge request
!1343
airoha: add en7581_emmc board variant (based on en7581_kite)
Pipeline
#184077
skipped
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
airoha/dts/en7581_emmc.dts
+47
-0
47 additions, 0 deletions
airoha/dts/en7581_emmc.dts
airoha/image/an7581.mk
+1
-1
1 addition, 1 deletion
airoha/image/an7581.mk
with
48 additions
and
1 deletion
airoha/dts/en7581_emmc.dts
0 → 100644
+
47
−
0
View file @
f380b140
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/input/input.h>
/dts-v1/;
#include "en7581-base.dtsi"
/* This is a temporary solution until we can use the upstream way of defining partitions in device-tree
* Both defines below need to be in sync. U-Boot uses LBA in hex (512bytes), Linux uses MiB/KiB/bytes
*/
#define TOSTR_(x...) #x
#define STRINGIFY(x) TOSTR_(x)
#define PARTITIONS_UBOOT_BLKMAP blkmap create u-boot && blkmap map u-boot 0 800 linear mmc 0.0 0x0 && blkmap create env1 && blkmap map env1 0 400 linear mmc 0.0 0x1000 && blkmap create env2 && blkmap map env2 0 400 linear mmc 0.0 0x1400 && blkmap create art && blkmap map art 0 4000 linear mmc 0.0 0x1800 && blkmap create boarddata && blkmap map boarddata 0 2800 linear mmc 0.0 0x5800 && blkmap create boot1 && blkmap map boot1 0 30000 linear mmc 0.0 0x8000 && blkmap create rootfs1 && blkmap map rootfs1 0 48000 linear mmc 0.0 0x38000 && blkmap create overlay1 && blkmap map overlay1 0 28000 linear mmc 0.0 0x80000 && blkmap create boot2 && blkmap map boot2 0 30000 linear mmc 0.0 0xA8000 && blkmap create rootfs2 && blkmap map rootfs2 0 48000 linear mmc 0.0 0xD8000 && blkmap create overlay2 && blkmap map overlay2 0 28000 linear mmc 0.0 0x120000 && blkmap create usr_data && blkmap map usr_data 0 25B800 linear mmc 0.0 0x148000
#define PARTITIONS_CMDLINE blkdevparts=mmcblk0:1M@0M(bootloader),512K@2M(env1),512K@2560K(env2),8M@3M(art),5M@11M(boarddata),96M@16M(boot1),144M@112M(rootfs1),80M@256M(overlay1),96M@336M(boot2),144M@432M(rootfs2),80M@576M(overlay2),1207M@656M(usr_data)
&mmc0 {
card@0 {
compatible = "mmc-card";
reg = <0>;
partitions {
u-boot-blkmap = STRINGIFY(PARTITIONS_UBOOT_BLKMAP);
linux-bootargs = STRINGIFY(PARTITIONS_CMDLINE);
linux-bootargs1 = STRINGIFY(PARTITIONS_CMDLINE root=/dev/mmcblk0p7);
linux-bootargs2 = STRINGIFY(PARTITIONS_CMDLINE root=/dev/mmcblk0p10);
};
};
};
/ {
model = "EN75xx GENERIC";
compatible = "econet,en7581-emmc", "econet,en7581", "airoha,en7581";
chosen {
bootargs = "console=ttyS0,115200n8 qdma_init=bb onu_type=72 serdes_ethernet=112 serdes_wifi1=001 serdes_wifi2=001 serdes_usb1=000 serdes_usb2=002 serdes_pon=000";
stdout-path = &uart1;
};
};
&voip {
slic-power-mode = "none";
};
This diff is collapsed.
Click to expand it.
airoha/image/an7581.mk
+
1
−
1
View file @
f380b140
...
...
@@ -24,7 +24,7 @@ endef
define
Device/en7581_evb
DEVICE_MODEL
:=
EN7581EVB
DEVICE_DTS
:=
en7581_evb en7581_eagle en7581_kite
DEVICE_DTS
:=
en7581_evb en7581_eagle en7581_kite
en7581_emmc
DEVICE_PACKAGES
:=
$(
DEFAULT_DEVICE_PACKAGES
)
\
$(
PON_PACKAGES
)
endef
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment